Saturday, May 24, 2008

How do I find the path of the temp directory?

There is a simple function called GetTempPath().
DWORD WINAPI GetTempPath(DWORD nBufferLength, LPTSTR lpBuffer);
If you need to obtain a unique filename, you can use GetTempFileName().

No comments: