16 references to GetModuleHandle
System.Windows.Forms (16)
winforms\Managed\System\WinForms\Application.cs (1)
155
IntPtr hModule = UnsafeNativeMethods.
GetModuleHandle
(ExternDll.Comctl32);
winforms\Managed\System\WinForms\ColorDialog.cs (1)
187
get { return UnsafeNativeMethods.
GetModuleHandle
(null);}
winforms\Managed\System\WinForms\Control.cs (1)
1845
if ((UnsafeNativeMethods.
GetModuleHandle
(ExternDll.Comctl32) != IntPtr.Zero)
winforms\Managed\System\WinForms\FileDialog.cs (1)
454
get { return UnsafeNativeMethods.
GetModuleHandle
(null); }
winforms\Managed\System\WinForms\FontDialog.cs (1)
601
cf.hInstance = UnsafeNativeMethods.
GetModuleHandle
(null);
winforms\Managed\System\WinForms\MessageBox.cs (1)
469
if (UnsafeNativeMethods.
GetModuleHandle
(ExternDll.Shell32) == IntPtr.Zero) {
winforms\Managed\System\WinForms\NativeWindow.cs (7)
607
userDefWindowProc = UnsafeNativeMethods.GetProcAddress(new HandleRef(null, UnsafeNativeMethods.
GetModuleHandle
("user32.dll")), defproc);
744
IntPtr modHandle = UnsafeNativeMethods.
GetModuleHandle
(null);
1575
userDefWindowProc = UnsafeNativeMethods.GetProcAddress(new HandleRef(null, UnsafeNativeMethods.
GetModuleHandle
("user32.dll")), defproc);
1621
wndclass.hInstance = UnsafeNativeMethods.
GetModuleHandle
(null);
1635
bool ok = UnsafeNativeMethods.GetClassInfo(new HandleRef(null, UnsafeNativeMethods.
GetModuleHandle
(null)), windowClassName, wcls);
1645
if (UnsafeNativeMethods.UnregisterClass(windowClassName, new HandleRef(null, UnsafeNativeMethods.
GetModuleHandle
(null)))) {
1679
if (registered && UnsafeNativeMethods.UnregisterClass(windowClassName, new HandleRef(null, UnsafeNativeMethods.
GetModuleHandle
(null)))) {
winforms\Managed\System\WinForms\SendKeys.cs (2)
240
new HandleRef(null, UnsafeNativeMethods.
GetModuleHandle
(null)),
257
new HandleRef(null, UnsafeNativeMethods.
GetModuleHandle
(null)),
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
8978
IntPtr kernel32 =
GetModuleHandle
(ExternDll.Kernel32);