Source code of Windows XP (NT5)
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.

123 lines
3.4 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #define AUTHZAPI
  4. #define AUTHZ_CLIENT_CONTEXT_HANDLE PVOID
  5. #define PAUTHZ_CLIENT_CONTEXT_HANDLE PVOID *
  6. #define AUTHZ_RESOURCE_MANAGER_HANDLE PVOID
  7. #define PAUTHZ_RESOURCE_MANAGER_HANDLE PVOID *
  8. #define AUTHZ_CONTEXT_INFORMATION_CLASS DWORD
  9. #define PFN_AUTHZ_ACCESS_CHECK PVOID
  10. #define PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS PVOID
  11. #define PFN_AUTHZ_FREE_DYNAMIC_GROUPS PVOID
  12. #define PFN_AUTHZ_DYNAMIC_ACCESS_CHECK PVOID
  13. #define PAUTHZ_ACCESS_REQUEST PVOID
  14. #define AUTHZ_AUDIT_EVENT_HANDLE PVOID
  15. #define PAUTHZ_ACCESS_REPLY PVOID
  16. #define PAUTHZ_ACCESS_CHECK_RESULTS_HANDLE PVOID
  17. static
  18. AUTHZAPI
  19. BOOL
  20. WINAPI
  21. AuthzAccessCheck(
  22. IN DWORD Flags,
  23. IN AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext,
  24. IN PAUTHZ_ACCESS_REQUEST pRequest,
  25. IN AUTHZ_AUDIT_EVENT_HANDLE hAuditEvent OPTIONAL,
  26. IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
  27. IN PSECURITY_DESCRIPTOR *OptionalSecurityDescriptorArray OPTIONAL,
  28. IN DWORD OptionalSecurityDescriptorCount,
  29. IN OUT PAUTHZ_ACCESS_REPLY pReply,
  30. OUT PAUTHZ_ACCESS_CHECK_RESULTS_HANDLE phAccessCheckResults OPTIONAL
  31. )
  32. {
  33. return FALSE;
  34. }
  35. static
  36. AUTHZAPI
  37. BOOL
  38. WINAPI
  39. AuthzFreeContext(
  40. IN AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext
  41. )
  42. {
  43. return FALSE;
  44. }
  45. static
  46. AUTHZAPI
  47. BOOL
  48. WINAPI
  49. AuthzFreeResourceManager(
  50. IN AUTHZ_RESOURCE_MANAGER_HANDLE hAuthzResourceManager
  51. )
  52. {
  53. return FALSE;
  54. }
  55. static
  56. AUTHZAPI
  57. BOOL
  58. WINAPI
  59. AuthzGetInformationFromContext(
  60. IN AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext,
  61. IN AUTHZ_CONTEXT_INFORMATION_CLASS InfoClass,
  62. IN DWORD BufferSize,
  63. OUT PDWORD pSizeRequired,
  64. OUT PVOID Buffer
  65. )
  66. {
  67. return FALSE;
  68. }
  69. static
  70. AUTHZAPI
  71. BOOL
  72. WINAPI
  73. AuthzInitializeContextFromSid(
  74. IN DWORD Flags,
  75. IN PSID UserSid,
  76. IN AUTHZ_RESOURCE_MANAGER_HANDLE hAuthzResourceManager,
  77. IN PLARGE_INTEGER pExpirationTime OPTIONAL,
  78. IN LUID Identifier,
  79. IN PVOID DynamicGroupArgs OPTIONAL,
  80. OUT PAUTHZ_CLIENT_CONTEXT_HANDLE phAuthzClientContext
  81. )
  82. {
  83. return FALSE;
  84. }
  85. static
  86. AUTHZAPI
  87. BOOL
  88. WINAPI
  89. AuthzInitializeResourceManager(
  90. IN DWORD Flags,
  91. IN PFN_AUTHZ_DYNAMIC_ACCESS_CHECK pfnDynamicAccessCheck OPTIONAL,
  92. IN PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS pfnComputeDynamicGroups OPTIONAL,
  93. IN PFN_AUTHZ_FREE_DYNAMIC_GROUPS pfnFreeDynamicGroups OPTIONAL,
  94. IN PCWSTR szResourceManagerName,
  95. OUT PAUTHZ_RESOURCE_MANAGER_HANDLE phAuthzResourceManager
  96. )
  97. {
  98. return FALSE;
  99. }
  100. //
  101. // !! WARNING !! The entries below must be in alphabetical order
  102. // and are CASE SENSITIVE (i.e., lower case comes last!)
  103. //
  104. DEFINE_PROCNAME_ENTRIES(authz)
  105. {
  106. DLPENTRY(AuthzAccessCheck)
  107. DLPENTRY(AuthzFreeContext)
  108. DLPENTRY(AuthzFreeResourceManager)
  109. DLPENTRY(AuthzGetInformationFromContext)
  110. DLPENTRY(AuthzInitializeContextFromSid)
  111. DLPENTRY(AuthzInitializeResourceManager)
  112. };
  113. DEFINE_PROCNAME_MAP(authz)