Marshal::GetHINSTANCE Method (Module^)
.NET Framework (current version)
Returns the instance handle (HINSTANCE) for the specified module.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- m
-
Type:
System.Reflection::Module^
The module whose HINSTANCE is desired.
Return Value
Type: System::IntPtrThe 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
Available since 1.1
Show: