[]
        
(Showing Draft Content)

C1.Util.DX.HResult

HResult Struct

Result structure for COM methods.

Implements
Namespace: C1.Util.DX
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public struct HResult : IEquatable<HResult>

Constructors

Name Description
HResult(int)

Initializes a new instance of the HResult struct.

HResult(uint)

Initializes a new instance of the HResult struct.

Fields

Name Description
Abort

Result code Abort.

AccessDenied

Result code AccessDenied.

Fail

Result code Fail.

False

Result code False.

Handle

Result code Handle.

InsufficientBuffer

The data area passed to a system call is too small.

InvalidArg

Result code invalid argument.

InvalidPointer

Result code Invalid pointer.

NoInterface

Result code no interface.

NotImplemented

Result code not implemented.

Ok

Result code Ok.

OutOfMemory

Result code out of memory.

UnexpectedFailure

Unexpected failure.

WaitAbandoned

Result of a wait abandonned.

WaitTimeout

Result of a wait timeout.

Properties

Name Description
Code

Gets the HRESULT error code.

Failure

Gets a value indicating whether this HResult is failure.

Success

Gets a value indicating whether this HResult is success.

Methods

Name Description
CheckError()

Checks the error.

Equals(HResult)

Equalses the specified other.

Equals(object)

Determines whether the specified object is equal to this instance.

GetHashCode()

Returns a hash code for this instance.

GetResultFromException(Exception)

Gets a HResult from an Exception.

GetResultFromWin32Error(int)

Gets the result from win32 error.

ToString()

Returns a string that represents this instance.

Operators

Name Description
operator ==(HResult, HResult)

Implements the operator ==.

explicit operator int(HResult)

Performs an implicit conversion from HResult to int.

explicit operator uint(HResult)

Performs an implicit conversion from HResult to uint.

implicit operator HResult(int)

Performs an implicit conversion from int to HResult.

implicit operator HResult(uint)

Performs an implicit conversion from uint to HResult.

operator !=(HResult, HResult)

Implements the operator !=.