Leaked source code of windows server 2003
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
612 B

  1. /////////////////////////////////////////////////////////////////////////////////////
  2. // errsupp.h : error reporting for implementation helper templates
  3. // Copyright (c) Microsoft Corporation 1999-2000.
  4. #ifndef ERRSUPP_H
  5. #define ERRSUPP_H
  6. #include <winbase.h>
  7. #pragma once
  8. namespace BDATuningModel {
  9. inline HRESULT WINAPI ImplReportError(const CLSID& clsid, UINT nID, const IID& iid,
  10. HRESULT hRes, HINSTANCE hInst = _Module.GetResourceInstance(), ...)
  11. {
  12. va_list arguments;
  13. va_start(arguments, hInst);
  14. return AtlSetErrorInfo(clsid, nID, iid, hRes, hInst, &arguments);
  15. }
  16. };
  17. #endif