GetSystemDirectory
GetSystemDirectory is a Win32 API function in Kernel32.dll that retrieves the path of the system directory for the current process. The system directory typically contains core Windows system files such as DLLs.
The function signature is UINT GetSystemDirectory(LPTSTR lpBuffer, UINT uSize); It writes the path to the buffer
The returned string is null-terminated. The system directory returned by GetSystemDirectory can be used to construct
Notes and considerations include platform and architecture behavior. On 64-bit Windows, the value returned can depend
See also GetSystemDirectoryA and GetSystemDirectoryW for ANSI and Unicode variants, GetWindowsDirectory, and IsWow64Process.
---