Marshal.GetHINSTANCE(Module) 方法 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回指定模块的实例句柄 (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 -> nativeintPublic Shared Function GetHINSTANCE (m As Module) As IntPtr参数
- m
- Module
具有所需 HINSTANCE 的模块。
返回
		
		IntPtr
	nativeint
              m 的 INSTANCE;如果该模块没有 HINSTANCE,则为 -1。
- 属性
例外
              m 参数为 null。
注解
当动态或内存中时,模块没有 HINSTANCE。