29 references to WIN32_ERROR
System.Drawing.Common (14)
System\Drawing\Graphics.cs (4)
3562
WIN32_ERROR
error = (
WIN32_ERROR
)Marshal.GetLastWin32Error();
3563
if (error ==
WIN32_ERROR
.ERROR_ACCESS_DENIED || error ==
WIN32_ERROR
.ERROR_PROC_NOT_FOUND ||
System\Drawing\Icon.cs (2)
521
throw new Win32Exception((int)
WIN32_ERROR
.ERROR_INVALID_PARAMETER);
531
throw new Win32Exception((int)
WIN32_ERROR
.ERROR_INVALID_PARAMETER);
System\Drawing\Printing\DefaultPrintController.cs (5)
51
WIN32_ERROR
error = (
WIN32_ERROR
)Marshal.GetLastPInvokeError();
52
if (error ==
WIN32_ERROR
.NO_ERROR)
60
e.Cancel = error ==
WIN32_ERROR
.ERROR_CANCELLED ? true : throw new Win32Exception((int)error);
66
private static extern
WIN32_ERROR
GetLastError();
System\Drawing\Printing\PrinterSettings.cs (3)
144
WIN32_ERROR
error = (
WIN32_ERROR
)Marshal.GetLastPInvokeError();
145
if (error !=
WIN32_ERROR
.ERROR_INSUFFICIENT_BUFFER)
System.Private.Windows.Core (2)
Windows\Win32\Foundation\HRESULT.cs (2)
45
public 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)
308
if (hr == HRESULT.FromWin32(
WIN32_ERROR
.ERROR_CANCELLED))
System\Windows\Forms\SystemInformation.cs (1)
805
return 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)
57
if (Marshal.GetLastWin32Error() != (int)
WIN32_ERROR
.ERROR_INVALID_PARAMETER)
Windows\Win32\Pinvoke.RegLoadMUIString.cs (4)
22
var
errorCode = RegLoadMUIString(
32
if (errorCode ==
WIN32_ERROR
.ERROR_MORE_DATA)
38
localizedValue = errorCode ==
WIN32_ERROR
.ERROR_SUCCESS
42
return errorCode ==
WIN32_ERROR
.ERROR_SUCCESS;