Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic


Windows Mobile 6.5
A version of this page is also available for

This function obtains the path of the directory designated for temporary files.

DWORD GetTempPath(
  DWORD ccBuffer, 
  LPTSTR lpszBuffer

[in] Length, in characters, of the string buffer specified by the lpszBuffer parameter.


[out] Pointer to a string buffer that receives the null-terminated string specifying the temporary path. The retrieved string ends with a backslash (\).

The length, in characters, of the string copied to lpszBuffer, not including the terminating NULL character, indicates success. If the return value is greater than the size of ccBuffer, the return value is the size of the buffer required to hold the path. Zero indicates failure

Windows Embedded CEWindows CE 2.11 and later
Windows MobileWindows Mobile Version 5.0 and later
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.