29 references to WIN32_ERROR
System.Drawing.Common (14)
System\Drawing\Graphics.cs (4)
3562WIN32_ERROR error = (WIN32_ERROR)Marshal.GetLastWin32Error(); 3563if (error == WIN32_ERROR.ERROR_ACCESS_DENIED || error == WIN32_ERROR.ERROR_PROC_NOT_FOUND ||
System\Drawing\Icon.cs (2)
521throw new Win32Exception((int)WIN32_ERROR.ERROR_INVALID_PARAMETER); 531throw new Win32Exception((int)WIN32_ERROR.ERROR_INVALID_PARAMETER);
System\Drawing\Printing\DefaultPrintController.cs (5)
51WIN32_ERROR error = (WIN32_ERROR)Marshal.GetLastPInvokeError(); 52if (error == WIN32_ERROR.NO_ERROR) 60e.Cancel = error == WIN32_ERROR.ERROR_CANCELLED ? true : throw new Win32Exception((int)error); 66private static extern WIN32_ERROR GetLastError();
System\Drawing\Printing\PrinterSettings.cs (3)
144WIN32_ERROR error = (WIN32_ERROR)Marshal.GetLastPInvokeError(); 145if (error != WIN32_ERROR.ERROR_INSUFFICIENT_BUFFER)
System.Private.Windows.Core (2)
Windows\Win32\Foundation\HRESULT.cs (2)
45public static HRESULT FromWin32(WIN32_ERROR error) 48=> error == WIN32_ERROR.NO_ERROR
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (2)
3587|| (!returnValue && Marshal.GetLastWin32Error() == (int)WIN32_ERROR.ERROR_INVALID_HANDLE) 5804: throw new Win32Exception((int)WIN32_ERROR.ERROR_INVALID_HANDLE);
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
308if (hr == HRESULT.FromWin32(WIN32_ERROR.ERROR_CANCELLED))
System\Windows\Forms\SystemInformation.cs (1)
805return Marshal.GetLastWin32Error() == (int)WIN32_ERROR.ERROR_ACCESS_DENIED;
System.Windows.Forms.Primitives (9)
Windows.Win32.PInvoke.ADVAPI32.dll.g.cs (4)
40 internal static extern winmdroot.Foundation.WIN32_ERROR RegCloseKey(winmdroot.System.Registry.HKEY hKey); 44 internal static unsafe winmdroot.Foundation.WIN32_ERROR RegLoadMUIString(winmdroot.System.Registry.HKEY hKey, string pszValue, winmdroot.Foundation.PWSTR pszOutBuf, uint cbOutBuf, uint* pcbData, uint Flags, string pszDirectory) 50 winmdroot.Foundation.WIN32_ERROR __result = PInvoke.RegLoadMUIString(hKey, pszValueLocal, pszOutBuf, cbOutBuf, pcbData, Flags, pszDirectoryLocal); 87 internal static extern unsafe winmdroot.Foundation.WIN32_ERROR RegLoadMUIString(winmdroot.System.Registry.HKEY hKey, winmdroot.Foundation.PCWSTR pszValue, winmdroot.Foundation.PWSTR pszOutBuf, uint cbOutBuf, [Optional] uint* pcbData, uint Flags, winmdroot.Foundation.PCWSTR pszDirectory);
Windows\Win32\PInvoke.LoadLibrary.cs (1)
57if (Marshal.GetLastWin32Error() != (int)WIN32_ERROR.ERROR_INVALID_PARAMETER)
Windows\Win32\Pinvoke.RegLoadMUIString.cs (4)
22var errorCode = RegLoadMUIString( 32if (errorCode == WIN32_ERROR.ERROR_MORE_DATA) 38localizedValue = errorCode == WIN32_ERROR.ERROR_SUCCESS 42return errorCode == WIN32_ERROR.ERROR_SUCCESS;