The GetDllDirectory function retrieves the application-specific portion of the search path used to locate DLLs for the application.
If the function succeeds, the return value is the length of the string copied to buffer, in characters, not including the terminating null character. If the return value is greater than bufferLength, it specifies the size of the buffer required for the path.
If the function fails, the return value is zero. To get extended error information, call GetLastWin32Error.
Kernel Class | Tao.Platform.Windows Namespace | SetDllDirectory