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 がありません。

適用対象