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.

49 lines
1.9 KiB

  1. // StoreInfo.h : Declaration of the CStoreInfo
  2. #ifndef __STOREINFO_H_
  3. #define __STOREINFO_H_
  4. #include "resource.h" // main symbols
  5. #include "extseq.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CStoreInfo
  8. class ATL_NO_VTABLE CStoreInfo :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CStoreInfo, &CLSID_StoreInfo>,
  11. public IDispatchImpl<IExtendAccountMigration, &IID_IExtendAccountMigration, &LIBID_UPDATEDBLib>
  12. {
  13. public:
  14. CStoreInfo()
  15. {
  16. m_sName = L"Update Database";
  17. m_sDesc = L"Extension that updates the migration information in the DB";
  18. m_Sequence = AREXT_EVEN_LATER_SEQUENCE_NUMBER;
  19. }
  20. DECLARE_REGISTRY_RESOURCEID(IDR_STOREINFO)
  21. DECLARE_PROTECT_FINAL_CONSTRUCT()
  22. BEGIN_COM_MAP(CStoreInfo)
  23. COM_INTERFACE_ENTRY(IExtendAccountMigration)
  24. COM_INTERFACE_ENTRY(IDispatch)
  25. END_COM_MAP()
  26. // IExtendAccountMigration
  27. public:
  28. STDMETHOD(ProcessUndo)(/*[in]*/ IUnknown * pSource, /*[in]*/ IUnknown * pTarget, /*[in]*/ IUnknown * pMainSettings, /*[in, out]*/ IUnknown ** pPropToSet, /*[in,out]*/ EAMAccountStats* pStats);
  29. STDMETHOD(PreProcessObject)(/*[in]*/ IUnknown * pSource, /*[in]*/ IUnknown * pTarget, /*[in]*/ IUnknown * pMainSettings, /*[in,out]*/ IUnknown ** ppPropsToSet, /*[in,out]*/ EAMAccountStats* pStats);
  30. STDMETHOD(ProcessObject)(/*[in]*/ IUnknown * pSource, /*[in]*/ IUnknown * pTarget, /*[in]*/ IUnknown * pMainSettings, /*[in,out]*/ IUnknown ** ppPropsToSet, /*[in,out]*/ EAMAccountStats* pStats);
  31. STDMETHOD(get_sDesc)(/*[out, retval]*/ BSTR *pVal);
  32. STDMETHOD(put_sDesc)(/*[in]*/ BSTR newVal);
  33. STDMETHOD(get_sName)(/*[out, retval]*/ BSTR *pVal);
  34. STDMETHOD(put_sName)(/*[in]*/ BSTR newVal);
  35. STDMETHOD(get_SequenceNumber)(/*[out, retval]*/ LONG * value) { (*value) = m_Sequence; return S_OK; }
  36. private:
  37. _bstr_t m_sDesc;
  38. _bstr_t m_sName;
  39. long m_Sequence;
  40. };
  41. #endif //__STOREINFO_H_