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.

63 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name :
  4. linklkup.h
  5. Abstract:
  6. Link look up table class definitions. The is a MFC CMap
  7. constains the previos visited web link. This is used
  8. as a look up table for visited link.
  9. Author:
  10. Michael Cheuk (mcheuk) 22-Nov-1996
  11. Project:
  12. Link Checker
  13. Revision History:
  14. --*/
  15. #ifndef _LINKLKUP_H_
  16. #define _LINKLKUP_H_
  17. #include "link.h"
  18. // Lookup table item
  19. typedef struct
  20. {
  21. CLink::LinkState LinkState; // link state
  22. UINT nStatusCode; // http status code or wininet error code
  23. }LinkLookUpItem_t;
  24. //---------------------------------------------------------------------------
  25. // Link look up table. The is a MFC CMap constains the previous visited web
  26. // link. This is used as a look up table for visited link.
  27. //
  28. class CLinkLookUpTable : public CMap<CString, LPCTSTR, LinkLookUpItem_t, LinkLookUpItem_t&>
  29. {
  30. // Public interfaces
  31. public:
  32. // Wrapper function for adding item to CMap
  33. void Add(
  34. const CString& strKey, // use URL as key
  35. const CLink& link
  36. );
  37. // Wrapper function for getting item from CMap
  38. BOOL Get(
  39. const CString& strKey, // use URL as key
  40. CLink& link
  41. ) const;
  42. }; // class CLinkLookUpTable
  43. #endif // _LINKLKUP_H_