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.

51 lines
1.0 KiB

  1. #ifndef __CSP_DATA_CACHE__
  2. #define __CSP_DATA_CACHE__
  3. #include <windows.h>
  4. #include <wincrypt.h>
  5. typedef ULONG_PTR CACHEHANDLE;
  6. DWORD CacheFreeEnumItems(
  7. IN PDATA_BLOB pdbItems);
  8. DWORD CacheEnumItems(
  9. IN CACHEHANDLE hCache,
  10. OUT PDATA_BLOB *ppdbItems,
  11. OUT PDWORD pcItems);
  12. DWORD CacheGetItem(
  13. IN CACHEHANDLE hCache,
  14. IN PDATA_BLOB mpdbKeys,
  15. IN DWORD cKeys,
  16. OUT PDATA_BLOB pdbItem);
  17. DWORD CacheAddItem(
  18. IN CACHEHANDLE hCache,
  19. IN PDATA_BLOB mpdbKeys,
  20. IN DWORD cKeys,
  21. IN PDATA_BLOB pdbItem);
  22. DWORD CacheDeleteItem(
  23. IN CACHEHANDLE hCache,
  24. IN PDATA_BLOB mpdbKeys,
  25. IN DWORD cKeys);
  26. #define CACHE_TYPE_IN_PROC 1
  27. #define CACHE_TYPE_SERVICE 2
  28. typedef struct _CACHE_INITIALIZE_INFO
  29. {
  30. DWORD dwFlags;
  31. DWORD dwType;
  32. PVOID pvInfo;
  33. } CACHE_INITIALIZE_INFO, *PCACHE_INITIALIZE_INFO;
  34. DWORD CacheInitializeCache(
  35. IN CACHEHANDLE *phCache,
  36. IN PCACHE_INITIALIZE_INFO pCacheInitializeInfo);
  37. DWORD CacheDeleteCache(
  38. IN CACHEHANDLE hCache);
  39. #endif