21 instantiations of Win32Error
WindowsBase (21)
Base\MS\Internal\Interop\ErrorCodes.cs (21)
29
public static readonly Win32Error ERROR_SUCCESS = new
Win32Error
(0);
31
public static readonly Win32Error ERROR_INVALID_FUNCTION = new
Win32Error
(1);
33
public static readonly Win32Error ERROR_FILE_NOT_FOUND = new
Win32Error
(2);
35
public static readonly Win32Error ERROR_PATH_NOT_FOUND = new
Win32Error
(3);
37
public static readonly Win32Error ERROR_TOO_MANY_OPEN_FILES = new
Win32Error
(4);
39
public static readonly Win32Error ERROR_ACCESS_DENIED = new
Win32Error
(5);
41
public static readonly Win32Error ERROR_INVALID_HANDLE = new
Win32Error
(6);
43
public static readonly Win32Error ERROR_OUTOFMEMORY = new
Win32Error
(14);
45
public static readonly Win32Error ERROR_NO_MORE_FILES = new
Win32Error
(18);
47
public static readonly Win32Error ERROR_SHARING_VIOLATION = new
Win32Error
(32);
49
public static readonly Win32Error ERROR_INVALID_PARAMETER = new
Win32Error
(87);
51
public static readonly Win32Error ERROR_INSUFFICIENT_BUFFER = new
Win32Error
(122);
53
public static readonly Win32Error ERROR_NESTING_NOT_ALLOWED = new
Win32Error
(215);
55
public static readonly Win32Error ERROR_KEY_DELETED = new
Win32Error
(1018);
57
public static readonly Win32Error ERROR_NO_MATCH = new
Win32Error
(1169);
59
public static readonly Win32Error ERROR_BAD_DEVICE = new
Win32Error
(1200);
61
public static readonly Win32Error ERROR_CANCELLED = new
Win32Error
(1223);
63
public static readonly Win32Error ERROR_INVALID_WINDOW_HANDLE = new
Win32Error
(1400);
65
public static readonly Win32Error ERROR_TIMEOUT = new
Win32Error
(1460);
67
public static readonly Win32Error ERROR_INVALID_DATATYPE = new
Win32Error
(1804);
109
return new
Win32Error
(Marshal.GetLastWin32Error());
33 references to Win32Error
WindowsBase (33)
Base\MS\Internal\Interop\ErrorCodes.cs (31)
29
public static readonly
Win32Error
ERROR_SUCCESS = new Win32Error(0);
31
public static readonly
Win32Error
ERROR_INVALID_FUNCTION = new Win32Error(1);
33
public static readonly
Win32Error
ERROR_FILE_NOT_FOUND = new Win32Error(2);
35
public static readonly
Win32Error
ERROR_PATH_NOT_FOUND = new Win32Error(3);
37
public static readonly
Win32Error
ERROR_TOO_MANY_OPEN_FILES = new Win32Error(4);
39
public static readonly
Win32Error
ERROR_ACCESS_DENIED = new Win32Error(5);
41
public static readonly
Win32Error
ERROR_INVALID_HANDLE = new Win32Error(6);
43
public static readonly
Win32Error
ERROR_OUTOFMEMORY = new Win32Error(14);
45
public static readonly
Win32Error
ERROR_NO_MORE_FILES = new Win32Error(18);
47
public static readonly
Win32Error
ERROR_SHARING_VIOLATION = new Win32Error(32);
49
public static readonly
Win32Error
ERROR_INVALID_PARAMETER = new Win32Error(87);
51
public static readonly
Win32Error
ERROR_INSUFFICIENT_BUFFER = new Win32Error(122);
53
public static readonly
Win32Error
ERROR_NESTING_NOT_ALLOWED = new Win32Error(215);
55
public static readonly
Win32Error
ERROR_KEY_DELETED = new Win32Error(1018);
57
public static readonly
Win32Error
ERROR_NO_MATCH = new Win32Error(1169);
59
public static readonly
Win32Error
ERROR_BAD_DEVICE = new Win32Error(1200);
61
public static readonly
Win32Error
ERROR_CANCELLED = new Win32Error(1223);
63
public static readonly
Win32Error
ERROR_INVALID_WINDOW_HANDLE = new Win32Error(1400);
65
public static readonly
Win32Error
ERROR_TIMEOUT = new Win32Error(1460);
67
public static readonly
Win32Error
ERROR_INVALID_DATATYPE = new Win32Error(1804);
81
public static explicit operator HRESULT(
Win32Error
error)
107
public static
Win32Error
GetLastError()
116
return ((
Win32Error
)obj)._value == _value;
135
public static bool operator ==(
Win32Error
errLeft,
Win32Error
errRight)
146
public static bool operator !=(
Win32Error
errLeft,
Win32Error
errRight)
321
foreach (FieldInfo publicStaticField in typeof(
Win32Error
).GetFields(BindingFlags.Static | BindingFlags.Public))
323
if (publicStaticField.FieldType == typeof(
Win32Error
))
325
var
error = (
Win32Error
)publicStaticField.GetValue(null);
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (2)
420
return (MS.Internal.Interop.HRESULT)
Win32Error
.GetLastError();
428
return (MS.Internal.Interop.HRESULT)
Win32Error
.GetLastError();