Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
hresult.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SEVERITY_SUCCESS   0
 
#define SEVERITY_ERROR   1
 
#define SUCCEEDED(hr)   (((HRESULT)(hr)) >= 0)
 
#define FAILED(hr)   (((HRESULT)(hr)) < 0)
 
#define SYSCALL_SUCCEEDED(x)   (x!=-1)
 
#define SYSCALL_FAILED(x)   (x == -1)
 
#define HRESULT_CODE(hr)   ((hr) & 0xFFFF)
 
#define HRESULT_FACILITY(hr)   (((hr) >> 16) & 0x1fff)
 
#define HRESULT_SEVERITY(hr)   (((hr) >> 31) & 0x1)
 
#define MAKE_HRESULT(sev, fac, code)   ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
 
#define FACILITY_ERRNO   0x800
 
#define ERRNO_TO_HRESULT(err)   MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ERRNO, err)
 
#define ERRNOHR   ERRNO_TO_HRESULT(ERRNO_TO_HRESULT(errno))
 
#define S_OK   ((HRESULT)0)
 
#define S_FALSE   ((HRESULT)1L)
 
#define E_UNEXPECTED   ((HRESULT)(0x8000FFFFL))
 
#define E_NOTIMPL   ((HRESULT)(0x80004001L))
 
#define E_OUTOFMEMORY   ((HRESULT)(0x8007000EL))
 
#define E_INVALIDARG   ((HRESULT)(0x80070057L))
 
#define E_NOINTERFACE   ((HRESULT)(0x80004002L))
 
#define E_POINTER   ((HRESULT)(0x80004003L))
 
#define E_HANDLE   ((HRESULT)(0x80070006L))
 
#define E_ABORT   ((HRESULT)(0x80004004L))
 
#define E_FAIL   ((HRESULT)(0x80004005L))
 
#define E_ACCESSDENIED   ((HRESULT)(0x80070005L))
 
#define E_PENDING   ((HRESULT)(0x8000000AL))
 

Typedefs

typedef int32_t HRESULT
 

Macro Definition Documentation

#define E_ABORT   ((HRESULT)(0x80004004L))

Definition at line 55 of file hresult.h.

#define E_ACCESSDENIED   ((HRESULT)(0x80070005L))

Definition at line 57 of file hresult.h.

#define E_FAIL   ((HRESULT)(0x80004005L))

Definition at line 56 of file hresult.h.

#define E_HANDLE   ((HRESULT)(0x80070006L))

Definition at line 54 of file hresult.h.

#define E_INVALIDARG   ((HRESULT)(0x80070057L))

Definition at line 51 of file hresult.h.

#define E_NOINTERFACE   ((HRESULT)(0x80004002L))

Definition at line 52 of file hresult.h.

#define E_NOTIMPL   ((HRESULT)(0x80004001L))

Definition at line 49 of file hresult.h.

#define E_OUTOFMEMORY   ((HRESULT)(0x8007000EL))

Definition at line 50 of file hresult.h.

#define E_PENDING   ((HRESULT)(0x8000000AL))

Definition at line 58 of file hresult.h.

#define E_POINTER   ((HRESULT)(0x80004003L))

Definition at line 53 of file hresult.h.

#define E_UNEXPECTED   ((HRESULT)(0x8000FFFFL))

Definition at line 48 of file hresult.h.

#define ERRNO_TO_HRESULT (   err)    MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ERRNO, err)

Definition at line 41 of file hresult.h.

#define ERRNOHR   ERRNO_TO_HRESULT(ERRNO_TO_HRESULT(errno))

Definition at line 42 of file hresult.h.

#define FACILITY_ERRNO   0x800

Definition at line 40 of file hresult.h.

#define FAILED (   hr)    (((HRESULT)(hr)) < 0)

Definition at line 29 of file hresult.h.

#define HRESULT_CODE (   hr)    ((hr) & 0xFFFF)

Definition at line 34 of file hresult.h.

#define HRESULT_FACILITY (   hr)    (((hr) >> 16) & 0x1fff)

Definition at line 35 of file hresult.h.

#define HRESULT_SEVERITY (   hr)    (((hr) >> 31) & 0x1)

Definition at line 36 of file hresult.h.

#define MAKE_HRESULT (   sev,
  fac,
  code 
)    ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )

Definition at line 37 of file hresult.h.

#define S_FALSE   ((HRESULT)1L)

Definition at line 47 of file hresult.h.

#define S_OK   ((HRESULT)0)

Definition at line 46 of file hresult.h.

#define SEVERITY_ERROR   1

Definition at line 25 of file hresult.h.

#define SEVERITY_SUCCESS   0

Definition at line 24 of file hresult.h.

#define SUCCEEDED (   hr)    (((HRESULT)(hr)) >= 0)

Definition at line 28 of file hresult.h.

#define SYSCALL_FAILED (   x)    (x == -1)

Definition at line 32 of file hresult.h.

#define SYSCALL_SUCCEEDED (   x)    (x!=-1)

Definition at line 31 of file hresult.h.

Typedef Documentation

typedef int32_t HRESULT

Definition at line 22 of file hresult.h.