roll.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. //*********************************************************************
  2. //*                  Microsoft Windows                               **
  3. //*            Copyright(c) Microsoft Corp., 1996                    **
  4. //*********************************************************************
  5. #ifndef _ROLL_H_
  6. #define _ROLL_H_
  7. /*Includes-----------------------------------------------------------*/
  8. /*Classes------------------------------------------------------------*/
  9. /*
  10. The format of the local list file is as follows:
  11. BATCAVE_LOCAL_LIST_MAGIC_COOKIE
  12. LocalListRecordHeader_1 pUrl_1 pRating_1
  13. .
  14. .
  15. .
  16. .
  17. LocalListRecordHeader_n pUrl_n pRating_n
  18. The file is binary.
  19. Entries should be sorted based on pUrl
  20. pUrl and pRating are both strings whose size is determined
  21. by the record header.  They are NOT null terminated!
  22. */
  23. #define BATCAVE_LOCAL_LIST_MAGIC_COOKIE 0x4e4f5845
  24. //BUG BUG should either be inside of registry or user profile
  25. #define FILE_NAME_LIST  "ratings.lst"
  26. struct LocalListRecordHeader{
  27. int     nUrl;
  28. int     nRating;
  29. HRESULT hrRet;
  30. };
  31. /*Prototypes---------------------------------------------------------*/
  32. HRESULT RatingHelperProcLocalList(LPCTSTR pszTargetUrl, HANDLE hAbortEvent, void* (WINAPI *MemAlloc)(long size), char **ppRatingOut);
  33. #endif 
  34. //_ROLL_H_