dxerr8.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #include <_mingw_unicode.h>
  2. /*
  3. * Copyright (C) 2004 Robert Reif
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  18. */
  19. #ifndef __WINE_DXERR8_H
  20. #define __WINE_DXERR8_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif /* defined(__cplusplus) */
  24. const char* WINAPI DXGetErrorString8A(HRESULT hr);
  25. const WCHAR* WINAPI DXGetErrorString8W(HRESULT hr);
  26. #define DXGetErrorString8 __MINGW_NAME_AW(DXGetErrorString8)
  27. const char* WINAPI DXGetErrorDescription8A(HRESULT hr);
  28. const WCHAR* WINAPI DXGetErrorDescription8W(HRESULT hr);
  29. #define DXGetErrorDescription8 __MINGW_NAME_AW(DXGetErrorDescription8)
  30. HRESULT WINAPI DXTraceA(const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, WINBOOL bPopMsgBox);
  31. HRESULT WINAPI DXTraceW(const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, WINBOOL bPopMsgBox);
  32. #define DXTrace __MINGW_NAME_AW(DXTrace)
  33. #if defined(DEBUG) || defined(_DEBUG)
  34. #define DXTRACE_MSG(str) DXTrace(__FILE__, (DWORD)__LINE__, 0, str, FALSE)
  35. #define DXTRACE_ERR(str,hr) DXTrace(__FILE__, (DWORD)__LINE__, hr, str, TRUE)
  36. #define DXTRACE_ERR_NOMSGBOX(str,hr) DXTrace(__FILE__, (DWORD)__LINE__, hr, str, FALSE)
  37. #else
  38. #define DXTRACE_MSG(str) __MSABI_LONG(0)
  39. #define DXTRACE_ERR(str,hr) (hr)
  40. #define DXTRACE_ERR_NOMSGBOX(str,hr) (hr)
  41. #endif
  42. #ifdef __cplusplus
  43. } /* extern "C" */
  44. #endif /* defined(__cplusplus) */
  45. #endif /* __WINE_DXERR8_H */