5 instantiations of HINSTANCE
System.Private.Windows.Core (4)
Windows.Win32.HINSTANCE.g.cs (3)
41 public static explicit operator HINSTANCE(void* value) => new HINSTANCE(value); 57 public static explicit operator HINSTANCE(IntPtr value) => new HINSTANCE((void*)value.ToPointer()); 59 public static explicit operator HINSTANCE(UIntPtr value) => new HINSTANCE((void*)value.ToPointer());
Windows.Win32.HMODULE.g.cs (1)
61 public static implicit operator HINSTANCE(HMODULE value) => new HINSTANCE(value.Value);
System.Windows.Forms (1)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
271string path = PInvoke.GetModuleFileNameLongPath(new HINSTANCE(s_moduleHandle));
89 references to HINSTANCE
System.Drawing.Common (4)
System\Drawing\Bitmap.cs (1)
147PInvokeGdiPlus.GdipCreateBitmapFromResource((HINSTANCE)hinstance, bn, &bitmap).ThrowIfFailed();
System\Drawing\Icon.cs (1)
176hIcon = PInvoke.ExtractAssociatedIcon(HINSTANCE.Null, b, &piIcon);
System\Drawing\SystemIcons.cs (1)
43icon ??= new Icon(PInvokeCore.LoadIcon(HINSTANCE.Null, iconId));
Windows.Win32.PInvoke.SHELL32.dll.g.cs (1)
52 internal static extern unsafe winmdroot.UI.WindowsAndMessaging.HICON ExtractAssociatedIcon(winmdroot.Foundation.HINSTANCE hInst, winmdroot.Foundation.PWSTR pszIconPath, ushort* piIcon);
System.Private.Windows.Core (20)
Windows.Win32.HINSTANCE.g.cs (14)
25 : IEquatable<HINSTANCE> 35 internal static HINSTANCE Null => default; 39 public static implicit operator void*(HINSTANCE value) => value.Value; 41 public static explicit operator HINSTANCE(void* value) => new HINSTANCE(value); 43 public static bool operator ==(HINSTANCE left, HINSTANCE right) => left.Value == right.Value; 45 public static bool operator !=(HINSTANCE left, HINSTANCE right) => !(left == right); 47 public bool Equals(HINSTANCE other) => this.Value == other.Value; 49 public override bool Equals(object obj) => obj is HINSTANCE other && this.Equals(other); 55 public static implicit operator IntPtr(HINSTANCE value) => new IntPtr(value.Value); 57 public static explicit operator HINSTANCE(IntPtr value) => new HINSTANCE((void*)value.ToPointer()); 59 public static explicit operator HINSTANCE(UIntPtr value) => new HINSTANCE((void*)value.ToPointer()); 61 public static implicit operator HMODULE(HINSTANCE value) => new HMODULE(value.Value);
Windows.Win32.HMODULE.g.cs (1)
61 public static implicit operator HINSTANCE(HMODULE value) => new HINSTANCE(value.Value);
Windows.Win32.PInvokeCore.USER32.dll.g.cs (4)
743 /// <inheritdoc cref="LoadIcon(winmdroot.Foundation.HINSTANCE, winmdroot.Foundation.PCWSTR)"/> 745 internal static unsafe winmdroot.UI.WindowsAndMessaging.HICON LoadIcon(winmdroot.Foundation.HINSTANCE hInstance, string lpIconName) 772 internal static winmdroot.UI.WindowsAndMessaging.HICON LoadIcon(winmdroot.Foundation.HINSTANCE hInstance, winmdroot.Foundation.PCWSTR lpIconName) 780 static extern winmdroot.UI.WindowsAndMessaging.HICON LocalExternFunction(winmdroot.Foundation.HINSTANCE hInstance, winmdroot.Foundation.PCWSTR lpIconName);
Windows\Win32\UI\Controls\Dialogs\PRINTDLGEXW.cs (1)
254public HINSTANCE hInstance;
System.Private.Windows.GdiPlus (3)
Windows.Win32.PInvokeGdiPlus.gdiplus.dll.g.cs (3)
921 /// <inheritdoc cref="GdipCreateBitmapFromResource(winmdroot.Foundation.HINSTANCE, winmdroot.Foundation.PCWSTR, winmdroot.Graphics.GdiPlus.GpBitmap**)"/> 922 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateBitmapFromResource(winmdroot.Foundation.HINSTANCE hInstance, string lpBitmapName, ref winmdroot.Graphics.GdiPlus.GpBitmap* bitmap) 935 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateBitmapFromResource(winmdroot.Foundation.HINSTANCE hInstance, winmdroot.Foundation.PCWSTR lpBitmapName, winmdroot.Graphics.GdiPlus.GpBitmap** bitmap);
System.Windows.Forms (13)
System\Windows\Forms\Application.cs (1)
449s_executablePath ??= PInvoke.GetModuleFileNameLongPath(HINSTANCE.Null);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
30044ttt->hinst = HINSTANCE.Null;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.MouseHook.cs (1)
98HINSTANCE.Null,
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1946ttt->hinst = HINSTANCE.Null;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.HostedWindowsFormsMessageHook.cs (1)
69HINSTANCE.Null,
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2964ttt->hinst = HINSTANCE.Null;
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
759hInstance = (HINSTANCE)Instance,
System\Windows\Forms\Dialogs\MessageBox.cs (1)
467if (PInvoke.LoadLibraryFromSystemPathIfAvailable(Libraries.Shell32) == HINSTANCE.Null)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
902caption = Path.GetFileName(PInvoke.GetModuleFileNameLongPath(HINSTANCE.Null));
System\Windows\Forms\Help\Help.cs (1)
223HINSTANCE result;
System\Windows\Forms\Input\Cursor.cs (1)
38_handle = PInvoke.LoadCursor(HINSTANCE.Null, nResourceId);
System\Windows\Forms\NativeWindow.cs (1)
426HINSTANCE modHandle = PInvoke.GetModuleHandle((PCWSTR)null);
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
145if (!PInvoke.GetClassInfo(HINSTANCE.Null, n, &windowClass))
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
82HINSTANCE.Null,
System.Windows.Forms.Primitives (40)
System\Windows\Forms\Internals\ThemingScope.cs (1)
47public static unsafe bool CreateActivationContext(HINSTANCE module, int nativeResourceManifestID)
Windows.Win32.HH_POPUP.g.cs (1)
33 internal winmdroot.Foundation.HINSTANCE hinst;
Windows.Win32.NMTTDISPINFOW.g.cs (1)
54 internal winmdroot.Foundation.HINSTANCE hinst;
Windows.Win32.PInvoke.SHELL32.dll.g.cs (6)
28 internal static unsafe winmdroot.Foundation.HINSTANCE FindExecutable(string lpFile, string lpDirectory, winmdroot.Foundation.PWSTR lpResult) 34 winmdroot.Foundation.HINSTANCE __result = PInvoke.FindExecutable(lpFileLocal, lpDirectoryLocal, lpResult); 66 internal static extern winmdroot.Foundation.HINSTANCE FindExecutable(winmdroot.Foundation.PCWSTR lpFile, winmdroot.Foundation.PCWSTR lpDirectory, winmdroot.Foundation.PWSTR lpResult); 186 internal static unsafe winmdroot.Foundation.HINSTANCE ShellExecute(winmdroot.Foundation.HWND hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, winmdroot.UI.WindowsAndMessaging.SHOW_WINDOW_CMD nShowCmd) 196 winmdroot.Foundation.HINSTANCE __result = PInvoke.ShellExecute(hwnd, lpOperationLocal, lpFileLocal, lpParametersLocal, lpDirectoryLocal, nShowCmd); 241 internal static extern winmdroot.Foundation.HINSTANCE ShellExecute(winmdroot.Foundation.HWND hwnd, winmdroot.Foundation.PCWSTR lpOperation, winmdroot.Foundation.PCWSTR lpFile, winmdroot.Foundation.PCWSTR lpParameters, winmdroot.Foundation.PCWSTR lpDirectory, winmdroot.UI.WindowsAndMessaging.SHOW_WINDOW_CMD nShowCmd);
Windows.Win32.PInvoke.USER32.dll.g.cs (14)
438 /// <inheritdoc cref="CreateWindowEx(winmdroot.UI.WindowsAndMessaging.WINDOW_EX_STYLE, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.PCWSTR, winmdroot.UI.WindowsAndMessaging.WINDOW_STYLE, int, int, int, int, winmdroot.Foundation.HWND, winmdroot.UI.WindowsAndMessaging.HMENU, winmdroot.Foundation.HINSTANCE, void*)"/> 440 internal static unsafe winmdroot.Foundation.HWND CreateWindowEx(winmdroot.UI.WindowsAndMessaging.WINDOW_EX_STYLE dwExStyle, string lpClassName, string lpWindowName, winmdroot.UI.WindowsAndMessaging.WINDOW_STYLE dwStyle, int X, int Y, int nWidth, int nHeight, winmdroot.Foundation.HWND hWndParent, winmdroot.UI.WindowsAndMessaging.HMENU hMenu, winmdroot.Foundation.HINSTANCE hInstance, void* lpParam) 512 internal static unsafe winmdroot.Foundation.HWND CreateWindowEx(winmdroot.UI.WindowsAndMessaging.WINDOW_EX_STYLE dwExStyle, winmdroot.Foundation.PCWSTR lpClassName, winmdroot.Foundation.PCWSTR lpWindowName, winmdroot.UI.WindowsAndMessaging.WINDOW_STYLE dwStyle, int X, int Y, int nWidth, int nHeight, winmdroot.Foundation.HWND hWndParent, winmdroot.UI.WindowsAndMessaging.HMENU hMenu, winmdroot.Foundation.HINSTANCE hInstance, [Optional] void* lpParam) 520 static extern unsafe winmdroot.Foundation.HWND LocalExternFunction(winmdroot.UI.WindowsAndMessaging.WINDOW_EX_STYLE dwExStyle, winmdroot.Foundation.PCWSTR lpClassName, winmdroot.Foundation.PCWSTR lpWindowName, winmdroot.UI.WindowsAndMessaging.WINDOW_STYLE dwStyle, int X, int Y, int nWidth, int nHeight, winmdroot.Foundation.HWND hWndParent, winmdroot.UI.WindowsAndMessaging.HMENU hMenu, winmdroot.Foundation.HINSTANCE hInstance, [Optional] void* lpParam); 1131 /// <inheritdoc cref="GetClassInfo(winmdroot.Foundation.HINSTANCE, winmdroot.Foundation.PCWSTR, winmdroot.UI.WindowsAndMessaging.WNDCLASSW*)"/> 1133 internal static unsafe winmdroot.Foundation.BOOL GetClassInfo(winmdroot.Foundation.HINSTANCE hInstance, string lpClassName, out winmdroot.UI.WindowsAndMessaging.WNDCLASSW lpWndClass) 1166 internal static unsafe winmdroot.Foundation.BOOL GetClassInfo(winmdroot.Foundation.HINSTANCE hInstance, winmdroot.Foundation.PCWSTR lpClassName, winmdroot.UI.WindowsAndMessaging.WNDCLASSW* lpWndClass) 1174 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HINSTANCE hInstance, winmdroot.Foundation.PCWSTR lpClassName, winmdroot.UI.WindowsAndMessaging.WNDCLASSW* lpWndClass); 2289 /// <inheritdoc cref="LoadCursor(winmdroot.Foundation.HINSTANCE, winmdroot.Foundation.PCWSTR)"/> 2291 internal static unsafe winmdroot.UI.WindowsAndMessaging.HCURSOR LoadCursor(winmdroot.Foundation.HINSTANCE hInstance, string lpCursorName) 2318 internal static winmdroot.UI.WindowsAndMessaging.HCURSOR LoadCursor(winmdroot.Foundation.HINSTANCE hInstance, winmdroot.Foundation.PCWSTR lpCursorName) 2326 static extern winmdroot.UI.WindowsAndMessaging.HCURSOR LocalExternFunction(winmdroot.Foundation.HINSTANCE hInstance, winmdroot.Foundation.PCWSTR lpCursorName); 3578 internal static unsafe winmdroot.UI.WindowsAndMessaging.HHOOK SetWindowsHookEx(winmdroot.UI.WindowsAndMessaging.WINDOWS_HOOK_ID idHook, delegate *unmanaged[Stdcall]<int,global::Windows.Win32.Foundation.WPARAM,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.LRESULT> lpfn, winmdroot.Foundation.HINSTANCE hmod, uint dwThreadId) 3586 static extern unsafe winmdroot.UI.WindowsAndMessaging.HHOOK LocalExternFunction(winmdroot.UI.WindowsAndMessaging.WINDOWS_HOOK_ID idHook, delegate *unmanaged[Stdcall]<int,global::Windows.Win32.Foundation.WPARAM,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.LRESULT> lpfn, winmdroot.Foundation.HINSTANCE hmod, uint dwThreadId);
Windows.Win32.TASKDIALOGCONFIG.g.cs (1)
46 internal winmdroot.Foundation.HINSTANCE hInstance;
Windows.Win32.TTTOOLINFOW.g.cs (1)
62 internal winmdroot.Foundation.HINSTANCE hinst;
Windows.Win32.WNDCLASSW.g.cs (1)
58 internal winmdroot.Foundation.HINSTANCE hInstance;
Windows\Win32\PInvoke.CreateWindowEx.cs (2)
11/// <inheritdoc cref="CreateWindowEx(WINDOW_EX_STYLE, string, string, WINDOW_STYLE, int, int, int, int, HWND, HMENU, HINSTANCE, void*)"/> 23HINSTANCE hInstance,
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (1)
11public static unsafe string GetModuleFileNameLongPath(HINSTANCE hModule)
Windows\Win32\PInvoke.LoadLibrary.cs (6)
11public static HINSTANCE LoadComctl32(string startupPath) 23HINSTANCE result = LoadLibraryEx(customPath, 0); 41public static HINSTANCE LoadLibraryFromSystemPathIfAvailable(string libraryName) 45return HINSTANCE.Null; 50HINSTANCE result = LoadLibraryEx(libraryName, LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_SYSTEM32); 59return HINSTANCE.Null;
Windows\Win32\UI\Controls\Dialogs\CHOOSEFONTW.cs (1)
175public HINSTANCE hInstance;
Windows\Win32\UI\Controls\Dialogs\OPENFILENAME.cs (1)
11public HINSTANCE hInstance;
Windows\Win32\UI\Controls\Dialogs\PAGESETUPDLGW.cs (1)
155public HINSTANCE hInstance;
Windows\Win32\UI\Controls\Dialogs\PRINTDLGW_32.cs (1)
38public HINSTANCE hInstance;
Windows\Win32\UI\Controls\Dialogs\PRINTDLGW_64.cs (1)
223public HINSTANCE hInstance;
System.Windows.Forms.Primitives.Tests (1)
Interop\Mocks\MockCursor.cs (1)
19_handle = PInvoke.LoadCursor(HINSTANCE.Null, nResourceId);
System.Windows.Forms.Primitives.TestUtilities (7)
Win32\WindowClass.cs (6)
23public HINSTANCE ModuleInstance { get; } 38HINSTANCE moduleInstance = default, 62icon = PInvokeCore.LoadIcon(HINSTANCE.Null, (PCWSTR)(char*)PInvokeCore.IDI_APPLICATION); 71cursor = PInvoke.LoadCursor(HINSTANCE.Null, (PCWSTR)(char*)PInvoke.IDC_ARROW); 175hInstance: HINSTANCE.Null, 193hInstance: HINSTANCE.Null,
Windows\Win32\System\Com\ComClassFactory.cs (1)
16private readonly HINSTANCE _instance;