mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:23:10 +00:00
* Create a branch for USB experiments.
svn path=/branches/usb-experiments/; revision=72629
This commit is contained in:
parent
28d8ba0d3e
commit
0ee830d7a4
23049 changed files with 0 additions and 1313991 deletions
44
sdk/include/dxsdk/dxerr9.h
Normal file
44
sdk/include/dxsdk/dxerr9.h
Normal file
|
@ -0,0 +1,44 @@
|
|||
#ifndef _DXERR9_H_
|
||||
#define _DXERR9_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
const char* WINAPI DXGetErrorString9A(HRESULT hr);
|
||||
const char* WINAPI DXGetErrorDescription9A(HRESULT hr);
|
||||
HRESULT WINAPI DXTraceA( const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox );
|
||||
|
||||
const WCHAR* WINAPI DXGetErrorString9W(HRESULT hr);
|
||||
const WCHAR* WINAPI DXGetErrorDescription9W(HRESULT hr);
|
||||
HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox );
|
||||
|
||||
#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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue