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.

91 lines
1.8 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. BOOL bCreateNewIfNotExist
  25. );
  26. DWORD
  27. AddPrincipalToNamedValueSD (
  28. HKEY RootKey,
  29. LPTSTR KeyName,
  30. LPTSTR ValueName,
  31. LPTSTR Principal,
  32. BOOL Permit
  33. );
  34. DWORD
  35. RemovePrincipalFromNamedValueSD (
  36. HKEY RootKey,
  37. LPTSTR KeyName,
  38. LPTSTR ValueName,
  39. LPTSTR Principal,
  40. BOOL * pbUserExistsToBeDeleted
  41. );
  42. DWORD
  43. GetCurrentUserSID (
  44. PSID *Sid
  45. );
  46. DWORD
  47. GetPrincipalSID (
  48. LPTSTR Principal,
  49. PSID *Sid,
  50. BOOL *pbWellKnownSID
  51. );
  52. DWORD
  53. CopyACL (
  54. PACL OldACL,
  55. PACL NewACL
  56. );
  57. DWORD
  58. AddAccessDeniedACEToACL (
  59. PACL *Acl,
  60. DWORD PermissionMask,
  61. LPTSTR Principal
  62. );
  63. DWORD
  64. AddAccessAllowedACEToACL (
  65. PACL *Acl,
  66. DWORD PermissionMask,
  67. LPTSTR Principal
  68. );
  69. DWORD
  70. RemovePrincipalFromACL (
  71. PACL Acl,
  72. LPTSTR Principal,
  73. BOOL *pbUserExistsToBeDeleted
  74. );
  75. DWORD GetPrincipalSID (LPTSTR Principal,PSID *Sid,BOOL *pbWellKnownSID);
  76. DWORD ChangeAppIDAccessACL (LPTSTR AppID,LPTSTR Principal,BOOL SetPrincipal,BOOL Permit,BOOL bDumbCall);
  77. DWORD ChangeAppIDLaunchACL (LPTSTR AppID,LPTSTR Principal,BOOL SetPrincipal,BOOL Permit,BOOL bDumbCall);
  78. DWORD ChangeDCOMAccessACL (LPTSTR Principal,BOOL SetPrincipal,BOOL Permit,BOOL bDumbCall);
  79. DWORD ChangeDCOMLaunchACL (LPTSTR Principal,BOOL SetPrincipal,BOOL Permit,BOOL bDumbCall);
  80. BOOL MakeAbsoluteCopyFromRelative(PSECURITY_DESCRIPTOR psdOriginal,PSECURITY_DESCRIPTOR* ppsdNew);