Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Function LoadResourceIcon ( _
    ByRef guidPackage As Guid, _
    culture As Integer, _
    pszResourceName As String, _
    cx As Integer, _
    cy As Integer, _
    <OutAttribute> ByRef hicoValue As IntPtr _
) As Integer
int LoadResourceIcon(
    ref Guid guidPackage,
    int culture,
    string pszResourceName,
    int cx,
    int cy,
    out IntPtr hicoValue
)
int LoadResourceIcon(
    [InAttribute] Guid% guidPackage, 
    [InAttribute] int culture, 
    [InAttribute] String^ pszResourceName, 
    [InAttribute] int cx, 
    [InAttribute] int cy, 
    [OutAttribute] IntPtr% hicoValue
)
abstract LoadResourceIcon : 
        guidPackage:Guid byref * 
        culture:int * 
        pszResourceName:string * 
        cx:int * 
        cy:int * 
        hicoValue:IntPtr byref -> int
function LoadResourceIcon(
    guidPackage : Guid, 
    culture : int, 
    pszResourceName : String, 
    cx : int, 
    cy : int, 
    hicoValue : IntPtr
) : int
Parameters
- guidPackage 
 Type: Guid%- [in] Guid of the package into which the resource will be loaded. 
- culture 
 Type: 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: String- [in] The name of the resource. 
- cx 
 Type: Int32- [in] Width of the icon. 
- cy 
 Type: Int32- [in] Height of the icon. 
- hicoValue 
 Type: IntPtr%- [out, retval] Pointer to the resource. 
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.