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.

95 lines
2.1 KiB

  1. // history.
  2. #ifndef _HISTAPI_
  3. #define _HISTEAPI_
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #if !defined(_HISTORYAPI_)
  8. #define HISTORYAPI EXTERN_C DECLSPEC_IMPORT HRESULT STDAPICALLTYPE
  9. #define HISTORYAPI_(type) EXTERN_C DECLSPEC_IMPORT type STDAPICALLTYPE
  10. #else
  11. #define HISTORYAPI EXTERN_C HRESULT STDAPICALLTYPE
  12. #define HISTORYAPI_(type) EXTERN_C type STDAPICALLTYPE
  13. #endif
  14. typedef struct _HISTORY_ITEM_INFO {
  15. DWORD dwVersion; //Version of History System
  16. LPSTR lpszSourceUrlName; // embedded pointer to the URL name string.
  17. DWORD HistoryItemType; // cache type bit mask.
  18. FILETIME LastAccessTime; // last accessed time in GMT format
  19. LPSTR lpszTitle; // embedded pointer to the History-Title: info.
  20. LPSTR lpszDependancies; // list of URLs that this page requires to be functional, SPC delimited
  21. DWORD dwReserved; // reserved for future use.
  22. } HISTORY_ITEM_INFO, *LPHISTORY_ITEM_INFO;
  23. HISTORYAPI_(BOOL)
  24. FindCloseHistory (
  25. IN HANDLE hEnumHandle
  26. );
  27. HISTORYAPI_(BOOL)
  28. FindNextHistoryItem(
  29. IN HANDLE hEnumHandle,
  30. OUT LPHISTORY_ITEM_INFO lpHistoryItemInfo,
  31. IN OUT LPDWORD lpdwHistoryItemInfoBufferSize
  32. );
  33. HISTORYAPI_(HANDLE)
  34. FindFirstHistoryItem(
  35. IN LPCTSTR lpszUrlSearchPattern,
  36. OUT LPHISTORY_ITEM_INFO lpFirstHistoryItemInfo,
  37. IN OUT LPDWORD lpdwFirstHistoryItemInfoBufferSize
  38. );
  39. HISTORYAPI_(BOOL)
  40. GetHistoryItemInfo (
  41. IN LPCTSTR lpszUrlName,
  42. OUT LPHISTORY_ITEM_INFO lpHistoryItemInfo,
  43. IN OUT LPDWORD lpdwHistoryItemInfoBufferSize
  44. );
  45. HISTORYAPI_(BOOL)
  46. RemoveHistoryItem (
  47. IN LPCTSTR lpszUrlName,
  48. IN DWORD dwReserved
  49. );
  50. HISTORYAPI_(BOOL)
  51. IsHistorical(
  52. IN LPCTSTR lpszUrlName
  53. );
  54. HISTORYAPI_(BOOL)
  55. AddHistoryItem(
  56. IN LPCTSTR lpszUrlName, //direct correspondence in URLCACHE
  57. IN LPCTSTR lpszHistoryTitle, // this needs to be added to lpHeaderInfo
  58. IN LPCTSTR lpszDependancies,
  59. IN DWORD dwFlags,
  60. IN DWORD dwReserved
  61. );
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65. #endif // _HISTAPI_