31 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)
3580
|| (!returnValue && Marshal.GetLastWin32Error() == (int)
WIN32_ERROR
.ERROR_INVALID_HANDLE)
5797
: 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 (11)
_generated\408\Windows.Win32.PInvoke.ADVAPI32.dll.g.cs (6)
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, [Optional] string pszValue, [Optional] Span<char>pszOutBuf, out uint pcbData, uint Flags, [Optional] string pszDirectory)
54
winmdroot.Foundation.
WIN32_ERROR
__result = PInvoke.RegLoadMUIString(hKey, pszValueLocal, pszOutBufLocal, (uint )pszOutBuf.Length, pcbDataLocal, Flags, pszDirectoryLocal);
64
internal static unsafe winmdroot.Foundation.
WIN32_ERROR
RegLoadMUIString(winmdroot.System.Registry.HKEY hKey, [Optional] string pszValue, [Optional] Span<char>pszOutBuf, uint Flags, [Optional] string pszDirectory)
72
winmdroot.Foundation.
WIN32_ERROR
__result = PInvoke.RegLoadMUIString(hKey, pszValueLocal, pszOutBufLocal, (uint )pszOutBuf.Length, default(uint* ), Flags, pszDirectoryLocal);
110
internal static extern unsafe winmdroot.Foundation.
WIN32_ERROR
RegLoadMUIString(winmdroot.System.Registry.HKEY hKey, [Optional] winmdroot.Foundation.PCWSTR pszValue, [Optional] winmdroot.Foundation.PWSTR pszOutBuf, uint cbOutBuf, [Optional] uint* pcbData, uint Flags, [Optional] 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)
23
var
errorCode = RegLoadMUIString(
33
if (errorCode ==
WIN32_ERROR
.ERROR_MORE_DATA)
39
localizedValue = errorCode ==
WIN32_ERROR
.ERROR_SUCCESS
43
return errorCode ==
WIN32_ERROR
.ERROR_SUCCESS;