public static HRESULT Make(bool severe, Standard.Facility facility, int code) { Standard.Facility facility1; if (severe) { facility1 = (Standard.Facility) - 2147483648; } else { facility1 = Standard.Facility.Null; } return(new HRESULT((uint)((int)facility1 | (int)facility << 16 | code))); }
public static Standard.HRESULT Make(bool severe, Standard.Facility facility, int code) { return(new Standard.HRESULT((uint)(((severe ? -2147483648 : 0) | (((int)facility) << 0x10)) | code))); }