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 的 HINSTANCE,如果模組沒有 HINSTANCE,則為 -1。

屬性

例外狀況

m 參數為 null

備註

當動態或記憶體內部時,模組沒有 HINSTANCE。

適用於