System.Runtime.InteropServices.Marshal.GetHINSTANCE Method

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

Syntax

public static IntPtr GetHINSTANCE (System.Reflection.Module m)

Parameters

m
The module whose HINSTANCE is desired.

Returns

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

Remarks

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

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0