The GetTempDrive function is obsolete, and should not be used by Win32 applications.
Use the GetTempPath function.
GetTempPath