Table of Contents

Class HResult

Namespace
NAudio.Utils
Assembly
NAudio.Core.dll

HResult

public static class HResult
Inheritance
HResult
Inherited Members

Fields

E_INVALIDARG

E_INVALIDARG (from winerror.h)

public const int E_INVALIDARG = -2147483645

Field Value

int

S_FALSE

S_FALSE

public const int S_FALSE = 1

Field Value

int

S_OK

S_OK

public const int S_OK = 0

Field Value

int

Methods

GetHResult(COMException)

Helper to deal with the fact that in Win Store apps, the HResult property name has changed

public static int GetHResult(this COMException exception)

Parameters

exception COMException

COM Exception

Returns

int

The HResult

MAKE_HRESULT(int, int, int)

MAKE_HRESULT macro

public static int MAKE_HRESULT(int sev, int fac, int code)

Parameters

sev int
fac int
code int

Returns

int