Windows NT 4.0 source code leak
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.

102 lines
1.9 KiB

4 years ago
  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1991 - 1992
  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. //
  14. //------------------------------------------------------------------------
  15. #ifndef __KSECDD_H__
  16. #define __KSECDD_H__
  17. #include <ntos.h>
  18. #include <spseal.h> // prototypes for seal & unseal
  19. SECURITY_STATUS SEC_ENTRY
  20. DeleteUserModeContext(
  21. PCtxtHandle phContext // Contxt to delete
  22. );
  23. SECURITY_STATUS SEC_ENTRY
  24. InitUserModeContext(
  25. PCtxtHandle phContext, // Contxt to init
  26. PSecBuffer pContextBuffer
  27. );
  28. SECURITY_STATUS
  29. InitializePackages(void);
  30. VOID * SEC_ENTRY
  31. SecAllocate(ULONG cbMemory);
  32. void SEC_ENTRY
  33. SecFree(PVOID pvMemory);
  34. SECURITY_STATUS SEC_ENTRY
  35. IsOkayToExec(PClient * ppClient);
  36. BOOLEAN
  37. GetTokenBuffer(
  38. IN PSecBufferDesc TokenDescriptor OPTIONAL,
  39. IN ULONG BufferIndex,
  40. OUT PVOID * TokenBuffer,
  41. OUT PULONG TokenSize,
  42. IN BOOLEAN ReadonlyOK
  43. );
  44. BOOLEAN
  45. GetSecurityToken(
  46. IN PSecBufferDesc TokenDescriptor OPTIONAL,
  47. IN ULONG BufferIndex,
  48. OUT PSecBuffer * TokenBuffer
  49. );
  50. // Global Variables:
  51. extern KSPIN_LOCK ConnectSpinLock;
  52. extern BOOLEAN fInitialized;
  53. #define DEB_ERROR 0x1
  54. #define DEB_WARN 0x2
  55. #define DEB_TRACE 0x4
  56. #ifdef POOL_TAGGING
  57. #define ExAllocatePool(a,b) ExAllocatePoolWithTag(a, b, 'cesK')
  58. #define ExAllocatePoolWithQuota(a,b) ExAllocatePoolWithQuotaTag(a, b, 'cesK')
  59. #endif
  60. #if DBG
  61. void
  62. KsecDebugOut(unsigned long Mask,
  63. const char * Format,
  64. ...);
  65. #define DebugStmt(x) x
  66. #define DebugLog(x) KsecDebugOut x
  67. #else
  68. #define DebugStmt(x)
  69. #define DebugLog(x)
  70. #endif
  71. #endif // __KSECDD_H__