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.

67 lines
1.4 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1991 - 1997
  6. //
  7. // File: KSECDD.H
  8. //
  9. // Contents: Structures and defines for the security device driver
  10. //
  11. //
  12. // History: 19 May 92, RichardW Created
  13. // 15 Dec 97, AdamBa Modified from private\lsa\client\ssp
  14. //
  15. //------------------------------------------------------------------------
  16. #ifndef __KSECDD_H__
  17. #define __KSECDD_H__
  18. VOID * SEC_ENTRY
  19. SecAllocate(ULONG cbMemory);
  20. void SEC_ENTRY
  21. SecFree(PVOID pvMemory);
  22. BOOLEAN
  23. GetTokenBuffer(
  24. IN PSecBufferDesc TokenDescriptor OPTIONAL,
  25. IN ULONG BufferIndex,
  26. OUT PVOID * TokenBuffer,
  27. OUT PULONG TokenSize,
  28. IN BOOLEAN ReadonlyOK
  29. );
  30. BOOLEAN
  31. GetSecurityToken(
  32. IN PSecBufferDesc TokenDescriptor OPTIONAL,
  33. IN ULONG BufferIndex,
  34. OUT PSecBuffer * TokenBuffer
  35. );
  36. #define DEB_ERROR 0x1
  37. #define DEB_WARN 0x2
  38. #define DEB_TRACE 0x4
  39. #ifdef POOL_TAGGING
  40. #define ExAllocatePool(a,b) ExAllocatePoolWithTag(a, b, 'cesK')
  41. #define ExAllocatePoolWithQuota(a,b) ExAllocatePoolWithQuotaTag(a, b, 'cesK')
  42. #endif
  43. #if DBG
  44. void
  45. KsecDebugOut(unsigned long Mask,
  46. const char * Format,
  47. ...);
  48. #define DebugStmt(x) x
  49. #define DebugLog(x) KsecDebugOut x
  50. #else
  51. #define DebugStmt(x)
  52. #define DebugLog(x)
  53. #endif
  54. #endif // __KSECDD_H__