IVsResourceManager::LoadResourceBitmap2 Method (String^, Int32, String^, IntPtr)

 

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)

int LoadResourceBitmap2(
	String^ pszAssemblyPath,
	int culture,
	String^ szResourceName,
	[OutAttribute] IntPtr% hbmpValue
)

Parameters

pszAssemblyPath
Type: System::String^

[in] Path to the assembly where the resource is to 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.

szResourceName
Type: System::String^

[in] The name of the resource.

hbmpValue
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 LoadResourceBitmap2(
   [in, string] LPCOLESTR pszAssemblyPath,
   [in] int culture,
   [in, string] LPCOLESTR szResourceName,
   [out, retval] HBITMAP *hbmpValue
);
Return to top
Show: