GetCurrentDirectory
The GetCurrentDirectory function retrieves the current directory for the current process.
DWORD GetCurrentDirectory(
DWORD nBufferLength, // size, in characters, of directory buffer
LPTSTR lpBuffer // pointer to buffer for current directory
);
Parameters
-
nBufferLength
- Specifies the length, in characters, of the buffer for the current directory string. The buffer length must include room for a terminating null character. lpBuffer
- Pointer to the buffer for the current directory string. This null-terminated string specifies the absolute path to the current directory.
Return Values
If the function succeeds, the return