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.

21 lines
807 B

  1. #ifndef MCSINC_HrMsg_h
  2. #define MCSINC_HrMsg_h
  3. #include <string>
  4. #include <tchar.h>
  5. #include <comdef.h>
  6. /******************************************************************
  7. * *
  8. * Header file for common error handling functions. *
  9. * *
  10. ******************************************************************/
  11. _bstr_t __stdcall HResultToText(HRESULT hr);
  12. _bstr_t __stdcall HResultToText2(HRESULT hr);
  13. _bstr_t FormatHRMsg(LPCTSTR pformatStr, HRESULT hr);
  14. _com_error GetError(HRESULT hr);
  15. void __cdecl AdmtThrowError(_com_error ce, LPCTSTR pszFormat = NULL, ...);
  16. void __cdecl AdmtThrowError(_com_error ce, HINSTANCE hInstance, UINT uId, ...);
  17. #endif // MCSINC_HrMsg_h