IVsResourceManager.LoadResourceIcon Method

Definition

Loads the resource icon into the specified package.

public:
 int LoadResourceIcon(Guid % guidPackage, int culture, System::String ^ pszResourceName, int cx, int cy, [Runtime::InteropServices::Out] IntPtr % hicoValue);
public int LoadResourceIcon (ref Guid guidPackage, int culture, string pszResourceName, int cx, int cy, out IntPtr hicoValue);
abstract member LoadResourceIcon : Guid * int * string * int * int * nativeint -> int
Public Function LoadResourceIcon (ByRef guidPackage As Guid, culture As Integer, pszResourceName As String, cx As Integer, cy As Integer, ByRef hicoValue As IntPtr) As Integer

Parameters

guidPackage
Guid

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

culture
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
String

[in] The name of the resource.

cx
Int32

[in] Width of the icon.

cy
Int32

[in] Height of the icon.

hicoValue
IntPtr

nativeint

[out, retval] Pointer to the resource.

Returns

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

Remarks

This method is safe to access from any thread.

Applies to