1 write to Value
System.Private.Windows.Core (1)
Windows.Win32.HRESULT.g.cs (1)
33 internal HRESULT(int value) => this.Value = value;
16 references to Value
System.Private.Windows.Core (16)
Windows.Win32.HRESULT.g.cs (12)
35 public static implicit operator int(HRESULT value) => value.Value; 39 public static bool operator ==(HRESULT left, HRESULT right) => left.Value == right.Value; 43 public bool Equals(HRESULT other) => this.Value == other.Value; 47 public override int GetHashCode() => this.Value.GetHashCode(); 50 public override string ToString() => string.Format(global::System.Globalization.CultureInfo.InvariantCulture, "0x{0:X8}", this.Value); 52 public static implicit operator uint(HRESULT value) => (uint)value.Value; 58 internal bool Succeeded => this.Value >= 0; 62 internal bool Failed => this.Value < 0; 77 Marshal.ThrowExceptionForHR(this.Value, errorInfo); 82 internal string ToString(string format, IFormatProvider formatProvider) => ((uint)this.Value).ToString(format, formatProvider);
Windows\Win32\Foundation\HRESULT.cs (4)
18=> (FACILITY_CODE)((Value >> 16) & 0x1fff); 26=> Value & 0xFFFF; 31public bool IsNtStatus => (Value & (int)FACILITY_CODE.FACILITY_NT_BIT) == (int)FACILITY_CODE.FACILITY_NT_BIT; 39return new NTSTATUS(Value & ~(int)FACILITY_CODE.FACILITY_NT_BIT);