dxerr8.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (C) 2004 Robert Reif
  3. *
  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.
  8. *
  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.
  13. *
  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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #ifndef __WINE_DXERR8_H
  19. #define __WINE_DXERR8_H
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif /* defined(__cplusplus) */
  23. const char* WINAPI DXGetErrorString8A(HRESULT hr);
  24. const WCHAR* WINAPI DXGetErrorString8W(HRESULT hr);
  25. #define DXGetErrorString8 WINELIB_NAME_AW(DXGetErrorString8)
  26. const char* WINAPI DXGetErrorDescription8A(HRESULT hr);
  27. const WCHAR* WINAPI DXGetErrorDescription8W(HRESULT hr);
  28. #define DXGetErrorDescription8 WINELIB_NAME_AW(DXGetErrorDescription8)
  29. HRESULT WINAPI DXTraceA(const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox);
  30. HRESULT WINAPI DXTraceW(const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox);
  31. #define DXTrace WINELIB_NAME_AW(DXTrace)
  32. #if defined(DEBUG) || defined(_DEBUG)
  33. #define DXTRACE_MSG(str) DXTrace(__FILE__, (DWORD)__LINE__, 0, str, FALSE)
  34. #define DXTRACE_ERR(str,hr) DXTrace(__FILE__, (DWORD)__LINE__, hr, str, TRUE)
  35. #define DXTRACE_ERR_NOMSGBOX(str,hr) DXTrace(__FILE__, (DWORD)__LINE__, hr, str, FALSE)
  36. #else
  37. #define DXTRACE_MSG(str) (0L)
  38. #define DXTRACE_ERR(str,hr) (hr)
  39. #define DXTRACE_ERR_NOMSGBOX(str,hr) (hr)
  40. #endif
  41. #ifdef __cplusplus
  42. } /* extern "C" */
  43. #endif /* defined(__cplusplus) */
  44. #endif /* __WINE_DXERR8_H */