IVsResourceManager.LoadResourceIcon2 方法

定义

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

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

参数

pszAssemblyPath
String

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

culture
Int32

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

pszResourceName
String

中资源的名称。

cx
Int32

中图标的宽度。

cy
Int32

中图标的高度。

hicoValue
IntPtr

nativeint

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

返回

Int32

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

注解

COM 签名

从 vsshell80:

[local] HRESULT LoadResourceIcon2(  
   [in, string] LPCOLESTR pszAssemblyPath,  
   [in] int culture,  
   [in, string] LPCOLESTR pszResourceName,  
   [in] int cx,  
   [in] int cy,  
   [out, retval] HICON *hicoValue)  
;  

适用于