GetTempPath (Windows CE 5.0)

Send Feedback

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

DWORD GetTempPath(DWORD ccBuffer, LPTSTRlpszBuffer);

Parameters

  • ccBuffer
    [in] Length, in characters, of the string buffer identified by lpszBuffer.
  • lpszBuffer
    [out] Pointer to a string buffer that receives the null-terminated string specifying the temporary path. The retrieved string ends with a backslash (\).

Return Values

If the GetTempPath function succeeds, the return value is the length, in characters, of the string copied to lpszBuffer, not including the terminating NULL character. 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.

If GetTempPath does not succeed, it returns 0.

Requirements

OS Versions: Windows CE 2.11 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

SHGetSpecialFolderPath | SHGetSpecialFolderLocation

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.