Share via


IVsResourceManager.LoadResourceBitmap2(String, Int32, String, IntPtr) Method

Definition

Loads the resource bitmap into the specified assembly.

public:
 int LoadResourceBitmap2(System::String ^ pszAssemblyPath, int culture, System::String ^ szResourceName, [Runtime::InteropServices::Out] IntPtr % hbmpValue);
public int LoadResourceBitmap2 (string pszAssemblyPath, int culture, string szResourceName, out IntPtr hbmpValue);
abstract member LoadResourceBitmap2 : string * int * string * nativeint -> int
Public Function LoadResourceBitmap2 (pszAssemblyPath As String, culture As Integer, szResourceName As String, ByRef hbmpValue As IntPtr) As Integer

Parameters

pszAssemblyPath
String

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

szResourceName
String

[in] The name of the resource.

hbmpValue
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