IVsShell::LoadUILibrary Method (Guid, UInt32, UInt32)
Visual Studio 2015
Triggers the satellite DLL to load if it has not already done so.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int LoadUILibrary( [InAttribute] Guid% guidPackage, unsigned int dwExFlags, [OutAttribute] unsigned int% phinstOut )
Parameters
- guidPackage
-
Type:
System::Guid
[in] Unique identifier of the satellite DLL to be loaded.
- dwExFlags
-
Type:
System::UInt32
[in] Flags that are directly passed to the Microsoft Win32 LoadLibrary API.
- phinstOut
-
Type:
System::UInt32
[out, retval] Pointer to the HINSTANCE of the loaded library.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsShell::LoadUILibrary( [in] REFGUID guidPackage, [in] DWORD dwExFlags, [out, retval] DWORD_PTR *phinstOut );
The environment knows which language locale you are running under and loads the appropriate DLL. Your VSPackage calls this method in your SetSite to get access to your own resources.
Show: