IUIHostLocale2.LoadUILibrary Method

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)

Syntax

'Declaration
Function LoadUILibrary ( _
    lpstrPath As String, _
    lpstrDllName As String, _
    dwExFlags As UInteger, _
    <OutAttribute> ByRef phinstOut As UInteger _
) As Integer
int LoadUILibrary(
    string lpstrPath,
    string lpstrDllName,
    uint dwExFlags,
    out uint phinstOut
)
int LoadUILibrary(
    [InAttribute] String^ lpstrPath, 
    [InAttribute] String^ lpstrDllName, 
    [InAttribute] unsigned int dwExFlags, 
    [OutAttribute] unsigned int% phinstOut
)
abstract LoadUILibrary : 
        lpstrPath:string * 
        lpstrDllName:string * 
        dwExFlags:uint32 * 
        phinstOut:uint32 byref -> int
function LoadUILibrary(
    lpstrPath : String, 
    lpstrDllName : String, 
    dwExFlags : uint, 
    phinstOut : uint
) : int

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.

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.

.NET Framework Security

See Also

Reference

IUIHostLocale2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace