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.

62 lines
1.0 KiB

  1. // Copyright (c) 1997-2002 Microsoft Corporation
  2. //
  3. // Module:
  4. //
  5. // Network Security Utilities
  6. //
  7. // Abstract:
  8. //
  9. // Acl API's
  10. //
  11. // Authors:
  12. //
  13. // pmay 2/5/02
  14. // raymonds 03/20/02
  15. //
  16. // Environment:
  17. //
  18. // User mode
  19. //
  20. // Revision History:
  21. //
  22. // Description:
  23. //
  24. // Flags passed to NsuAclCreate*
  25. //
  26. #include <aclapi.h>
  27. #include <sddl.h>
  28. #define NSU_ACL_F_AdminFull 0x1
  29. #define NSU_ACL_F_LocalSystemFull 0x2
  30. DWORD
  31. NsuAclAttributesCreate(
  32. OUT PSECURITY_ATTRIBUTES* ppSecurityAttributes,
  33. IN DWORD dwFlags);
  34. DWORD
  35. NsuAclAttributesDestroy(
  36. IN OUT PSECURITY_ATTRIBUTES* ppAttributes);
  37. DWORD
  38. NsuAclDescriptorCreate (
  39. OUT PSECURITY_DESCRIPTOR* ppSecurityDescriptor,
  40. IN DWORD dwFlags);
  41. DWORD
  42. NsuAclDescriptorDestroy(
  43. IN OUT PSECURITY_DESCRIPTOR* ppDescriptor);
  44. DWORD
  45. NsuAclDescriptorRestricts(
  46. IN CONST PSECURITY_DESCRIPTOR pSD,
  47. OUT BOOL* pbRestricts);
  48. DWORD
  49. NsuAclGetRegKeyDescriptor(
  50. IN HKEY hKey,
  51. OUT PSECURITY_DESCRIPTOR* ppSecurityDescriptor
  52. );