GetModuleHandleExFlags Enumeration

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum GetModuleHandleExFlags

Remarks

Members

Pin 1 The module stays loaded until the process is terminated, no matter how many times FreeLibrary is called

This flag cannot be combined with UnchangedReferenceCount flag.

UnchangedReferenceCount 2 The reference count for the module is not incremented. This flag is equivalent to the behavior of calling GetModuleHandle(String).

This flag cannot be combined with Pin flag.

Do not pass the retrieved module handle to the FreeLibrary(SafeModuleHandle) function; doing so can cause the DLL to be unmapped prematurely.

FromAddress 4 The moduleName parameter of GetModuleHandleEx(GetModuleHandleExFlags, String, IntPtr) function is an address in the module.

See Also