38 references to Libraries
System.Private.Windows.Core (8)
Windows\Win32\PInvokeCore.GetClassLong.cs (2)
12[DllImport(Libraries.User32, SetLastError = true)] 16[DllImport(Libraries.User32, SetLastError = true)]
Windows\Win32\PInvokeCore.GetWindowLong.cs (2)
10[DllImport(Libraries.User32, SetLastError = true)] 13[DllImport(Libraries.User32, SetLastError = true)]
Windows\Win32\PInvokeCore.SetClassLong.cs (2)
11[DllImport(Libraries.User32)] 14[DllImport(Libraries.User32)]
Windows\Win32\PInvokeCore.SetWindowLong.cs (2)
10[DllImport(Libraries.User32, SetLastError = true)] 13[DllImport(Libraries.User32, SetLastError = true)]
System.Windows.Forms (9)
System\Windows\Forms\Application.cs (1)
117var hModule = PInvoke.GetModuleHandle(Libraries.Comctl32);
System\Windows\Forms\Control.cs (2)
1366if ((PInvoke.GetModuleHandle(Libraries.Comctl32) != 0) 1374throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Comctl32));
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
259s_moduleHandle = PInvoke.LoadLibraryFromSystemPathIfAvailable(Libraries.RichEdit41); 268throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.RichEdit41));
System\Windows\Forms\Dialogs\MessageBox.cs (3)
465if (PInvoke.GetModuleHandle(Libraries.Shell32) == 0) 467if (PInvoke.LoadLibraryFromSystemPathIfAvailable(Libraries.Shell32) == HINSTANCE.Null) 470throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Shell32));
System\Windows\Forms\NativeWindow.cs (1)
169var hModule = PInvoke.GetModuleHandle(Libraries.User32);
System.Windows.Forms.Primitives (4)
Windows\Win32\PInvoke.DispatchMessageA.cs (1)
11[DllImport(Libraries.User32, ExactSpelling = true)]
Windows\Win32\PInvoke.LoadLibrary.cs (3)
17string customPath = Path.Join(startupPath, Libraries.Comctl32); 32return LoadLibraryFromSystemPathIfAvailable(Libraries.Comctl32); 43if (GetModuleHandle(Libraries.Kernel32).IsNull)
System.Windows.Forms.Primitives.Tests (17)
Interop\Oleaut32\DECIMALTests.cs (1)
38[DllImport(Libraries.Oleaut32, ExactSpelling = true)]
Interop\Oleaut32\VARIANTTests.cs (15)
5821[DllImport(Libraries.Propsys, ExactSpelling = true)] 5824[DllImport(Libraries.Propsys, ExactSpelling = true)] 5827[DllImport(Libraries.Propsys, ExactSpelling = true)] 5830[DllImport(Libraries.Propsys, ExactSpelling = true)] 5833[DllImport(Libraries.Propsys, ExactSpelling = true)] 5836[DllImport(Libraries.Propsys, ExactSpelling = true)] 5839[DllImport(Libraries.Propsys, ExactSpelling = true)] 5842[DllImport(Libraries.Propsys, ExactSpelling = true)] 5845[DllImport(Libraries.Propsys, ExactSpelling = true)] 5848[DllImport(Libraries.Propsys, ExactSpelling = true)] 5851[DllImport(Libraries.Propsys, ExactSpelling = true)] 5854[DllImport(Libraries.Propsys, ExactSpelling = true)] 5857[DllImport(Libraries.Propsys, ExactSpelling = true)] 5860[DllImport(Libraries.Oleaut32, ExactSpelling = true)] 5863[DllImport(Libraries.Oleaut32, ExactSpelling = true)]
System\Windows\Forms\DeviceContextScopeTests.cs (1)
12[DllImport(Libraries.Gdi32, SetLastError = true, ExactSpelling = true)]