다음을 통해 공유


IVsShell.LoadUILibrary Method

Definition

Overloads

LoadUILibrary(Guid, UInt32, IntPtr)
LoadUILibrary(Guid, UInt32, UInt32)

Triggers the satellite DLL to load if it has not already done so.

LoadUILibrary(Guid, UInt32, IntPtr)

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

Parameters

guidPackage
Guid
dwExFlags
UInt32
phinstOut
IntPtr

nativeint

Returns

Applies to

LoadUILibrary(Guid, UInt32, UInt32)

Triggers the satellite DLL to load if it has not already done so.

public:
 int LoadUILibrary(Guid % guidPackage, System::UInt32 dwExFlags, [Runtime::InteropServices::Out] System::UInt32 % phinstOut);
public int LoadUILibrary (ref Guid guidPackage, uint dwExFlags, out uint phinstOut);
abstract member LoadUILibrary : Guid * uint32 * uint32 -> int
Public Function LoadUILibrary (ByRef guidPackage As Guid, dwExFlags As UInteger, ByRef phinstOut As UInteger) As Integer

Parameters

guidPackage
Guid

[in] Unique identifier of the satellite DLL to be loaded.

dwExFlags
UInt32

[in] Flags that are directly passed to the Microsoft Win32 LoadLibrary API.

phinstOut
UInt32

[out, retval] Pointer to the HINSTANCE of the loaded library.

Returns

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

Remarks

COM Signature

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.

Applies to