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.

46 lines
1.4 KiB

  1. // header file for handler specific items
  2. #ifndef _HANDER_IMPL_
  3. #define _HANDER_IMPL_
  4. // DEFINE A NEW CLSID FOR EACH HANDLER
  5. // {97484BA1-26C7-11d1-9A39-0020AFDA97B0}
  6. DEFINE_GUID(CLSID_OneStopHandler,0x97484ba2, 0x26c7, 0x11d1, 0x9a, 0x39, 0x0, 0x20, 0xaf, 0xda, 0x97, 0xb0);
  7. // declarations specific to briefcase
  8. #include "resource.h"
  9. DEFINE_GUID(CLSID_BriefCase,
  10. 0x85BBD920,0x42A0,0x1069,0xA2,0xE4,0x08,0x00,0x2B,0x30,0x30,0x9D);
  11. DEFINE_GUID(IID_IBriefcaseStg,
  12. 0x8BCE1FA1L, 0x0921, 0x101B, 0xB1, 0xFF, 0x00, 0xDD, 0x01, 0x0C, 0xCC, 0x48);
  13. DEFINE_GUID(IID_IBriefcaseStg2,
  14. 0x8BCE1FA1L, 0x1921, 0x101B, 0xB1, 0xFF, 0x00, 0xDD, 0x01, 0x0C, 0xCC, 0x48);
  15. // end declarations specific to briefcase
  16. class CBriefHandler : public COneStopHandler
  17. {
  18. private:
  19. public:
  20. STDMETHODIMP DestroyHandler();
  21. STDMETHODIMP Initialize(DWORD dwReserved,DWORD dwSyncFlags,
  22. DWORD cbCookie,const BYTE *lpCooke);
  23. STDMETHODIMP GetHandlerInfo(LPSYNCMGRHANDLERINFO *ppSyncMgrHandlerInfo);
  24. STDMETHODIMP PrepareForSync(ULONG cbNumItems,SYNCMGRITEMID *pItemIDs,
  25. HWND hwndParent,DWORD dwReserved);
  26. STDMETHODIMP Synchronize(HWND hwndParent);
  27. STDMETHODIMP SetItemStatus(REFSYNCMGRITEMID ItemID,DWORD dwSyncMgrStatus);
  28. STDMETHODIMP ShowError(HWND hWndParent,REFSYNCMGRERRORID ErrorID);
  29. STDMETHODIMP ShowProperties(HWND hWndParent,REFSYNCMGRITEMID ItemID);
  30. };
  31. COneStopHandler* CreateHandlerObject();
  32. #endif // #define _HANDER_IMPL_