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.

50 lines
1.5 KiB

  1. #ifndef _INC_NETSIMP_H
  2. #define _INC_NETSIMP_H
  3. // {0A522733-A626-11D0-8D60-00C04FD6202B}
  4. DEFINE_GUID(CLSID_CNetscapeImport, 0x0A522733L, 0xA626, 0x11D0, 0x8D, 0x60, 0x00, 0xC0, 0x4F, 0xD6, 0x20, 0x2B);
  5. #define hrExceptionalCase -1
  6. #define hrOSInfoNotFound 500
  7. #define hrWin32platform 501
  8. class CNetscapeEnumFOLDERS : public IEnumFOLDERS
  9. {
  10. private:
  11. ULONG m_cRef;
  12. EUDORANODE *m_plist;
  13. EUDORANODE *m_pnext;
  14. public:
  15. CNetscapeEnumFOLDERS(EUDORANODE *plist);
  16. ~CNetscapeEnumFOLDERS(void);
  17. STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  18. STDMETHODIMP_(ULONG) AddRef(void);
  19. STDMETHODIMP_(ULONG) Release(void);
  20. STDMETHODIMP Next(IMPORTFOLDER *pfldr);
  21. STDMETHODIMP Reset(void);
  22. };
  23. class CNetscapeImport : public IMailImport
  24. {
  25. private:
  26. ULONG m_cRef;
  27. EUDORANODE *m_plist;
  28. public:
  29. CNetscapeImport(void);
  30. ~CNetscapeImport(void);
  31. STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  32. STDMETHODIMP_(ULONG) AddRef(void);
  33. STDMETHODIMP_(ULONG) Release(void);
  34. STDMETHODIMP InitializeImport(HWND hwnd);
  35. STDMETHODIMP GetDirectory(char *szDir, UINT cch);
  36. STDMETHODIMP SetDirectory(char *szDir);
  37. STDMETHODIMP EnumerateFolders(DWORD_PTR dwCookie, IEnumFOLDERS **ppEnum);
  38. STDMETHODIMP ImportFolder(DWORD_PTR dwCookie, IFolderImport *pImport);
  39. };
  40. #endif // _INC_NETSIMP_H