IUIHostLocale2::LoadUILibrary Method (String^, String^, UInt32, UInt32)

 

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

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int LoadUILibrary(
	String^ lpstrPath,
	String^ lpstrDllName,
	unsigned int dwExFlags,
	[OutAttribute] unsigned int% phinstOut
)

Parameters

lpstrPath
Type: System::String^

[in] Path to the satellite DLL to load.

lpstrDllName
Type: System::String^

[in] Name of the satellite DLL to load.

dwExFlags
Type: System::UInt32

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

phinstOut
Type: System::UInt32

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: