21 instantiations of Win32Error
PresentationFramework (21)
src\Framework\System\Windows\Standard\ErrorCodes.cs (21)
29
public static readonly Win32Error ERROR_SUCCESS = new
Win32Error
(0);
32
public static readonly Win32Error ERROR_INVALID_FUNCTION = new
Win32Error
(1);
35
public static readonly Win32Error ERROR_FILE_NOT_FOUND = new
Win32Error
(2);
38
public static readonly Win32Error ERROR_PATH_NOT_FOUND = new
Win32Error
(3);
41
public static readonly Win32Error ERROR_TOO_MANY_OPEN_FILES = new
Win32Error
(4);
44
public static readonly Win32Error ERROR_ACCESS_DENIED = new
Win32Error
(5);
47
public static readonly Win32Error ERROR_INVALID_HANDLE = new
Win32Error
(6);
50
public static readonly Win32Error ERROR_OUTOFMEMORY = new
Win32Error
(14);
53
public static readonly Win32Error ERROR_NO_MORE_FILES = new
Win32Error
(18);
56
public static readonly Win32Error ERROR_SHARING_VIOLATION = new
Win32Error
(32);
59
public static readonly Win32Error ERROR_INVALID_PARAMETER = new
Win32Error
(87);
62
public static readonly Win32Error ERROR_INSUFFICIENT_BUFFER = new
Win32Error
(122);
65
public static readonly Win32Error ERROR_NESTING_NOT_ALLOWED = new
Win32Error
(215);
68
public static readonly Win32Error ERROR_KEY_DELETED = new
Win32Error
(1018);
71
public static readonly Win32Error ERROR_NOT_FOUND = new
Win32Error
(1168);
74
public static readonly Win32Error ERROR_NO_MATCH = new
Win32Error
(1169);
77
public static readonly Win32Error ERROR_BAD_DEVICE = new
Win32Error
(1200);
80
public static readonly Win32Error ERROR_CANCELLED = new
Win32Error
(1223);
83
public static readonly Win32Error ERROR_CLASS_ALREADY_EXISTS = new
Win32Error
(1410);
86
public static readonly Win32Error ERROR_INVALID_DATATYPE = new
Win32Error
(1804);
129
return new
Win32Error
(Marshal.GetLastWin32Error());
35 references to Win32Error
PresentationFramework (35)
src\Framework\System\Windows\Standard\ErrorCodes.cs (32)
29
public static readonly
Win32Error
ERROR_SUCCESS = new Win32Error(0);
32
public static readonly
Win32Error
ERROR_INVALID_FUNCTION = new Win32Error(1);
35
public static readonly
Win32Error
ERROR_FILE_NOT_FOUND = new Win32Error(2);
38
public static readonly
Win32Error
ERROR_PATH_NOT_FOUND = new Win32Error(3);
41
public static readonly
Win32Error
ERROR_TOO_MANY_OPEN_FILES = new Win32Error(4);
44
public static readonly
Win32Error
ERROR_ACCESS_DENIED = new Win32Error(5);
47
public static readonly
Win32Error
ERROR_INVALID_HANDLE = new Win32Error(6);
50
public static readonly
Win32Error
ERROR_OUTOFMEMORY = new Win32Error(14);
53
public static readonly
Win32Error
ERROR_NO_MORE_FILES = new Win32Error(18);
56
public static readonly
Win32Error
ERROR_SHARING_VIOLATION = new Win32Error(32);
59
public static readonly
Win32Error
ERROR_INVALID_PARAMETER = new Win32Error(87);
62
public static readonly
Win32Error
ERROR_INSUFFICIENT_BUFFER = new Win32Error(122);
65
public static readonly
Win32Error
ERROR_NESTING_NOT_ALLOWED = new Win32Error(215);
68
public static readonly
Win32Error
ERROR_KEY_DELETED = new Win32Error(1018);
71
public static readonly
Win32Error
ERROR_NOT_FOUND = new Win32Error(1168);
74
public static readonly
Win32Error
ERROR_NO_MATCH = new Win32Error(1169);
77
public static readonly
Win32Error
ERROR_BAD_DEVICE = new Win32Error(1200);
80
public static readonly
Win32Error
ERROR_CANCELLED = new Win32Error(1223);
83
public static readonly
Win32Error
ERROR_CLASS_ALREADY_EXISTS = new Win32Error(1410);
86
public static readonly
Win32Error
ERROR_INVALID_DATATYPE = new Win32Error(1804);
100
public static explicit operator HRESULT(
Win32Error
error)
127
public static
Win32Error
GetLastError()
136
return ((
Win32Error
)obj)._value == _value;
155
public static bool operator ==(
Win32Error
errLeft,
Win32Error
errRight)
166
public static bool operator !=(
Win32Error
errLeft,
Win32Error
errRight)
372
foreach (FieldInfo publicStaticField in typeof(
Win32Error
).GetFields(BindingFlags.Static | BindingFlags.Public))
374
if (publicStaticField.FieldType == typeof(
Win32Error
))
376
var
error = (
Win32Error
)publicStaticField.GetValue(null);
509
((HRESULT)
Win32Error
.GetLastError()).ThrowIfFailed();
src\Framework\System\Windows\Standard\NativeMethods.cs (3)
2482
return (HRESULT)
Win32Error
.GetLastError();
2491
return (HRESULT)
Win32Error
.GetLastError();
3561
public static extern
Win32Error
SHFileOperation(ref SHFILEOPSTRUCT lpFileOp);