ReactOS  0.4.15-dev-1207-g698a8e6
dxerr8.h
Go to the documentation of this file.
1 
2 #ifndef _DXERR8_H_
3 #define _DXERR8_H_
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
11 HRESULT WINAPI DXTraceA( const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox );
12 
15 HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox );
16 
17 #ifdef UNICODE
18  #define DXGetErrorString8 DXGetErrorString8W
19  #define DXGetErrorDescription8 DXGetErrorDescription8W
20  #define DXTrace DXTraceW
21 #else
22  #define DXGetErrorString8 DXGetErrorString8A
23  #define DXGetErrorDescription8 DXGetErrorDescription8A
24  #define DXTrace DXTraceA
25 #endif
26 
27 #if defined(DEBUG) || defined(_DEBUG)
28  #define DXTRACE_MSG(str) DXTrace( __FILE__, (DWORD)__LINE__, 0, str, FALSE )
29  #define DXTRACE_ERR(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, TRUE )
30  #define DXTRACE_ERR_NOMSGBOX(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, FALSE )
31 #else
32  #define DXTRACE_MSG(str) (0L)
33  #define DXTRACE_ERR(str,hr) (hr)
34  #define DXTRACE_ERR_NOMSGBOX(str,hr) (hr)
35 #endif
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif
HRESULT hr
Definition: shlfolder.c:183
HRESULT WINAPI DXTraceW(const char *strFile, DWORD dwLine, HRESULT hr, const WCHAR *strMsg, BOOL bPopMsgBox)
const WCHAR *WINAPI DXGetErrorDescription8W(HRESULT hr)
unsigned int BOOL
Definition: ntddk_ex.h:94
const char *WINAPI DXGetErrorDescription8A(HRESULT hr)
HRESULT WINAPI DXTraceA(const char *strFile, DWORD dwLine, HRESULT hr, const char *strMsg, BOOL bPopMsgBox)
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:79
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
const WCHAR *WINAPI DXGetErrorString8W(HRESULT hr)
const char *WINAPI DXGetErrorString8A(HRESULT hr)