Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dpvxerr.h
  6. * Content: Useful Error utility functions for sample apps
  7. *
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 10/07/99 rodtoll Created It
  12. * 12/07/99 rodtoll Bug #122628 Make error messages silent when running in silent mode
  13. * Added option to error display to have it be silent.
  14. *
  15. ***************************************************************************/
  16. #ifndef __DPVXERR_H
  17. #define __DPVXERR_H
  18. #include "dvoice.h"
  19. // Error Functions
  20. struct DPVDXLIB_ErrorInfo
  21. {
  22. DPVDXLIB_ErrorInfo( HRESULT hr, LPSTR name, LPSTR desc ):hrValue(hr), lpstrName(name), lpstrDescription(desc) {};
  23. HRESULT hrValue;
  24. const LPTSTR lpstrName;
  25. const LPTSTR lpstrDescription;
  26. };
  27. extern HRESULT DPVDX_DVERR2String( HRESULT hrError, DPVDXLIB_ErrorInfo *lpeiResult );
  28. extern HRESULT DPVDX_DPERR2String( HRESULT hrError, DPVDXLIB_ErrorInfo *lpeiResult );
  29. extern HRESULT DPVDX_DVERRDisplay( HRESULT hrError, LPTSTR lpstrCaption, BOOL fSilent );
  30. extern HRESULT DPVDX_DPERRDisplay( HRESULT hrError, LPTSTR lpstrCaption, BOOL fSilent );
  31. #endif