GetCurrentDirectory
GetCurrentDirectory is a Microsoft Windows API function that retrieves the current working directory for the calling process. It is provided in Kernel32 and exposed in two character-set variants, GetCurrentDirectoryA (ANSI) and GetCurrentDirectoryW (Unicode). The function is commonly used by applications to determine the base path for relative file operations.
The typical signature is DWORD GetCurrentDirectory(DWORD nBufferLength, LPTSTR lpBuffer), where nBufferLength specifies the size of the
Remarks include that the function returns the process current directory and reflects any changes made by SetCurrentDirectory.