4 instantiations of HMODULE
System.Private.Windows.Core (4)
Windows.Win32.HINSTANCE.g.cs (1)
61
public static implicit operator HMODULE(HINSTANCE value) => new
HMODULE
(value.Value);
Windows.Win32.HMODULE.g.cs (3)
41
public static explicit operator HMODULE(void* value) => new
HMODULE
(value);
57
public static explicit operator HMODULE(IntPtr value) => new
HMODULE
((void*)value.ToPointer());
59
public static explicit operator HMODULE(UIntPtr value) => new
HMODULE
((void*)value.ToPointer());
38 references to HMODULE
System.Private.Windows.Core (17)
Windows.Win32.HINSTANCE.g.cs (1)
61
public static implicit operator
HMODULE
(HINSTANCE value) => new HMODULE(value.Value);
Windows.Win32.HMODULE.g.cs (14)
25
: IEquatable<
HMODULE
>
35
internal static
HMODULE
Null => default;
39
public static implicit operator void*(
HMODULE
value) => value.Value;
41
public static explicit operator
HMODULE
(void* value) => new HMODULE(value);
43
public static bool operator ==(
HMODULE
left,
HMODULE
right) => left.Value == right.Value;
45
public static bool operator !=(
HMODULE
left,
HMODULE
right) => !(left == right);
47
public bool Equals(
HMODULE
other) => this.Value == other.Value;
49
public override bool Equals(object obj) => obj is
HMODULE
other && this.Equals(other);
55
public static implicit operator IntPtr(
HMODULE
value) => new IntPtr(value.Value);
57
public static explicit operator
HMODULE
(IntPtr value) => new HMODULE((void*)value.ToPointer());
59
public static explicit operator
HMODULE
(UIntPtr value) => new HMODULE((void*)value.ToPointer());
61
public static implicit operator HINSTANCE(
HMODULE
value) => new HINSTANCE(value.Value);
Windows.Win32.PInvokeCore.KERNEL32.dll.g.cs (2)
236
internal static winmdroot.Foundation.BOOL FreeLibrary(winmdroot.Foundation.
HMODULE
hLibModule)
244
static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.
HMODULE
hLibModule);
System.Windows.Forms (3)
System\Windows\Forms\Application.cs (2)
114
var
hModule = PInvoke.GetModuleHandle(Libraries.Comctl32);
960
var
moduleHandle = PInvoke.GetModuleHandle(module.Name);
System\Windows\Forms\NativeWindow.cs (1)
169
var
hModule = PInvoke.GetModuleHandle(Libraries.User32);
System.Windows.Forms.Primitives (18)
Windows.Win32.ACTCTXW.g.cs (1)
66
internal winmdroot.Foundation.
HMODULE
hModule;
Windows.Win32.PInvoke.KERNEL32.dll.g.cs (16)
391
internal static uint GetModuleFileName(winmdroot.Foundation.
HMODULE
hModule, winmdroot.Foundation.PWSTR lpFilename, uint nSize)
399
static extern uint LocalExternFunction(winmdroot.Foundation.
HMODULE
hModule, winmdroot.Foundation.PWSTR lpFilename, uint nSize);
404
internal static unsafe winmdroot.Foundation.
HMODULE
GetModuleHandle(string lpModuleName)
408
winmdroot.Foundation.
HMODULE
__result = PInvoke.GetModuleHandle(lpModuleNameLocal);
427
internal static winmdroot.Foundation.
HMODULE
GetModuleHandle(winmdroot.Foundation.PCWSTR lpModuleName)
430
winmdroot.Foundation.
HMODULE
__retVal = LocalExternFunction(lpModuleName);
435
static extern winmdroot.Foundation.
HMODULE
LocalExternFunction(winmdroot.Foundation.PCWSTR lpModuleName);
438
/// <inheritdoc cref="GetProcAddress(winmdroot.Foundation.
HMODULE
, winmdroot.Foundation.PCSTR)"/>
440
internal static unsafe winmdroot.Foundation.FARPROC GetProcAddress(winmdroot.Foundation.
HMODULE
hModule, string lpProcName)
465
internal static winmdroot.Foundation.FARPROC GetProcAddress(winmdroot.Foundation.
HMODULE
hModule, winmdroot.Foundation.PCSTR lpProcName)
473
static extern winmdroot.Foundation.FARPROC LocalExternFunction(winmdroot.Foundation.
HMODULE
hModule, winmdroot.Foundation.PCSTR lpProcName);
587
internal static unsafe winmdroot.Foundation.
HMODULE
LoadLibraryEx(string lpLibFileName, winmdroot.System.LibraryLoader.LOAD_LIBRARY_FLAGS dwFlags)
591
winmdroot.Foundation.
HMODULE
__result = PInvoke.LoadLibraryEx(lpLibFileNameLocal, default, dwFlags);
615
internal static winmdroot.Foundation.
HMODULE
LoadLibraryEx(winmdroot.Foundation.PCWSTR lpLibFileName, winmdroot.Foundation.HANDLE hFile, winmdroot.System.LibraryLoader.LOAD_LIBRARY_FLAGS dwFlags)
618
winmdroot.Foundation.
HMODULE
__retVal = LocalExternFunction(lpLibFileName, hFile, dwFlags);
623
static extern winmdroot.Foundation.
HMODULE
LocalExternFunction(winmdroot.Foundation.PCWSTR lpLibFileName, winmdroot.Foundation.HANDLE hFile, winmdroot.System.LibraryLoader.LOAD_LIBRARY_FLAGS dwFlags);
Windows.Win32.PInvoke.USER32.dll.g.cs (1)
3687
internal static extern unsafe winmdroot.UI.Accessibility.HWINEVENTHOOK SetWinEventHook(uint eventMin, uint eventMax, winmdroot.Foundation.
HMODULE
hmodWinEventProc, delegate *unmanaged[Stdcall]<global::Windows.Win32.UI.Accessibility.HWINEVENTHOOK,uint,global::Windows.Win32.Foundation.HWND,int,int,uint,uint,void> pfnWinEventProc, uint idProcess, uint idThread, uint dwFlags);