IVsResourceManager.LoadResourceBitmap2(String, Int32, String, IntPtr) 方法

定义

将资源位图加载到指定的程序集中。

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

参数

pszAssemblyPath
String

中要在其中加载资源的程序集的路径。

culture
Int32

中指定资源有效的区域性的 LCID 值。 如果提供的值为0,则将选择用户在启动应用程序时选择的 LCID。

szResourceName
String

中资源的名称。

hbmpValue
IntPtr

nativeint

[out,retval]指向资源的指针。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell80:

[local] HRESULT LoadResourceBitmap2(  
   [in, string] LPCOLESTR pszAssemblyPath,  
   [in] int culture,  
   [in, string] LPCOLESTR szResourceName,  
   [out, retval] HBITMAP *hbmpValue  
);  

适用于