27 instantiations of HRESULT
WindowsBase (27)
Base\MS\Internal\Interop\ErrorCodes.cs (27)
87return new HRESULT((uint)error._value); 184public static readonly HRESULT S_OK = new HRESULT(0x00000000); 186public static readonly HRESULT S_FALSE = new HRESULT(0x00000001); 188public static readonly HRESULT E_NOTIMPL = new HRESULT(0x80004001); 190public static readonly HRESULT E_NOINTERFACE = new HRESULT(0x80004002); 192public static readonly HRESULT E_POINTER = new HRESULT(0x80004003); 194public static readonly HRESULT E_ABORT = new HRESULT(0x80004004); 196public static readonly HRESULT E_FAIL = new HRESULT(0x80004005); 198public static readonly HRESULT E_UNEXPECTED = new HRESULT(0x8000FFFF); 200public static readonly HRESULT DISP_E_MEMBERNOTFOUND = new HRESULT(0x80020003); 202public static readonly HRESULT DISP_E_TYPEMISMATCH = new HRESULT(0x80020005); 204public static readonly HRESULT DISP_E_UNKNOWNNAME = new HRESULT(0x80020006); 206public static readonly HRESULT DISP_E_EXCEPTION = new HRESULT(0x80020009); 208public static readonly HRESULT DISP_E_OVERFLOW = new HRESULT(0x8002000A); 210public static readonly HRESULT DISP_E_BADINDEX = new HRESULT(0x8002000B); 212public static readonly HRESULT DISP_E_BADPARAMCOUNT = new HRESULT(0x8002000E); 214public static readonly HRESULT DISP_E_PARAMNOTOPTIONAL = new HRESULT(0x8002000F); 216public static readonly HRESULT SCRIPT_E_REPORTED = new HRESULT(0x80020101); 218public static readonly HRESULT STG_E_INVALIDFUNCTION = new HRESULT(0x80030001); 223public static readonly HRESULT DESTS_E_NO_MATCHING_ASSOC_HANDLER = new HRESULT(0x80040F03); 225public static readonly HRESULT E_ACCESSDENIED = new HRESULT(0x80070005); 227public static readonly HRESULT E_OUTOFMEMORY = new HRESULT(0x8007000E); 229public static readonly HRESULT E_INVALIDARG = new HRESULT(0x80070057); 231public static readonly HRESULT COR_E_OBJECTDISPOSED = new HRESULT(0x80131622); 233public static readonly HRESULT WC_E_GREATERTHAN = new HRESULT(0xC00CEE23); 235public static readonly HRESULT WC_E_SYNTAX = new HRESULT(0xC00CEE2D); 250return new HRESULT((uint)((severe ? (1 << 31) : 0) | ((int)facility << 16) | code));
56 references to HRESULT
WindowsBase (56)
Base\MS\Internal\Interop\ErrorCodes.cs (40)
81public static explicit operator HRESULT(Win32Error error) 89return HRESULT.Make(true, Facility.Win32, error._value & 0x0000FFFF); 96public HRESULT ToHRESULT() 98return (HRESULT)this; 184public static readonly HRESULT S_OK = new HRESULT(0x00000000); 186public static readonly HRESULT S_FALSE = new HRESULT(0x00000001); 188public static readonly HRESULT E_NOTIMPL = new HRESULT(0x80004001); 190public static readonly HRESULT E_NOINTERFACE = new HRESULT(0x80004002); 192public static readonly HRESULT E_POINTER = new HRESULT(0x80004003); 194public static readonly HRESULT E_ABORT = new HRESULT(0x80004004); 196public static readonly HRESULT E_FAIL = new HRESULT(0x80004005); 198public static readonly HRESULT E_UNEXPECTED = new HRESULT(0x8000FFFF); 200public static readonly HRESULT DISP_E_MEMBERNOTFOUND = new HRESULT(0x80020003); 202public static readonly HRESULT DISP_E_TYPEMISMATCH = new HRESULT(0x80020005); 204public static readonly HRESULT DISP_E_UNKNOWNNAME = new HRESULT(0x80020006); 206public static readonly HRESULT DISP_E_EXCEPTION = new HRESULT(0x80020009); 208public static readonly HRESULT DISP_E_OVERFLOW = new HRESULT(0x8002000A); 210public static readonly HRESULT DISP_E_BADINDEX = new HRESULT(0x8002000B); 212public static readonly HRESULT DISP_E_BADPARAMCOUNT = new HRESULT(0x8002000E); 214public static readonly HRESULT DISP_E_PARAMNOTOPTIONAL = new HRESULT(0x8002000F); 216public static readonly HRESULT SCRIPT_E_REPORTED = new HRESULT(0x80020101); 218public static readonly HRESULT STG_E_INVALIDFUNCTION = new HRESULT(0x80030001); 223public static readonly HRESULT DESTS_E_NO_MATCHING_ASSOC_HANDLER = new HRESULT(0x80040F03); 225public static readonly HRESULT E_ACCESSDENIED = new HRESULT(0x80070005); 227public static readonly HRESULT E_OUTOFMEMORY = new HRESULT(0x8007000E); 229public static readonly HRESULT E_INVALIDARG = new HRESULT(0x80070057); 231public static readonly HRESULT COR_E_OBJECTDISPOSED = new HRESULT(0x80131622); 233public static readonly HRESULT WC_E_GREATERTHAN = new HRESULT(0xC00CEE23); 235public static readonly HRESULT WC_E_SYNTAX = new HRESULT(0xC00CEE2D); 246public static HRESULT Make(bool severe, Facility facility, int code) 306foreach (FieldInfo publicStaticField in typeof(HRESULT).GetFields(BindingFlags.Static | BindingFlags.Public)) 308if (publicStaticField.FieldType == typeof(HRESULT)) 310var hr = (HRESULT)publicStaticField.GetValue(null); 326if ((HRESULT)error == this) 343return ((HRESULT)obj)._value == _value; 358public static bool operator ==(HRESULT hrLeft, HRESULT hrRight) 363public static bool operator !=(HRESULT hrLeft, HRESULT hrRight)
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (7)
27using HR = MS.Internal.Interop.HRESULT; 3254HR GetIDsOfNames( 3272HR Invoke( 3318new HR GetIDsOfNames( 3336new HR Invoke( 3360HR GetDispID( 3370HR InvokeEx(
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (9)
401internal static MS.Internal.Interop.HRESULT ChangeWindowMessageFilterEx(IntPtr hwnd, WindowMessage message, MSGFLT action, out MSGFLTINFO extStatus) 409return MS.Internal.Interop.HRESULT.S_FALSE; 420return (MS.Internal.Interop.HRESULT)Win32Error.GetLastError(); 422return MS.Internal.Interop.HRESULT.S_OK; 428return (MS.Internal.Interop.HRESULT)Win32Error.GetLastError(); 432return MS.Internal.Interop.HRESULT.S_OK; 440private static extern MS.Internal.Interop.HRESULT ObtainUserAgentString(int dwOption, StringBuilder userAgent, ref int length); 450MS.Internal.Interop.HRESULT hr = ObtainUserAgentString(0 /*reserved. must be 0*/, userAgentBuffer, ref length); 457if (hr == MS.Internal.Interop.HRESULT.E_OUTOFMEMORY)