Share via


IUIHostLocale2.LoadUILibrary Method

Definition

Overloads

LoadUILibrary(String, String, UInt32, IntPtr)
LoadUILibrary(String, String, UInt32, UInt32)

Retrieves an HINSTANCE of the satellite DLL from which to obtain the localized strings.

LoadUILibrary(String, String, UInt32, IntPtr)

public:
 int LoadUILibrary(System::String ^ lpstrPath, System::String ^ lpstrDllName, System::UInt32 dwExFlags, [Runtime::InteropServices::Out] IntPtr % phinstOut);
public int LoadUILibrary (string lpstrPath, string lpstrDllName, uint dwExFlags, out IntPtr phinstOut);
abstract member LoadUILibrary : string * string * uint32 * nativeint -> int
Public Function LoadUILibrary (lpstrPath As String, lpstrDllName As String, dwExFlags As UInteger, ByRef phinstOut As IntPtr) As Integer

Parameters

lpstrPath
String
lpstrDllName
String
dwExFlags
UInt32
phinstOut
IntPtr

nativeint

Returns

Remarks

This method is safe to access from any thread.

Applies to

LoadUILibrary(String, String, UInt32, UInt32)

Retrieves an HINSTANCE of the satellite DLL from which to obtain the localized strings.

public:
 int LoadUILibrary(System::String ^ lpstrPath, System::String ^ lpstrDllName, System::UInt32 dwExFlags, [Runtime::InteropServices::Out] System::UInt32 % phinstOut);
int LoadUILibrary(std::wstring const & lpstrPath, std::wstring const & lpstrDllName, unsigned int dwExFlags, [Runtime::InteropServices::Out] unsigned int & phinstOut);
public int LoadUILibrary (string lpstrPath, string lpstrDllName, uint dwExFlags, out uint phinstOut);
abstract member LoadUILibrary : string * string * uint32 * uint32 -> int
Public Function LoadUILibrary (lpstrPath As String, lpstrDllName As String, dwExFlags As UInteger, ByRef phinstOut As UInteger) As Integer

Parameters

lpstrPath
String

[in] Path to the satellite DLL to load.

lpstrDllName
String

[in] Name of the satellite DLL to load.

dwExFlags
UInt32

[in] DWORD values that determine how to load the DLL.

phinstOut
UInt32

[out, retval] Pointer to the HINSTANCE from which the string can be obtained.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From uilocale.idl:

HRESULT IUIHostLocale2::LoadUILibrary(  
   [in] LPCOLESTR lpstrPath,  
   [in] LPCOLESTR lpstrDllName,  
   [in] DWORD dwExFlags,  
   [out, retval] DWORD_PTR *phinstOut  
);  

The path to the satellite DLL is determined by concatenating the value of pszPath, locale ID of the host as a string, such as "1033," and the value of pszDllName.

Applies to