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