Marshal.GetHINSTANCE(Module) Metod

Definition

Returnerar instanshandtaget (HINSTANCE) för den angivna modulen.

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

Parametrar

m
Module

Modulen vars HINSTANCE önskas.

Returer

IntPtr

nativeint

HINSTANCE för m; eller -1 om modulen inte har en HINSTANCE.

Attribut

Undantag

Parametern m är null.

Kommentarer

När det är dynamiskt eller minnesinternt har modulerna ingen HINSTANCE.

Gäller för