Group: File Management - Library: kernel32
Current directory of the application
DWORD GetCurrentDirectory(
DWORD nBufferLength, // size of directory buffer
LPTSTR lpBuffer // directory buffer
);
DECLARE INTEGER GetCurrentDirectory IN kernel32;
INTEGER nBufferLength,;
STRING @ lpBuffer
nBufferLength [in] Specifies the length, in TCHARs, of the buffer for the current directory string. The buffer length must include room for a terminating null character.
lpBuffer [out] Pointer to the buffer that receives the current directory string. This null-terminated string specifies the absolute path to the current directory.
If the function succeeds, the return value specifies the number of characters written to the buffer, not including the terminating null character
The difference between this function and SYS(2003) is next to negligible if any.
See also: SetCurrentDirectory, GetFullPathName.