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.

101 lines
1.7 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. //
  19. // Procedures that simply route to the providers
  20. //
  21. DWORD
  22. AzpPersistOpen(
  23. IN PAZP_ADMIN_MANAGER AdminManager,
  24. IN BOOL CreatePolicy
  25. );
  26. VOID
  27. AzpPersistClose(
  28. IN PAZP_ADMIN_MANAGER AdminManager
  29. );
  30. DWORD
  31. AzpPersistSubmit(
  32. IN PGENERIC_OBJECT GenericObject,
  33. IN BOOLEAN DeleteMe
  34. );
  35. DWORD
  36. AzpPersistRefresh(
  37. IN PGENERIC_OBJECT GenericObject
  38. );
  39. //
  40. // Procedures called by the providers
  41. //
  42. DWORD
  43. AzpPersistEnumOpen(
  44. IN PAZP_ADMIN_MANAGER AdminManager,
  45. OUT PVOID *PersistEnumContext
  46. );
  47. DWORD
  48. AzpPersistEnumNext(
  49. IN PVOID PersistEnumContext,
  50. OUT PGENERIC_OBJECT *GenericObject
  51. );
  52. DWORD
  53. AzpPersistEnumClose(
  54. IN PVOID PersistEnumContext
  55. );
  56. //
  57. // Procedures implemented by the sample provider
  58. //
  59. DWORD
  60. SamplePersistOpen(
  61. IN PAZP_ADMIN_MANAGER AdminManager,
  62. IN BOOL CreatePolicy
  63. );
  64. VOID
  65. SamplePersistClose(
  66. IN PAZP_ADMIN_MANAGER AdminManager
  67. );
  68. DWORD
  69. SamplePersistSubmit(
  70. IN PGENERIC_OBJECT GenericObject,
  71. IN BOOLEAN DeleteMe
  72. );
  73. DWORD
  74. SamplePersistRefresh(
  75. IN PGENERIC_OBJECT GenericObject
  76. );