FS2_Open
Open source remastering of the Freespace 2 engine
sw_error.hpp File Reference
#include <winerror.h>
#include <windows.h>
#include <mmsystem.h>

Go to the source code of this file.

Macros

#define MAKE_FF_SCODE(sev, fac, code)   ((SCODE) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
 
#define MAKE_FF_E(err)   (MAKE_FF_SCODE( 1, FACILITY_ITF, err ))
 
#define MAKE_FF_S(warn)   (MAKE_FF_SCODE( 0, FACILITY_ITF, warn ))
 
#define DINPUT_DRIVER_ERR_BASE   0x500
 
#define SUCCESS   0x00
 
#define SFERR_INVALID_OBJECT   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 1)
 
#define SFERR_INVALID_PARAM   DIERR_INVALIDPARAM
 
#define SFERR_NO_SUPPORT   DIERR_UNSUPPORTED
 
#define SFERR_INVALID_DEVICE   DIERR_DEVICENOTREG
 
#define SFERR_FFDEVICE_MEMORY   DIERR_DEVICEFULL
 
#define SFERR_END_OF_LIST   MAKE_FF_S(DINPUT_DRIVER_ERR_BASE + 6)
 
#define SFERR_DEVICE_NACK   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 7)
 
#define SFERR_INVALID_STRUCT_SIZE   DIERR_INVALIDPARAM
 
#define SFERR_EFFECT_NOT_IN_DEVICE   DIERR_NOTDOWNLOADED
 
#define SFERR_RAW_OUT_DATAEVENT_CREATION   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 10)
 
#define SFERR_RAW_OUT_THREAD_CREATION   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 11)
 
#define SFERR_EFFECT_STATUS_BUSY   DIERR_EFFECTPLAYING
 
#define SFERR_OUT_OF_FF_MEMORY   DIERR_OUTOFMEMORY
 
#define SFERR_SYSTEM_INIT   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 14)
 
#define SFERR_DRIVER_ERROR   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 15)
 
#define SFERR_NON_FF_DEVICE   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 16)
 
#define SFERR_INVALID_HAL_OBJECT   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 17)
 
#define SFERR_INVALID_MEMBER_VALUE   DIERR_INVALIDPARAM
 
#define VFX_ERR_BASE   DINPUT_DRIVER_ERR_BASE + 100
 
#define VFX_ERR_FILE_NOT_FOUND   HRESULT_FROM_WIN32(MMIOERR_FILENOTFOUND)
 
#define VFX_ERR_FILE_OUT_OF_MEMORY   DIERR_OUTOFMEMORY
 
#define VFX_ERR_FILE_CANNOT_OPEN   HRESULT_FROM_WIN32(MMIOERR_CANNOTOPEN)
 
#define VFX_ERR_FILE_CANNOT_CLOSE   HRESULT_FROM_WIN32(MMIOERR_CANNOTCLOSE)
 
#define VFX_ERR_FILE_CANNOT_READ   HRESULT_FROM_WIN32(MMIOERR_CANNOTREAD)
 
#define VFX_ERR_FILE_CANNOT_WRITE   HRESULT_FROM_WIN32(MMIOERR_CANNOTWRITE)
 
#define VFX_ERR_FILE_CANNOT_SEEK   HRESULT_FROM_WIN32(MMIOERR_CANNOTSEEK)
 
#define VFX_ERR_FILE_UNKNOWN_ERROR   MAKE_FF_E(VFX_ERR_BASE + 8)
 
#define VFX_ERR_FILE_BAD_FORMAT   MAKE_FF_E(VFX_ERR_BASE + 9)
 
#define VFX_ERR_FILE_ACCESS_DENIED   HRESULT_FROM_WIN32(MMIOERR_ACCESSDENIED)
 
#define VFX_ERR_FILE_SHARING_VIOLATION   HRESULT_FROM_WIN32(MMIOERR_SHARINGVIOLATION)
 
#define VFX_ERR_FILE_NETWORK_ERROR   HRESULT_FROM_WIN32(MMIOERR_NETWORKERROR)
 
#define VFX_ERR_FILE_TOO_MANY_OPEN_FILES   HRESULT_FROM_WIN32(MMIOERR_TOOMANYOPENFILES)
 
#define VFX_ERR_FILE_INVALID   HRESULT_FROM_WIN32(MMIOERR_INVALIDFILE)
 
#define VFX_ERR_FILE_END_OF_FILE   MAKE_FF_E(VFX_ERR_BASE + 15)
 
#define SWDEV_ERR_BASE   DINPUT_DRIVER_ERR_BASE + 200
 
#define SWDEV_ERR_INVALID_ID   MAKE_FF_E(SWDEV_ERR_BASE + 1)
 
#define SWDEV_ERR_INVALID_PARAM   MAKE_FF_E(SWDEV_ERR_BASE + 2)
 
#define SWDEV_ERR_CHECKSUM   MAKE_FF_E(SWDEV_ERR_BASE + 3)
 
#define SWDEV_ERR_TYPE_FULL   MAKE_FF_E(SWDEV_ERR_BASE + 4)
 
#define SWDEV_ERR_UNKNOWN_CMD   MAKE_FF_E(SWDEV_ERR_BASE + 5)
 
#define SWDEV_ERR_PLAYLIST_FULL   MAKE_FF_E(SWDEV_ERR_BASE + 6)
 
#define SWDEV_ERR_PROCESSLIST_FULL   MAKE_FF_E(SWDEV_ERR_BASE + 7)
 

Macro Definition Documentation

#define DINPUT_DRIVER_ERR_BASE   0x500

Definition at line 90 of file sw_error.hpp.

#define MAKE_FF_E (   err)    (MAKE_FF_SCODE( 1, FACILITY_ITF, err ))

Definition at line 87 of file sw_error.hpp.

#define MAKE_FF_S (   warn)    (MAKE_FF_SCODE( 0, FACILITY_ITF, warn ))

Definition at line 88 of file sw_error.hpp.

#define MAKE_FF_SCODE (   sev,
  fac,
  code 
)    ((SCODE) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )

Definition at line 84 of file sw_error.hpp.

#define SFERR_DEVICE_NACK   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 7)

Definition at line 99 of file sw_error.hpp.

#define SFERR_DRIVER_ERROR   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 15)

Definition at line 109 of file sw_error.hpp.

#define SFERR_EFFECT_NOT_IN_DEVICE   DIERR_NOTDOWNLOADED

Definition at line 101 of file sw_error.hpp.

#define SFERR_EFFECT_STATUS_BUSY   DIERR_EFFECTPLAYING

Definition at line 105 of file sw_error.hpp.

#define SFERR_END_OF_LIST   MAKE_FF_S(DINPUT_DRIVER_ERR_BASE + 6)

Definition at line 98 of file sw_error.hpp.

#define SFERR_FFDEVICE_MEMORY   DIERR_DEVICEFULL

Definition at line 97 of file sw_error.hpp.

#define SFERR_INVALID_DEVICE   DIERR_DEVICENOTREG

Definition at line 96 of file sw_error.hpp.

#define SFERR_INVALID_HAL_OBJECT   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 17)

Definition at line 111 of file sw_error.hpp.

#define SFERR_INVALID_MEMBER_VALUE   DIERR_INVALIDPARAM

Definition at line 112 of file sw_error.hpp.

#define SFERR_INVALID_OBJECT   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 1)

Definition at line 93 of file sw_error.hpp.

#define SFERR_INVALID_PARAM   DIERR_INVALIDPARAM

Definition at line 94 of file sw_error.hpp.

#define SFERR_INVALID_STRUCT_SIZE   DIERR_INVALIDPARAM

Definition at line 100 of file sw_error.hpp.

#define SFERR_NO_SUPPORT   DIERR_UNSUPPORTED

Definition at line 95 of file sw_error.hpp.

#define SFERR_NON_FF_DEVICE   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 16)

Definition at line 110 of file sw_error.hpp.

#define SFERR_OUT_OF_FF_MEMORY   DIERR_OUTOFMEMORY

Definition at line 106 of file sw_error.hpp.

#define SFERR_RAW_OUT_DATAEVENT_CREATION   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 10)

Definition at line 103 of file sw_error.hpp.

#define SFERR_RAW_OUT_THREAD_CREATION   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 11)

Definition at line 104 of file sw_error.hpp.

#define SFERR_SYSTEM_INIT   MAKE_FF_E(DINPUT_DRIVER_ERR_BASE + 14)

Definition at line 108 of file sw_error.hpp.

#define SUCCESS   0x00

Definition at line 92 of file sw_error.hpp.

#define SWDEV_ERR_BASE   DINPUT_DRIVER_ERR_BASE + 200

Definition at line 133 of file sw_error.hpp.

#define SWDEV_ERR_CHECKSUM   MAKE_FF_E(SWDEV_ERR_BASE + 3)

Definition at line 136 of file sw_error.hpp.

#define SWDEV_ERR_INVALID_ID   MAKE_FF_E(SWDEV_ERR_BASE + 1)

Definition at line 134 of file sw_error.hpp.

#define SWDEV_ERR_INVALID_PARAM   MAKE_FF_E(SWDEV_ERR_BASE + 2)

Definition at line 135 of file sw_error.hpp.

#define SWDEV_ERR_PLAYLIST_FULL   MAKE_FF_E(SWDEV_ERR_BASE + 6)

Definition at line 139 of file sw_error.hpp.

#define SWDEV_ERR_PROCESSLIST_FULL   MAKE_FF_E(SWDEV_ERR_BASE + 7)

Definition at line 140 of file sw_error.hpp.

#define SWDEV_ERR_TYPE_FULL   MAKE_FF_E(SWDEV_ERR_BASE + 4)

Definition at line 137 of file sw_error.hpp.

#define SWDEV_ERR_UNKNOWN_CMD   MAKE_FF_E(SWDEV_ERR_BASE + 5)

Definition at line 138 of file sw_error.hpp.

#define VFX_ERR_BASE   DINPUT_DRIVER_ERR_BASE + 100

Definition at line 115 of file sw_error.hpp.

#define VFX_ERR_FILE_ACCESS_DENIED   HRESULT_FROM_WIN32(MMIOERR_ACCESSDENIED)

Definition at line 125 of file sw_error.hpp.

#define VFX_ERR_FILE_BAD_FORMAT   MAKE_FF_E(VFX_ERR_BASE + 9)

Definition at line 124 of file sw_error.hpp.

#define VFX_ERR_FILE_CANNOT_CLOSE   HRESULT_FROM_WIN32(MMIOERR_CANNOTCLOSE)

Definition at line 119 of file sw_error.hpp.

#define VFX_ERR_FILE_CANNOT_OPEN   HRESULT_FROM_WIN32(MMIOERR_CANNOTOPEN)

Definition at line 118 of file sw_error.hpp.

#define VFX_ERR_FILE_CANNOT_READ   HRESULT_FROM_WIN32(MMIOERR_CANNOTREAD)

Definition at line 120 of file sw_error.hpp.

#define VFX_ERR_FILE_CANNOT_SEEK   HRESULT_FROM_WIN32(MMIOERR_CANNOTSEEK)

Definition at line 122 of file sw_error.hpp.

#define VFX_ERR_FILE_CANNOT_WRITE   HRESULT_FROM_WIN32(MMIOERR_CANNOTWRITE)

Definition at line 121 of file sw_error.hpp.

#define VFX_ERR_FILE_END_OF_FILE   MAKE_FF_E(VFX_ERR_BASE + 15)

Definition at line 130 of file sw_error.hpp.

#define VFX_ERR_FILE_INVALID   HRESULT_FROM_WIN32(MMIOERR_INVALIDFILE)

Definition at line 129 of file sw_error.hpp.

#define VFX_ERR_FILE_NETWORK_ERROR   HRESULT_FROM_WIN32(MMIOERR_NETWORKERROR)

Definition at line 127 of file sw_error.hpp.

#define VFX_ERR_FILE_NOT_FOUND   HRESULT_FROM_WIN32(MMIOERR_FILENOTFOUND)

Definition at line 116 of file sw_error.hpp.

#define VFX_ERR_FILE_OUT_OF_MEMORY   DIERR_OUTOFMEMORY

Definition at line 117 of file sw_error.hpp.

#define VFX_ERR_FILE_SHARING_VIOLATION   HRESULT_FROM_WIN32(MMIOERR_SHARINGVIOLATION)

Definition at line 126 of file sw_error.hpp.

#define VFX_ERR_FILE_TOO_MANY_OPEN_FILES   HRESULT_FROM_WIN32(MMIOERR_TOOMANYOPENFILES)

Definition at line 128 of file sw_error.hpp.

#define VFX_ERR_FILE_UNKNOWN_ERROR   MAKE_FF_E(VFX_ERR_BASE + 8)

Definition at line 123 of file sw_error.hpp.