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

HINSTANCE 為 m;;若模組沒有 HINSTANCE,則為 -1。

屬性

例外狀況

參數 mnull

備註

當是動態或記憶體中時,模組沒有 HINSTANCE。

適用於