Marshal.GetHINSTANCE(Module) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the instance handle (HINSTANCE) for the specified module.
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
Parameters
- m
- Module
The module whose HINSTANCE is desired.
Returns
IntPtr
nativeint
The HINSTANCE for m
; or -1 if the module does not have an HINSTANCE.
- Attributes
Exceptions
The m
parameter is null
.
Remarks
When dynamic or in-memory, modules do not have an HINSTANCE.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.