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.

67 lines
2.3 KiB

  1. #ifndef _INC_NETSCAPE
  2. #define _INC_NETSCAPE
  3. typedef struct tagNSCPACCTINFO
  4. {
  5. DWORD_PTR dwCookie;
  6. char szDisplay[CCHMAX_ACCOUNT_NAME];
  7. } NSCPACCTINFO;
  8. // {39981126-C287-11D0-8D8C-00C04FD6202B}
  9. DEFINE_GUID(CLSID_CEnumNSCPACCTS, 0x39981126L, 0xC287, 0x11D0, 0x8D, 0x8C, 0x00, 0xC0, 0x4F, 0xD6, 0x20, 0x2B);
  10. class CEnumNSCPACCTS : public IEnumIMPACCOUNTS
  11. {
  12. private:
  13. ULONG m_cRef;
  14. int m_iInfo;
  15. UINT m_cInfo;
  16. NSCPACCTINFO *m_rgInfo;
  17. public:
  18. CEnumNSCPACCTS(void);
  19. ~CEnumNSCPACCTS(void);
  20. STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  21. STDMETHODIMP_(ULONG) AddRef(void);
  22. STDMETHODIMP_(ULONG) Release(void);
  23. HRESULT STDMETHODCALLTYPE Next(IMPACCOUNTINFO *pinfo);
  24. HRESULT STDMETHODCALLTYPE Reset(void);
  25. HRESULT Init(NSCPACCTINFO *pinfo, int cinfo);
  26. };
  27. // {39981127-C287-11D0-8D8C-00C04FD6202B}
  28. DEFINE_GUID(CLSID_CNscpAcctImport, 0x39981127L, 0xC287, 0x11D0, 0x8D, 0x8C, 0x00, 0xC0, 0x4F, 0xD6, 0x20, 0x2B);
  29. class CNscpAcctImport : public IAccountImport, public IAccountImport2
  30. {
  31. private:
  32. ULONG m_cRef;
  33. BOOL m_fIni;
  34. TCHAR m_szIni[MAX_PATH];
  35. UINT m_cInfo;
  36. NSCPACCTINFO *m_rgInfo;
  37. HRESULT InitAccounts(void);
  38. HRESULT IGetSettings(DWORD_PTR dwCookie, IImnAccount *pAcct, IMPCONNINFO *pInfo);
  39. public:
  40. CNscpAcctImport(void);
  41. ~CNscpAcctImport(void);
  42. STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  43. STDMETHODIMP_(ULONG) AddRef(void);
  44. STDMETHODIMP_(ULONG) Release(void);
  45. HRESULT STDMETHODCALLTYPE AutoDetect(DWORD *pcAcct, DWORD dwReserved);
  46. HRESULT STDMETHODCALLTYPE EnumerateAccounts(IEnumIMPACCOUNTS **ppEnum);
  47. HRESULT STDMETHODCALLTYPE GetSettings(DWORD_PTR dwCookie, IImnAccount *pAcct);
  48. HRESULT STDMETHODCALLTYPE InitializeImport(HWND hwnd, DWORD_PTR dwCookie);
  49. HRESULT STDMETHODCALLTYPE GetNewsGroup(INewsGroupImport *pImp, DWORD dwReserved);
  50. HRESULT STDMETHODCALLTYPE GetSettings2(DWORD_PTR dwCookie, IImnAccount *pAcct, IMPCONNINFO *pInfo);
  51. };
  52. #endif // _INC_NETSCAPE