21 instantiations of Win32Error
PresentationFramework (21)
System\Windows\Standard\ErrorCodes.cs (21)
30
public static readonly Win32Error ERROR_SUCCESS = new
Win32Error
(0);
32
public static readonly Win32Error ERROR_INVALID_FUNCTION = new
Win32Error
(1);
34
public static readonly Win32Error ERROR_FILE_NOT_FOUND = new
Win32Error
(2);
36
public static readonly Win32Error ERROR_PATH_NOT_FOUND = new
Win32Error
(3);
38
public static readonly Win32Error ERROR_TOO_MANY_OPEN_FILES = new
Win32Error
(4);
40
public static readonly Win32Error ERROR_ACCESS_DENIED = new
Win32Error
(5);
42
public static readonly Win32Error ERROR_INVALID_HANDLE = new
Win32Error
(6);
44
public static readonly Win32Error ERROR_OUTOFMEMORY = new
Win32Error
(14);
46
public static readonly Win32Error ERROR_NO_MORE_FILES = new
Win32Error
(18);
48
public static readonly Win32Error ERROR_SHARING_VIOLATION = new
Win32Error
(32);
50
public static readonly Win32Error ERROR_INVALID_PARAMETER = new
Win32Error
(87);
52
public static readonly Win32Error ERROR_INSUFFICIENT_BUFFER = new
Win32Error
(122);
54
public static readonly Win32Error ERROR_NESTING_NOT_ALLOWED = new
Win32Error
(215);
56
public static readonly Win32Error ERROR_KEY_DELETED = new
Win32Error
(1018);
58
public static readonly Win32Error ERROR_NOT_FOUND = new
Win32Error
(1168);
60
public static readonly Win32Error ERROR_NO_MATCH = new
Win32Error
(1169);
62
public static readonly Win32Error ERROR_BAD_DEVICE = new
Win32Error
(1200);
64
public static readonly Win32Error ERROR_CANCELLED = new
Win32Error
(1223);
66
public static readonly Win32Error ERROR_CLASS_ALREADY_EXISTS = new
Win32Error
(1410);
68
public static readonly Win32Error ERROR_INVALID_DATATYPE = new
Win32Error
(1804);
106
return new
Win32Error
(Marshal.GetLastWin32Error());
35 references to Win32Error
PresentationFramework (35)
System\Windows\Standard\ErrorCodes.cs (32)
30
public static readonly
Win32Error
ERROR_SUCCESS = new Win32Error(0);
32
public static readonly
Win32Error
ERROR_INVALID_FUNCTION = new Win32Error(1);
34
public static readonly
Win32Error
ERROR_FILE_NOT_FOUND = new Win32Error(2);
36
public static readonly
Win32Error
ERROR_PATH_NOT_FOUND = new Win32Error(3);
38
public static readonly
Win32Error
ERROR_TOO_MANY_OPEN_FILES = new Win32Error(4);
40
public static readonly
Win32Error
ERROR_ACCESS_DENIED = new Win32Error(5);
42
public static readonly
Win32Error
ERROR_INVALID_HANDLE = new Win32Error(6);
44
public static readonly
Win32Error
ERROR_OUTOFMEMORY = new Win32Error(14);
46
public static readonly
Win32Error
ERROR_NO_MORE_FILES = new Win32Error(18);
48
public static readonly
Win32Error
ERROR_SHARING_VIOLATION = new Win32Error(32);
50
public static readonly
Win32Error
ERROR_INVALID_PARAMETER = new Win32Error(87);
52
public static readonly
Win32Error
ERROR_INSUFFICIENT_BUFFER = new Win32Error(122);
54
public static readonly
Win32Error
ERROR_NESTING_NOT_ALLOWED = new Win32Error(215);
56
public static readonly
Win32Error
ERROR_KEY_DELETED = new Win32Error(1018);
58
public static readonly
Win32Error
ERROR_NOT_FOUND = new Win32Error(1168);
60
public static readonly
Win32Error
ERROR_NO_MATCH = new Win32Error(1169);
62
public static readonly
Win32Error
ERROR_BAD_DEVICE = new Win32Error(1200);
64
public static readonly
Win32Error
ERROR_CANCELLED = new Win32Error(1223);
66
public static readonly
Win32Error
ERROR_CLASS_ALREADY_EXISTS = new Win32Error(1410);
68
public static readonly
Win32Error
ERROR_INVALID_DATATYPE = new Win32Error(1804);
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)
2333
return (HRESULT)
Win32Error
.GetLastError();
2342
return (HRESULT)
Win32Error
.GetLastError();
2986
public static extern
Win32Error
SHFileOperation(ref SHFILEOPSTRUCT lpFileOp);