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.

61 lines
1.2 KiB

  1. #include <windows.h>
  2. #include <winscard.h>
  3. #include <string.h>
  4. #include <stdlib.h>
  5. #include "basecsp.h"//
  6. // Function: CspAllocH
  7. //
  8. LPVOID WINAPI CspAllocH(
  9. IN SIZE_T cBytes)
  10. {
  11. return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, cBytes);
  12. }
  13. //
  14. // Function: CspFreeH
  15. //
  16. void WINAPI CspFreeH(
  17. IN LPVOID pMem)
  18. {
  19. HeapFree(GetProcessHeap(), 0, pMem);
  20. }
  21. //
  22. // Function: CspReAllocH
  23. //
  24. LPVOID WINAPI CspReAllocH(
  25. IN LPVOID pMem,
  26. IN SIZE_T cBytes)
  27. {
  28. return HeapReAlloc(
  29. GetProcessHeap(), HEAP_ZERO_MEMORY, pMem, cBytes);
  30. }
  31. DWORD WINAPI CspCacheAddFile(
  32. IN PVOID pvCacheContext,
  33. IN LPWSTR wszTag,
  34. IN DWORD dwFlags,
  35. IN PBYTE pbData,
  36. IN DWORD cbData)
  37. {
  38. return ERROR_SUCCESS;
  39. }
  40. DWORD WINAPI CspCacheLookupFile(
  41. IN PVOID pvCacheContext,
  42. IN LPWSTR wszTag,
  43. IN DWORD dwFlags,
  44. IN PBYTE *ppbData,
  45. IN PDWORD pcbData)
  46. {
  47. return ERROR_NOT_FOUND;
  48. }
  49. DWORD WINAPI CspCacheDeleteFile(
  50. IN PVOID pvCacheContext,
  51. IN LPWSTR wszTag,
  52. IN DWORD dwFlags)
  53. {
  54. return ERROR_SUCCESS;
  55. }