diff options
author | Luke Dunstan <infidel@users.sourceforge.net> | 2004-03-27 02:25:37 +0000 |
---|---|---|
committer | Luke Dunstan <infidel@users.sourceforge.net> | 2004-03-27 02:25:37 +0000 |
commit | fec932591db5b95ba8bff638739e9ae112afd2d0 (patch) | |
tree | e5872c79fc8617b884328d3e6fd9ba8c59130576 /winsup/w32api/include/directx/dxerr9.h | |
parent | deb7bf284a299c865f951c428f195bbdd2052b8a (diff) | |
download | cygnal-fec932591db5b95ba8bff638739e9ae112afd2d0.tar.gz cygnal-fec932591db5b95ba8bff638739e9ae112afd2d0.tar.bz2 cygnal-fec932591db5b95ba8bff638739e9ae112afd2d0.zip |
2004-03-27 Filip Navara <xnavara@volny.cz>
* include/directx: New subdir.
* lib/directx: Ditto.
* include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h,
dxerr9.h): New files.
* lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def,
d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def,
dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c,
dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def,
dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def,
dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c,
dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def,
strmiids.c, test.c): Ditto.
* lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c,
dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
Diffstat (limited to 'winsup/w32api/include/directx/dxerr9.h')
-rw-r--r-- | winsup/w32api/include/directx/dxerr9.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/winsup/w32api/include/directx/dxerr9.h b/winsup/w32api/include/directx/dxerr9.h new file mode 100644 index 000000000..36605c92c --- /dev/null +++ b/winsup/w32api/include/directx/dxerr9.h @@ -0,0 +1,53 @@ +/* + + dxerr9.h - Header file for the DirectX 9 Error API + + Written by Filip Navara <xnavara@volny.cz> + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +*/ + +#ifndef _DXERR9_H +#define _DXERR9_H +#if __GNUC__ >=3 +#pragma GCC system_header +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +const char *WINAPI DXGetErrorString9A(HRESULT); +const WCHAR *WINAPI DXGetErrorString9W(HRESULT); +const char* WINAPI DXGetErrorDescription9A(HRESULT); +const WCHAR* WINAPI DXGetErrorDescription9W(HRESULT); +HRESULT WINAPI DXTraceA(const char*,DWORD,HRESULT,const char*,BOOL); +HRESULT WINAPI DXTraceW(const char*,DWORD,HRESULT,const WCHAR*,BOOL); + +#ifdef UNICODE +#define DXGetErrorString9 DXGetErrorString9W +#define DXGetErrorDescription9 DXGetErrorDescription9W +#define DXTrace DXTraceW +#else +#define DXGetErrorString9 DXGetErrorString9A +#define DXGetErrorDescription9 DXGetErrorDescription9A +#define DXTrace DXTraceA +#endif + +#if defined(DEBUG) || defined(_DEBUG) +#define DXTRACE_MSG(str) DXTrace(__FILE__,(DWORD)__LINE__,0,str,FALSE) +#define DXTRACE_ERR(str,hr) DXTrace(__FILE__,(DWORD)__LINE__,hr,str,FALSE) +#define DXTRACE_ERR_MSGBOX(str,hr) DXTrace(__FILE__,(DWORD)__LINE__,hr,str,TRUE) +#else +#define DXTRACE_MSG(str) (0L) +#define DXTRACE_ERR(str,hr) (hr) +#define DXTRACE_ERR_MSGBOX(str,hr) (hr) +#endif + +#ifdef __cplusplus +} +#endif +#endif |