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.

40 lines
945 B

  1. // LastError.h : Declaration of the CLastError
  2. #ifndef __LASTERROR_H_
  3. #define __LASTERROR_H_
  4. #include "resource.h" // main symbols
  5. #include "ioblockdefs.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CLastError
  8. class ATL_NO_VTABLE CLastError :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CLastError, &CLSID_LastError>,
  11. public IDispatchImpl<ILastError, &IID_ILastError, &LIBID_WIAFBLib>,
  12. public IObjectSafetyImpl<CLastError, INTERFACESAFE_FOR_UNTRUSTED_CALLER>
  13. {
  14. public:
  15. SCANSETTINGS *m_pScannerSettings;
  16. HRESULT m_hr;
  17. CLastError()
  18. {
  19. m_hr = S_OK;
  20. }
  21. DECLARE_REGISTRY_RESOURCEID(IDR_LASTERROR)
  22. DECLARE_PROTECT_FINAL_CONSTRUCT()
  23. BEGIN_COM_MAP(CLastError)
  24. COM_INTERFACE_ENTRY(ILastError)
  25. COM_INTERFACE_ENTRY(IDispatch)
  26. END_COM_MAP()
  27. // ILastError
  28. public:
  29. };
  30. #endif //__LASTERROR_H_