Tao.Platform.Windows SDK Documentation

Kernel.GetDllDirectory Method 

The GetDllDirectory function retrieves the application-specific portion of the search path used to locate DLLs for the application.

[Visual Basic]
Public Shared Function GetDllDirectory( _
   ByVal bufferLength As Integer, _
   ByVal buffer As StringBuilder _
) As Integer
[C#]
public static int GetDllDirectory(
   int bufferLength,
   StringBuilder buffer
);

Parameters

bufferLength
Size of the output buffer, in characters.
buffer
Pointer to a buffer that receives the application-specific portion of the search path.

Return Value

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.

See Also

Kernel Class | Tao.Platform.Windows Namespace | SetDllDirectory