23 instantiations of Win32Error
PresentationFramework (23)
System\Windows\Standard\ErrorCodes.cs (23)
26
public static readonly Win32Error ERROR_SUCCESS = new
Win32Error
(0);
28
public static readonly Win32Error ERROR_INVALID_FUNCTION = new
Win32Error
(1);
30
public static readonly Win32Error ERROR_FILE_NOT_FOUND = new
Win32Error
(2);
32
public static readonly Win32Error ERROR_PATH_NOT_FOUND = new
Win32Error
(3);
34
public static readonly Win32Error ERROR_TOO_MANY_OPEN_FILES = new
Win32Error
(4);
36
public static readonly Win32Error ERROR_ACCESS_DENIED = new
Win32Error
(5);
38
public static readonly Win32Error ERROR_INVALID_HANDLE = new
Win32Error
(6);
40
public static readonly Win32Error ERROR_OUTOFMEMORY = new
Win32Error
(14);
42
public static readonly Win32Error ERROR_NO_MORE_FILES = new
Win32Error
(18);
44
public static readonly Win32Error ERROR_SHARING_VIOLATION = new
Win32Error
(32);
46
public static readonly Win32Error ERROR_INVALID_PARAMETER = new
Win32Error
(87);
48
public static readonly Win32Error ERROR_INSUFFICIENT_BUFFER = new
Win32Error
(122);
50
public static readonly Win32Error ERROR_NESTING_NOT_ALLOWED = new
Win32Error
(215);
52
public static readonly Win32Error ERROR_KEY_DELETED = new
Win32Error
(1018);
54
public static readonly Win32Error ERROR_NOT_FOUND = new
Win32Error
(1168);
56
public static readonly Win32Error ERROR_NO_MATCH = new
Win32Error
(1169);
58
public static readonly Win32Error ERROR_BAD_DEVICE = new
Win32Error
(1200);
60
public static readonly Win32Error ERROR_CANCELLED = new
Win32Error
(1223);
62
public static readonly Win32Error ERROR_CLASS_ALREADY_EXISTS = new
Win32Error
(1410);
64
public static readonly Win32Error ERROR_INVALID_DATATYPE = new
Win32Error
(1804);
66
public static readonly Win32Error ERROR_INVALID_WINDOW_HANDLE = new
Win32Error
(1400);
68
public static readonly Win32Error ERROR_TIMEOUT = new
Win32Error
(1460);
106
return new
Win32Error
(Marshal.GetLastWin32Error());
37 references to Win32Error
PresentationFramework (37)
System\Windows\Standard\ErrorCodes.cs (34)
26
public static readonly
Win32Error
ERROR_SUCCESS = new Win32Error(0);
28
public static readonly
Win32Error
ERROR_INVALID_FUNCTION = new Win32Error(1);
30
public static readonly
Win32Error
ERROR_FILE_NOT_FOUND = new Win32Error(2);
32
public static readonly
Win32Error
ERROR_PATH_NOT_FOUND = new Win32Error(3);
34
public static readonly
Win32Error
ERROR_TOO_MANY_OPEN_FILES = new Win32Error(4);
36
public static readonly
Win32Error
ERROR_ACCESS_DENIED = new Win32Error(5);
38
public static readonly
Win32Error
ERROR_INVALID_HANDLE = new Win32Error(6);
40
public static readonly
Win32Error
ERROR_OUTOFMEMORY = new Win32Error(14);
42
public static readonly
Win32Error
ERROR_NO_MORE_FILES = new Win32Error(18);
44
public static readonly
Win32Error
ERROR_SHARING_VIOLATION = new Win32Error(32);
46
public static readonly
Win32Error
ERROR_INVALID_PARAMETER = new Win32Error(87);
48
public static readonly
Win32Error
ERROR_INSUFFICIENT_BUFFER = new Win32Error(122);
50
public static readonly
Win32Error
ERROR_NESTING_NOT_ALLOWED = new Win32Error(215);
52
public static readonly
Win32Error
ERROR_KEY_DELETED = new Win32Error(1018);
54
public static readonly
Win32Error
ERROR_NOT_FOUND = new Win32Error(1168);
56
public static readonly
Win32Error
ERROR_NO_MATCH = new Win32Error(1169);
58
public static readonly
Win32Error
ERROR_BAD_DEVICE = new Win32Error(1200);
60
public static readonly
Win32Error
ERROR_CANCELLED = new Win32Error(1223);
62
public static readonly
Win32Error
ERROR_CLASS_ALREADY_EXISTS = new Win32Error(1410);
64
public static readonly
Win32Error
ERROR_INVALID_DATATYPE = new Win32Error(1804);
66
public static readonly
Win32Error
ERROR_INVALID_WINDOW_HANDLE = new Win32Error(1400);
68
public static readonly
Win32Error
ERROR_TIMEOUT = new Win32Error(1460);
82
public static explicit operator HRESULT(
Win32Error
error)
104
public static
Win32Error
GetLastError()
113
return ((
Win32Error
)obj)._value == _value;
132
public static bool operator ==(
Win32Error
errLeft,
Win32Error
errRight)
143
public static bool operator !=(
Win32Error
errLeft,
Win32Error
errRight)
328
foreach (FieldInfo publicStaticField in typeof(
Win32Error
).GetFields(BindingFlags.Static | BindingFlags.Public))
330
if (publicStaticField.FieldType == typeof(
Win32Error
))
332
var
error = (
Win32Error
)publicStaticField.GetValue(null);
456
((HRESULT)
Win32Error
.GetLastError()).ThrowIfFailed();
System\Windows\Standard\NativeMethods.cs (3)
2328
return (HRESULT)
Win32Error
.GetLastError();
2337
return (HRESULT)
Win32Error
.GetLastError();
2981
public static extern
Win32Error
SHFileOperation(ref SHFILEOPSTRUCT lpFileOp);