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 bitmap into the specified assembly.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function LoadResourceBitmap2 ( _
pszAssemblyPath As String, _
culture As Integer, _
szResourceName As String, _
<OutAttribute> ByRef hbmpValue As IntPtr _
) As Integer
int LoadResourceBitmap2(
string pszAssemblyPath,
int culture,
string szResourceName,
out IntPtr hbmpValue
)
int LoadResourceBitmap2(
[InAttribute] String^ pszAssemblyPath,
[InAttribute] int culture,
[InAttribute] String^ szResourceName,
[OutAttribute] IntPtr% hbmpValue
)
abstract LoadResourceBitmap2 :
pszAssemblyPath:string *
culture:int *
szResourceName:string *
hbmpValue:IntPtr byref -> int
function LoadResourceBitmap2(
pszAssemblyPath : String,
culture : int,
szResourceName : String,
hbmpValue : IntPtr
) : int
Parameters
pszAssemblyPath
Type: String[in] Path to the assembly where the resource is to 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.
szResourceName
Type: String[in] The name of the resource.
hbmpValue
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 LoadResourceBitmap2(
[in, string] LPCOLESTR pszAssemblyPath,
[in] int culture,
[in, string] LPCOLESTR szResourceName,
[out, retval] HBITMAP *hbmpValue
);
.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.