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.

38 lines
986 B

  1. /*****************************************************************************
  2. * cookies.h
  3. *****************************************************************************/
  4. #ifndef _COOKIES_H
  5. #define _COOKIES_H
  6. class CCookieList;
  7. CCookieList * CCookieList_Create(void);
  8. /*****************************************************************************
  9. *
  10. * CCookieList
  11. *
  12. *****************************************************************************/
  13. class CCookieList
  14. {
  15. public:
  16. CCookieList();
  17. ~CCookieList(void);
  18. // Public Member Functions
  19. DWORD GetCookie(LPCTSTR pszString);
  20. HRESULT GetString(DWORD dwCookie, LPTSTR pszString, DWORD cchSize);
  21. friend CCookieList * CCookieList_Create(void) { return new CCookieList(); };
  22. protected:
  23. // Private Member Variables
  24. HDPA m_hdpa;
  25. // Private Member Variables
  26. DWORD _Find(LPCTSTR pszString);
  27. static int _FreeStringEnum(LPVOID pString, LPVOID pData);
  28. };
  29. #endif // _COOKIES_H