GetHINSTANCE Method
TOC
Collapse the table of content
Expand the table of content

Marshal.GetHINSTANCE Method (Module)

 

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

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

<SecurityCriticalAttribute>
Public Shared Function GetHINSTANCE (
	m As Module
) As IntPtr

Parameters

m
Type: System.Reflection.Module

The module whose HINSTANCE is desired.

Return Value

Type: System.IntPtr

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

Exception Condition
ArgumentNullException

The m parameter is null.

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

SecurityCriticalAttribute

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

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft