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.

113 lines
2.1 KiB

  1. #ifdef __cplusplus
  2. extern "C" {
  3. #endif
  4. HRESULT
  5. ConvertSecurityDescriptorToSecDes(
  6. LPWSTR pszServerName,
  7. CCredentials& Credentials,
  8. IADsSecurityDescriptor FAR * pSecDes,
  9. PSECURITY_DESCRIPTOR * ppSecurityDescriptor,
  10. PDWORD pdwSDLength,
  11. BOOL fNTDSType = FALSE
  12. );
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. HRESULT
  17. GetOwnerSecurityIdentifier(
  18. LPWSTR pszServerName,
  19. CCredentials& Credentials,
  20. IADsSecurityDescriptor FAR * pSecDes,
  21. PSID * ppSid,
  22. PBOOL pfOwnerDefaulted,
  23. BOOL fNTDSType
  24. );
  25. HRESULT
  26. GetGroupSecurityIdentifier(
  27. LPWSTR pszServerName,
  28. CCredentials& Credentials,
  29. IADsSecurityDescriptor FAR * pSecDes,
  30. PSID * ppSid,
  31. PBOOL pfGroupDefaulted,
  32. BOOL fNTDSType
  33. );
  34. HRESULT
  35. GetDacl(
  36. LPWSTR pszServerName,
  37. CCredentials& Credentials,
  38. IADsSecurityDescriptor FAR * pSecDes,
  39. PACL * ppDacl,
  40. PBOOL pfDaclDefaulted,
  41. BOOL fNTDSType
  42. );
  43. HRESULT
  44. GetSacl(
  45. LPWSTR pszServerName,
  46. CCredentials& Credentials,
  47. IADsSecurityDescriptor FAR * pSecDes,
  48. PACL * ppSacl,
  49. PBOOL pfSaclDefaulted,
  50. BOOL fTNDSType
  51. );
  52. HRESULT
  53. ConvertAccessControlListToAcl(
  54. LPWSTR pszServerName,
  55. CCredentials& Credentials,
  56. IADsAccessControlList FAR * pAccessList,
  57. PACL * ppAcl,
  58. BOOL fNTDSType
  59. );
  60. HRESULT
  61. ConvertAccessControlEntryToAce(
  62. LPWSTR pszServerName,
  63. CCredentials& Credentials,
  64. IADsAccessControlEntry * pAccessControlEntry,
  65. LPBYTE * ppAce,
  66. BOOL fNTDSType
  67. );
  68. HRESULT
  69. ConvertTrusteeToSid(
  70. LPWSTR pszServerName,
  71. CCredentials& Credentials,
  72. BSTR bstrTrustee,
  73. PSID * ppSid,
  74. PDWORD pdwSidSize,
  75. BOOL fNTDSType = FALSE
  76. );
  77. HRESULT
  78. ComputeTotalAclSize(
  79. PACE_HEADER * ppAceHdr,
  80. DWORD dwAceCount,
  81. PDWORD pdwAclSize
  82. );
  83. HRESULT
  84. ConvertU2TrusteeToSid(
  85. LPWSTR pszServerName,
  86. CCredentials& Credentials,
  87. LPWSTR pszTrustee,
  88. LPBYTE Sid,
  89. PDWORD pdwSidSize
  90. );
  91. //
  92. // Wrapper function for the same.
  93. //
  94. DWORD SetSecurityDescriptorControlWrapper(
  95. IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
  96. IN SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest,
  97. IN SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet
  98. );