wgl: Fix a major ATI regression.
[wine.git] / include / dxerr9.h
blob2d8f176759e3b8f82593663ed41ca52e0f6e3799
1 /*
2 * Copyright (C) 2004 Robert Reif
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_DXERR9_H
20 #define __WINE_DXERR9_H
22 #ifdef __cplusplus
23 extern "C" {
24 #endif /* defined(__cplusplus) */
26 const char* WINAPI DXGetErrorString9A(HRESULT hr);
27 const WCHAR* WINAPI DXGetErrorString9W(HRESULT hr);
28 #define DXGetErrorString9 WINELIB_NAME_AW(DXGetErrorString9)
30 const char* WINAPI DXGetErrorDescription9A(HRESULT hr);
31 const WCHAR* WINAPI DXGetErrorDescription9W(HRESULT hr);
32 #define DXGetErrorDescription9 WINELIB_NAME_AW(DXGetErrorDescription9)
34 HRESULT WINAPI DXTraceA(const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox);
35 HRESULT WINAPI DXTraceW(const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox);
36 #define DXTrace WINELIB_NAME_AW(DXTrace)
38 #if defined(DEBUG) || defined(_DEBUG)
39 #define DXTRACE_MSG(str) DXTrace(__FILE__, (DWORD)__LINE__, 0, str, FALSE)
40 #define DXTRACE_ERR(str,hr) DXTrace(__FILE__, (DWORD)__LINE__, hr, str, TRUE)
41 #define DXTRACE_ERR_NOMSGBOX(str,hr) DXTrace(__FILE__, (DWORD)__LINE__, hr, str, FALSE)
42 #else
43 #define DXTRACE_MSG(str) (0L)
44 #define DXTRACE_ERR(str,hr) (hr)
45 #define DXTRACE_ERR_NOMSGBOX(str,hr) (hr)
46 #endif
48 #ifdef __cplusplus
49 } /* extern "C" */
50 #endif /* defined(__cplusplus) */
52 #endif /* __WINE_DXERR9_H */