Marshal.GetHINSTANCE(Module) Marshal.GetHINSTANCE(Module) Marshal.GetHINSTANCE(Module) Marshal.GetHINSTANCE(Module) Method

Definition

Returns the instance handle (HINSTANCE) for the specified module.

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
Public Shared Function GetHINSTANCE (m As Module) As IntPtr

Parameters

m
Module Module Module Module

The module whose HINSTANCE is desired.

Returns

The HINSTANCE for m; or -1 if the module does not have an HINSTANCE.

Exceptions

Remarks

When dynamic or in-memory, modules do not have an HINSTANCE.

Security

SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to