Marshal.GetHINSTANCE(Module) 方法

定义

返回指定模块的实例句柄 (HINSTANCE)。

public:
 static IntPtr GetHINSTANCE(System::Reflection::Module ^ m);
public static IntPtr GetHINSTANCE (System.Reflection.Module m);
[System.Security.SecurityCritical]
public static IntPtr GetHINSTANCE (System.Reflection.Module m);
static member GetHINSTANCE : System.Reflection.Module -> nativeint
[<System.Security.SecurityCritical>]
static member GetHINSTANCE : System.Reflection.Module -> nativeint
Public Shared Function GetHINSTANCE (m As Module) As IntPtr

参数

m
Module

具有所需 HINSTANCE 的模块。

返回

IntPtr

nativeint

m 的 INSTANCE;如果该模块没有 HINSTANCE,则为 -1。

属性

例外

m 参数为 null

注解

动态或内存中时,模块没有 HINSTANCE。

适用于