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.

121 lines
2.3 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. #ifdef __cplusplus
  69. extern "C" {
  70. #endif
  71. HRESULT
  72. ConvertTrusteeToSid(
  73. LPWSTR pszServerName,
  74. CCredentials& Credentials,
  75. BSTR bstrTrustee,
  76. PSID * ppSid,
  77. PDWORD pdwSidSize,
  78. BOOL fNTDSType = FALSE
  79. );
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83. HRESULT
  84. ComputeTotalAclSize(
  85. PACE_HEADER * ppAceHdr,
  86. DWORD dwAceCount,
  87. PDWORD pdwAclSize
  88. );
  89. HRESULT
  90. ConvertU2TrusteeToSid(
  91. LPWSTR pszServerName,
  92. CCredentials& Credentials,
  93. LPWSTR pszTrustee,
  94. LPBYTE Sid,
  95. PDWORD pdwSidSize
  96. );
  97. //
  98. // Wrapper function for the same.
  99. //
  100. DWORD SetSecurityDescriptorControlWrapper(
  101. IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
  102. IN SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest,
  103. IN SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet
  104. );