namespace SharpGen.Runtime { public readonly partial struct Result { private const string GeneralModule = "General"; /// S_OK public static readonly Result Ok = new(0x00000000); /// S_FALSE public static readonly Result False = new(0x00000001); /// E_ABORT public static readonly ResultDescriptor Abort = new(new Result(0x80004004), GeneralModule, "E_ABORT", "Operation aborted"); /// E_ACCESSDENIED public static readonly ResultDescriptor AccessDenied = new(new Result(0x80070005), GeneralModule, "E_ACCESSDENIED", "General access denied error"); /// E_FAIL public static readonly ResultDescriptor Fail = new(new Result(0x80004005), GeneralModule, "E_FAIL", "Unspecified error"); /// E_HANDLE public static readonly ResultDescriptor Handle = new(new Result(0x80070006), GeneralModule, "E_HANDLE", "Invalid handle"); /// E_INVALIDARG public static readonly ResultDescriptor InvalidArg = new(new Result(0x80070057), GeneralModule, "E_INVALIDARG", "Invalid Arguments"); /// E_NOINTERFACE public static readonly ResultDescriptor NoInterface = new(new Result(0x80004002), GeneralModule, "E_NOINTERFACE", "No such interface supported"); /// E_NOTIMPL public static readonly ResultDescriptor NotImplemented = new(new Result(0x80004001), GeneralModule, "E_NOTIMPL", "Not implemented"); /// E_OUTOFMEMORY public static readonly ResultDescriptor OutOfMemory = new(new Result(0x8007000E), GeneralModule, "E_OUTOFMEMORY", "Out of memory"); /// E_POINTER public static readonly ResultDescriptor InvalidPointer = new(new Result(0x80004003), GeneralModule, "E_POINTER", "Invalid pointer"); /// E_UNEXPECTED public static readonly ResultDescriptor UnexpectedFailure = new(new Result(0x8000FFFF), GeneralModule, "E_UNEXPECTED", "Catastrophic failure"); /// WAIT_ABANDONED public static readonly ResultDescriptor WaitAbandoned = new(new Result(0x00000080), GeneralModule, "WAIT_ABANDONED", "WaitAbandoned"); /// WAIT_TIMEOUT public static readonly ResultDescriptor WaitTimeout = new(new Result(0x00000102), GeneralModule, "WAIT_TIMEOUT", "WaitTimeout"); /// /// The data necessary to complete this operation is not yet available. /// /// E_PENDING public static readonly ResultDescriptor Pending = new(new Result(0x8000000A), GeneralModule, "E_PENDING", "Pending"); /// /// The data area passed to a system call is too small. /// /// E_NOT_SUFFICIENT_BUFFER public static readonly ResultDescriptor InsufficientBuffer = new(new Result(0x8007007A), GeneralModule, "E_NOT_SUFFICIENT_BUFFER", "Insufficient Buffer"); } }