23 instantiations of HRESULT
PresentationFramework (23)
src\Framework\System\Windows\Standard\ErrorCodes.cs (23)
106return new HRESULT((uint)error._value); 207public static readonly HRESULT S_OK = new HRESULT(0x00000000); 210public static readonly HRESULT S_FALSE = new HRESULT(0x00000001); 213public static readonly HRESULT E_PENDING = new HRESULT(0x8000000A); 216public static readonly HRESULT E_NOTIMPL = new HRESULT(0x80004001); 219public static readonly HRESULT E_NOINTERFACE = new HRESULT(0x80004002); 222public static readonly HRESULT E_POINTER = new HRESULT(0x80004003); 225public static readonly HRESULT E_ABORT = new HRESULT(0x80004004); 228public static readonly HRESULT E_FAIL = new HRESULT(0x80004005); 231public static readonly HRESULT E_UNEXPECTED = new HRESULT(0x8000FFFF); 234public static readonly HRESULT STG_E_INVALIDFUNCTION = new HRESULT(0x80030001); 237public static readonly HRESULT REGDB_E_CLASSNOTREG = new HRESULT(0x80040154); 242public static readonly HRESULT DESTS_E_NO_MATCHING_ASSOC_HANDLER = new HRESULT(0x80040F03); 246public static readonly HRESULT DESTS_E_NORECDOCS = new HRESULT(0x80040F04); 250public static readonly HRESULT DESTS_E_NOTALLCLEARED = new HRESULT(0x80040F05); 255public static readonly HRESULT E_ACCESSDENIED = new HRESULT(0x80070005); 259public static readonly HRESULT E_OUTOFMEMORY = new HRESULT(0x8007000E); 263public static readonly HRESULT E_INVALIDARG = new HRESULT(0x80070057); 266public static readonly HRESULT INTSAFE_E_ARITHMETIC_OVERFLOW = new HRESULT(0x80070216); 269public static readonly HRESULT COR_E_OBJECTDISPOSED = new HRESULT(0x80131622); 272public static readonly HRESULT WC_E_GREATERTHAN = new HRESULT(0xC00CEE23); 275public static readonly HRESULT WC_E_SYNTAX = new HRESULT(0xC00CEE2D); 301return new HRESULT((uint)((severe ? (1 << 31) : 0) | ((int)facility << 16) | code));
102 references to HRESULT
PresentationFramework (102)
src\Framework\System\Windows\Standard\ErrorCodes.cs (37)
100public static explicit operator HRESULT(Win32Error error) 108return HRESULT.Make(true, Facility.Win32, error._value & 0x0000FFFF); 115public HRESULT ToHRESULT() 117return (HRESULT)this; 207public static readonly HRESULT S_OK = new HRESULT(0x00000000); 210public static readonly HRESULT S_FALSE = new HRESULT(0x00000001); 213public static readonly HRESULT E_PENDING = new HRESULT(0x8000000A); 216public static readonly HRESULT E_NOTIMPL = new HRESULT(0x80004001); 219public static readonly HRESULT E_NOINTERFACE = new HRESULT(0x80004002); 222public static readonly HRESULT E_POINTER = new HRESULT(0x80004003); 225public static readonly HRESULT E_ABORT = new HRESULT(0x80004004); 228public static readonly HRESULT E_FAIL = new HRESULT(0x80004005); 231public static readonly HRESULT E_UNEXPECTED = new HRESULT(0x8000FFFF); 234public static readonly HRESULT STG_E_INVALIDFUNCTION = new HRESULT(0x80030001); 237public static readonly HRESULT REGDB_E_CLASSNOTREG = new HRESULT(0x80040154); 242public static readonly HRESULT DESTS_E_NO_MATCHING_ASSOC_HANDLER = new HRESULT(0x80040F03); 246public static readonly HRESULT DESTS_E_NORECDOCS = new HRESULT(0x80040F04); 250public static readonly HRESULT DESTS_E_NOTALLCLEARED = new HRESULT(0x80040F05); 255public static readonly HRESULT E_ACCESSDENIED = new HRESULT(0x80070005); 259public static readonly HRESULT E_OUTOFMEMORY = new HRESULT(0x8007000E); 263public static readonly HRESULT E_INVALIDARG = new HRESULT(0x80070057); 266public static readonly HRESULT INTSAFE_E_ARITHMETIC_OVERFLOW = new HRESULT(0x80070216); 269public static readonly HRESULT COR_E_OBJECTDISPOSED = new HRESULT(0x80131622); 272public static readonly HRESULT WC_E_GREATERTHAN = new HRESULT(0xC00CEE23); 275public static readonly HRESULT WC_E_SYNTAX = new HRESULT(0xC00CEE2D); 286public static HRESULT Make(bool severe, Facility facility, int code) 357foreach (FieldInfo publicStaticField in typeof(HRESULT).GetFields(BindingFlags.Static | BindingFlags.Public)) 359if (publicStaticField.FieldType == typeof(HRESULT)) 361var hr = (HRESULT)publicStaticField.GetValue(null); 377if ((HRESULT)error == this) 394return ((HRESULT)obj)._value == _value; 409public static bool operator ==(HRESULT hrLeft, HRESULT hrRight) 414public static bool operator !=(HRESULT hrLeft, HRESULT hrRight) 509((HRESULT)Win32Error.GetLastError()).ThrowIfFailed();
src\Framework\System\Windows\Standard\NativeMethods.cs (36)
1504HRESULT.ThrowLastError(); 1546HRESULT.E_FAIL.ThrowIfFailed(); 2429HRESULT.ThrowLastError(); 2460public static HRESULT ChangeWindowMessageFilterEx(IntPtr hwnd, WM message, MSGFLT action, out MSGFLTINFO filterInfo) 2470return HRESULT.S_FALSE; 2482return (HRESULT)Win32Error.GetLastError(); 2484return HRESULT.S_OK; 2491return (HRESULT)Win32Error.GetLastError(); 2495return HRESULT.S_OK; 2586HRESULT.ThrowLastError(); 2711HRESULT.ThrowLastError(); 2784private static extern HRESULT _DwmGetColorizationColor(out uint pcrColorization, [Out, MarshalAs(UnmanagedType.Bool)] out bool pfOpaqueBlend); 2795HRESULT hr = _DwmGetColorizationColor(out pcrColorization, out pfOpaqueBlend); 2979HRESULT.ThrowLastError(); 2989private static extern HRESULT _GetCurrentThemeName( 3056HRESULT.ThrowLastError(); 3088HRESULT.ThrowLastError(); 3133HRESULT.ThrowLastError(); 3247HRESULT.ThrowLastError(); 3376HRESULT.ThrowLastError(); 3400HRESULT.ThrowLastError(); 3424HRESULT.ThrowLastError(); 3609HRESULT.ThrowLastError(); 3626HRESULT.ThrowLastError(); 3643HRESULT.ThrowLastError(); 3677HRESULT.ThrowLastError(); 3700HRESULT.ThrowLastError(); 3748HRESULT.ThrowLastError(); 3760HRESULT.ThrowLastError(); 3818HRESULT.ThrowLastError(); 3835HRESULT.ThrowLastError(); 3884private static extern HRESULT _DwmGetCompositionTimingInfo(IntPtr hwnd, ref DWM_TIMING_INFO pTimingInfo); 3899HRESULT hr = _DwmGetCompositionTimingInfo(hwnd, ref dti); 3900if (hr == HRESULT.E_PENDING) 3948public static extern HRESULT SHCreateItemFromParsingName([MarshalAs(UnmanagedType.LPWStr)] string pszPath, IBindCtx pbc, [In] ref Guid riid, [Out, MarshalAs(UnmanagedType.Interface)] out object ppv); 3981public static extern HRESULT GetCurrentProcessExplicitAppUserModelID([Out, MarshalAs(UnmanagedType.LPWStr)] out string AppID);
src\Framework\System\Windows\Standard\ShellProvider.cs (29)
379HRESULT Next(uint celt, out IntPtr rgelt, out int pceltFetched); 381HRESULT Skip(uint celt); 508HRESULT CompareIDs([In] IntPtr lParam, [In] IntPtr pidl1, [In] IntPtr pidl2); 839HRESULT AppendCategory([MarshalAs(UnmanagedType.LPWStr)] string pszCategory, IObjectArray poa); 842HRESULT AddUserTasks(IObjectArray poa); 904HRESULT SetProgressValue(IntPtr hwnd, ulong ullCompleted, ulong ullTotal); 907HRESULT SetProgressState(IntPtr hwnd, TBPF tbpFlags); 910HRESULT RegisterTab(IntPtr hwndTab, IntPtr hwndMDI); 913HRESULT UnregisterTab(IntPtr hwndTab); 916HRESULT SetTabOrder(IntPtr hwndTab, IntPtr hwndInsertBefore); 919HRESULT SetTabActive(IntPtr hwndTab, IntPtr hwndMDI, uint dwReserved); 922HRESULT ThumbBarAddButtons(IntPtr hwnd, uint cButtons, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] THUMBBUTTON[] pButtons); 925HRESULT ThumbBarUpdateButtons(IntPtr hwnd, uint cButtons, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] THUMBBUTTON[] pButtons); 928HRESULT ThumbBarSetImageList(IntPtr hwnd, [MarshalAs(UnmanagedType.IUnknown)] object himl); 931HRESULT SetOverlayIcon(IntPtr hwnd, IntPtr hIcon, [MarshalAs(UnmanagedType.LPWStr)] string pszDescription); 934HRESULT SetThumbnailTooltip(IntPtr hwnd, [MarshalAs(UnmanagedType.LPWStr)] string pszTip); 938HRESULT SetThumbnailClip(IntPtr hwnd, RefRECT prcClip); 964[PreserveSig] new HRESULT SetProgressValue(IntPtr hwnd, ulong ullCompleted, ulong ullTotal); 965[PreserveSig] new HRESULT SetProgressState(IntPtr hwnd, TBPF tbpFlags); 966[PreserveSig] new HRESULT RegisterTab(IntPtr hwndTab, IntPtr hwndMDI); 967[PreserveSig] new HRESULT UnregisterTab(IntPtr hwndTab); 968[PreserveSig] new HRESULT SetTabOrder(IntPtr hwndTab, IntPtr hwndInsertBefore); 969[PreserveSig] new HRESULT SetTabActive(IntPtr hwndTab, IntPtr hwndMDI, uint dwReserved); 970[PreserveSig] new HRESULT ThumbBarAddButtons(IntPtr hwnd, uint cButtons, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] THUMBBUTTON[] pButtons); 971[PreserveSig] new HRESULT ThumbBarUpdateButtons(IntPtr hwnd, uint cButtons, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] THUMBBUTTON[] pButtons); 972[PreserveSig] new HRESULT ThumbBarSetImageList(IntPtr hwnd, [MarshalAs(UnmanagedType.IUnknown)] object himl); 973[PreserveSig] new HRESULT SetOverlayIcon(IntPtr hwnd, IntPtr hIcon, [MarshalAs(UnmanagedType.LPWStr)] string pszDescription); 974[PreserveSig] new HRESULT SetThumbnailTooltip(IntPtr hwnd, [MarshalAs(UnmanagedType.LPWStr)] string pszTip); 976[PreserveSig] new HRESULT SetThumbnailClip(IntPtr hwnd, RefRECT prcClip);