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.

76 lines
1.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: var2sec.cxx
  7. //
  8. // Contents: Security routines
  9. //
  10. // Functions:
  11. //
  12. // History: 25-Apr-97 KrishnaG Created.
  13. //
  14. //----------------------------------------------------------------------------
  15. HRESULT
  16. ConvertSecurityDescriptorToSecDes(
  17. IADsSecurityDescriptor FAR * pSecDes,
  18. PSECURITY_DESCRIPTOR * ppSecurityDescriptor,
  19. PDWORD pdwSDLength
  20. );
  21. HRESULT
  22. GetOwnerSecurityIdentifier(
  23. IADsSecurityDescriptor FAR * pSecDes,
  24. PSID * ppSid,
  25. PBOOL pfOwnerDefaulted
  26. );
  27. HRESULT
  28. GetGroupSecurityIdentifier(
  29. IADsSecurityDescriptor FAR * pSecDes,
  30. PSID * ppSid,
  31. PBOOL pfGroupDefaulted
  32. );
  33. HRESULT
  34. GetDacl(
  35. IADsSecurityDescriptor FAR * pSecDes,
  36. PACL * ppDacl,
  37. PBOOL pfDaclDefaulted
  38. );
  39. HRESULT
  40. GetSacl(
  41. IADsSecurityDescriptor FAR * pSecDes,
  42. PACL * ppSacl,
  43. PBOOL pfSaclDefaulted
  44. );
  45. HRESULT
  46. ConvertAccessControlListToAcl(
  47. IADsAccessControlList FAR * pAccessList,
  48. PACL * ppAcl
  49. );
  50. HRESULT
  51. ConvertAccessControlEntryToAce(
  52. IADsAccessControlEntry * pAccessControlEntry,
  53. LPBYTE * ppAce
  54. );
  55. HRESULT
  56. ConvertTrusteeToSid(
  57. BSTR bstrTrustee,
  58. PSID * ppSid,
  59. PDWORD pdwSidSize
  60. );
  61. HRESULT
  62. ComputeTotalAclSize(
  63. PACE_HEADER * ppAceHdr,
  64. DWORD dwAceCount,
  65. PDWORD pdwAclSize
  66. );