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