Why does GetTempPath always return short path names? Is there a way to return the long path name rather than subsequently converting the returned string with GetLongPathName?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GetTempPathis most likely returning the value of theTMPorTEMPenvironment variables, which (at least under Windows XP) are typically defined in terms of the short path name.Windows appears to convert to the short path name from the
HKEY_CURRENT_USER\Environmentregistry key when initializing environment variables.