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.

127 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. persist.h
  5. Abstract:
  6. Routines implementing the common logic for persisting the authz policy.
  7. This file contains routine called by the core logic to submit changes.
  8. It also contains routines that are called by the particular providers to
  9. find out information about the changed objects.
  10. Author:
  11. Cliff Van Dyke (cliffv) 9-May-2001
  12. --*/
  13. /////////////////////////////////////////////////////////////////////////////
  14. //
  15. // Procedure definitions
  16. //
  17. /////////////////////////////////////////////////////////////////////////////
  18. #ifdef _AZROLESAPI_
  19. //
  20. // Procedures that simply route to the providers
  21. //
  22. DWORD
  23. AzPersistOpen(
  24. IN PAZP_AZSTORE AzAuthorizationStore,
  25. IN BOOL CreatePolicy
  26. );
  27. VOID
  28. AzPersistClose(
  29. IN PAZP_AZSTORE AzAuthorizationStore
  30. );
  31. DWORD
  32. AzPersistSubmit(
  33. IN PGENERIC_OBJECT GenericObject,
  34. IN BOOLEAN DeleteMe
  35. );
  36. VOID
  37. AzPersistAbort(
  38. IN PGENERIC_OBJECT GenericObject
  39. );
  40. DWORD
  41. AzPersistUpdateCache(
  42. IN PAZP_AZSTORE AzAuthorizationStore
  43. );
  44. DWORD
  45. AzPersistUpdateChildrenCache(
  46. IN OUT PGENERIC_OBJECT GenericObject
  47. );
  48. DWORD
  49. AzPersistRefresh(
  50. IN PGENERIC_OBJECT GenericObject
  51. );
  52. //
  53. // Some of the Azpe* routines are used by the core. Define those here.
  54. //
  55. DWORD
  56. WINAPI
  57. AzpeAddPropertyItemSid(
  58. IN AZPE_OBJECT_HANDLE AzpeObjectHandle,
  59. IN ULONG lPersistFlags,
  60. IN ULONG PropertyId,
  61. IN PSID Sid
  62. );
  63. VOID
  64. WINAPI
  65. AzpeFreeMemory(
  66. IN PVOID Buffer
  67. );
  68. BOOL
  69. WINAPI
  70. AzpAzStoreIsBatchUpdateMode(
  71. IN AZPE_OBJECT_HANDLE AzpeObjectHandle
  72. );
  73. AZPE_OBJECT_HANDLE
  74. WINAPI
  75. AzpeGetAuthorizationStore(
  76. IN AZPE_OBJECT_HANDLE hObject
  77. );
  78. #endif // _AZROLESAPI_
  79. //
  80. // Externs exported from the internal providers
  81. //
  82. // These are the only interfaces to the internal providers. That makes them
  83. // equivalent to the loaded providers.
  84. //
  85. #define AZ_XML_PROVIDER_NAME L"MSXML"
  86. #define AZ_XML_PROVIDER_NAME_LENGTH 5
  87. DWORD
  88. WINAPI
  89. XmlProviderInitialize(
  90. IN PAZPE_AZROLES_INFO AzrolesInfo,
  91. OUT PAZPE_PROVIDER_INFO *ProviderInfo
  92. );
  93. #define AZ_AD_PROVIDER_NAME L"MSLDAP"
  94. DWORD
  95. WINAPI
  96. AdProviderInitialize(
  97. IN PAZPE_AZROLES_INFO AzrolesInfo,
  98. OUT PAZPE_PROVIDER_INFO *ProviderInfo
  99. );