Go to the documentation of this file.
7 #include "../../core/windows/SDL_windows.h"
21 #define MAKE_HRESULT(sev,fac,code) \
22 ((HRESULT)(((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))))
26 #define S_OK (HRESULT)0x00000000L
30 #define SUCCEEDED(x) ((HRESULT)(x) >= 0)
33 #define FAILED(x) ((HRESULT)(x)<0)
37 #define E_FAIL (HRESULT)0x80000008L
40 #define E_NOINTERFACE (HRESULT)0x80004002L
43 #define E_OUTOFMEMORY (HRESULT)0x8007000EL
46 #define E_INVALIDARG (HRESULT)0x80070057L
49 #define E_NOTIMPL (HRESULT)0x80004001L
51 #ifndef REGDB_E_CLASSNOTREG
52 #define REGDB_E_CLASSNOTREG (HRESULT)0x80040154L
56 #ifndef SEVERITY_ERROR
57 #define SEVERITY_ERROR 1
61 #ifndef FACILITY_WIN32
62 #define FACILITY_WIN32 7
66 #define FIELD_OFFSET(type, field) ((LONG)&(((type *)0)->field))
72 #define DIRECTDRAW_VERSION 0x0700
73 #define DIRECTSOUND_VERSION 0x0800
74 #define DIRECTINPUT_VERSION 0x0500