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