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.

20 lines
865 B

  1. #pragma once
  2. #include <ComDef.h>
  3. //---------------------------------------------------------------------------
  4. // Error Methods
  5. //---------------------------------------------------------------------------
  6. void __cdecl ThrowError(_com_error ce, UINT uId, ...);
  7. void __cdecl ThrowError(_com_error ce, LPCTSTR pszFormat = NULL, ...);
  8. void __cdecl ThrowError(const CLSID& clsid, const IID& iid, _com_error ce, UINT uId, ...);
  9. void __cdecl ThrowError(const CLSID& clsid, const IID& iid, _com_error ce, LPCTSTR pszFormat = NULL, ...);
  10. HRESULT __cdecl SetError(_com_error ce, UINT uId, ...);
  11. HRESULT __cdecl SetError(_com_error ce, LPCTSTR pszFormat = NULL, ...);
  12. HRESULT __cdecl SetError(const CLSID& clsid, const IID& iid, _com_error ce, UINT uId, ...);
  13. HRESULT __cdecl SetError(const CLSID& clsid, const IID& iid, _com_error ce, LPCTSTR pszFormat = NULL, ...);