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.

83 lines
1.1 KiB

  1. DWORD
  2. CreateNewSD (
  3. SECURITY_DESCRIPTOR **SD
  4. );
  5. DWORD
  6. MakeSDAbsolute (
  7. PSECURITY_DESCRIPTOR OldSD,
  8. PSECURITY_DESCRIPTOR *NewSD
  9. );
  10. DWORD
  11. SetNamedValueSD (
  12. HKEY RootKey,
  13. LPTSTR KeyName,
  14. LPTSTR ValueName,
  15. SECURITY_DESCRIPTOR *SD
  16. );
  17. DWORD
  18. GetNamedValueSD (
  19. HKEY RootKey,
  20. LPTSTR KeyName,
  21. LPTSTR ValueName,
  22. SECURITY_DESCRIPTOR **SD,
  23. BOOL *NewSD
  24. );
  25. DWORD
  26. AddPrincipalToNamedValueSD (
  27. HKEY RootKey,
  28. LPTSTR KeyName,
  29. LPTSTR ValueName,
  30. LPTSTR Principal,
  31. BOOL Permit
  32. );
  33. DWORD
  34. RemovePrincipalFromNamedValueSD (
  35. HKEY RootKey,
  36. LPTSTR KeyName,
  37. LPTSTR ValueName,
  38. LPTSTR Principal
  39. );
  40. DWORD
  41. GetCurrentUserSID (
  42. PSID *Sid
  43. );
  44. DWORD
  45. GetPrincipalSID (
  46. LPTSTR Principal,
  47. PSID *Sid,
  48. BOOL *pbWellKnownSID
  49. );
  50. DWORD
  51. CopyACL (
  52. PACL OldACL,
  53. PACL NewACL
  54. );
  55. DWORD
  56. AddAccessDeniedACEToACL (
  57. PACL *Acl,
  58. DWORD PermissionMask,
  59. LPTSTR Principal
  60. );
  61. DWORD
  62. AddAccessAllowedACEToACL (
  63. PACL *Acl,
  64. DWORD PermissionMask,
  65. LPTSTR Principal
  66. );
  67. DWORD
  68. RemovePrincipalFromACL (
  69. PACL Acl,
  70. LPTSTR Principal
  71. );