IVsResourceManager::LoadResourceIcon Method (Guid, Int32, String^, Int32, Int32, IntPtr)

 

Loads the resource icon into the specified package.

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

int LoadResourceIcon(
	[InAttribute] Guid% guidPackage,
	int culture,
	String^ pszResourceName,
	int cx,
	int cy,
	[OutAttribute] IntPtr% hicoValue
)

Parameters

guidPackage
Type: System::Guid

[in] Guid of the package into which the resource will be loaded.

culture
Type: System::Int32

[in] A LCID value specifying the culture for which the resource is valid. Supplying a value of 0 will select the LCID that the user selected when the application was started.

pszResourceName
Type: System::String^

[in] The name of the resource.

cx
Type: System::Int32

[in] Width of the icon.

cy
Type: System::Int32

[in] Height of the icon.

hicoValue
Type: System::IntPtr

[out, retval] Pointer to the resource.

Return Value

Type: System::Int32

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

From vsshell80.idl:

[local] HRESULT LoadResourceIcon(
   [in] REFGUID guidPackage,
   [in] int culture,
   [in, string] LPCOLESTR pszResourceName,
   [in] int cx,
   [in] int cy,
   [out, retval] HICON *hicoValue
);
Return to top
Show: