SDL_directx.h File Reference
`#include "../../SDL_internal.h"`
`#include "SDL_windows.h"`
`#include <mmsystem.h>`
Include dependency graph for SDL_directx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures

struct | DIDEVICEINSTANCE

## Macros

#define | WIN32
#define | FAR
#define | MAKE_HRESULT(sev, fac, code) ((HRESULT)(((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))))
#define | S_OK (HRESULT)0x00000000L
#define | SUCCEEDED(x) ((HRESULT)(x) >= 0)
#define | FAILED(x) ((HRESULT)(x)<0)
#define | E_FAIL (HRESULT)0x80000008L
#define | E_NOINTERFACE (HRESULT)0x80004002L
#define | E_OUTOFMEMORY (HRESULT)0x8007000EL
#define | E_INVALIDARG (HRESULT)0x80070057L
#define | E_NOTIMPL (HRESULT)0x80004001L
#define | REGDB_E_CLASSNOTREG (HRESULT)0x80040154L
#define | SEVERITY_ERROR 1
#define | FACILITY_WIN32 7
#define | FIELD_OFFSET(type, field) ((LONG)&(((type *)0)->field))
#define | DIRECTDRAW_VERSION 0x0700
#define | DIRECTSOUND_VERSION 0x0800
#define | DIRECTINPUT_VERSION 0x0800 /* Need version 7 for force feedback. Need version 8 so IDirectInput8_EnumDevices doesn't leak like a sieve... */

## Macro Definition Documentation

## DIRECTDRAW_VERSION

#define DIRECTDRAW_VERSION 0x0700

Definition at line 93 of file SDL_directx.h.

## DIRECTINPUT_VERSION

#define DIRECTINPUT_VERSION 0x0800 /* Need version 7 for force feedback. Need version 8 so IDirectInput8_EnumDevices doesn't leak like a sieve... */

Definition at line 95 of file SDL_directx.h.

## DIRECTSOUND_VERSION

#define DIRECTSOUND_VERSION 0x0800

Definition at line 94 of file SDL_directx.h.

## E_FAIL

#define E_FAIL (HRESULT)0x80000008L

Definition at line 58 of file SDL_directx.h.

## E_INVALIDARG

#define E_INVALIDARG (HRESULT)0x80070057L

Definition at line 67 of file SDL_directx.h.

## E_NOINTERFACE

#define E_NOINTERFACE (HRESULT)0x80004002L

Definition at line 61 of file SDL_directx.h.

## E_NOTIMPL

#define E_NOTIMPL (HRESULT)0x80004001L

Definition at line 70 of file SDL_directx.h.

## E_OUTOFMEMORY

#define E_OUTOFMEMORY (HRESULT)0x8007000EL

Definition at line 64 of file SDL_directx.h.

## FACILITY_WIN32

#define FACILITY_WIN32 7

Definition at line 83 of file SDL_directx.h.

## FAILED

#define FAILED | ( |  | x | ) | ((HRESULT)(x)<0)

Definition at line 54 of file SDL_directx.h.

Referenced by SDL_WinRTRunApp().

## FAR

#define FAR

Definition at line 37 of file SDL_directx.h.

## FIELD_OFFSET

#define FIELD_OFFSET | ( |  | type,
|  |  | field
| ) |  | ((LONG)&(((type *)0)->field))

Definition at line 87 of file SDL_directx.h.

## MAKE_HRESULT

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

Definition at line 42 of file SDL_directx.h.

## REGDB_E_CLASSNOTREG

#define REGDB_E_CLASSNOTREG (HRESULT)0x80040154L

Definition at line 73 of file SDL_directx.h.

## S_OK

#define S_OK (HRESULT)0x00000000L

Definition at line 47 of file SDL_directx.h.

## SEVERITY_ERROR

#define SEVERITY_ERROR 1

Definition at line 78 of file SDL_directx.h.

## SUCCEEDED

#define SUCCEEDED | ( |  | x | ) | ((HRESULT)(x) >= 0)

Definition at line 51 of file SDL_directx.h.

## WIN32

#define WIN32

Definition at line 31 of file SDL_directx.h.