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.

92 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. rndsec.h
  5. Abstract:
  6. Security utilities for Rendezvous Control.
  7. Author:
  8. KrishnaG (from OLEDS team)
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. 12-Dec-1997 DonRyan
  13. Munged KrishnaG's code to work with Rendezvous Control.
  14. --*/
  15. ///////////////////////////////////////////////////////////////////////////////
  16. // //
  17. // Include files //
  18. // //
  19. ///////////////////////////////////////////////////////////////////////////////
  20. #include <iads.h>
  21. ///////////////////////////////////////////////////////////////////////////////
  22. // //
  23. // Public prototypes //
  24. // //
  25. ///////////////////////////////////////////////////////////////////////////////
  26. HRESULT
  27. ConvertSDToVariant(
  28. IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
  29. OUT VARIANT * pVarSec
  30. );
  31. HRESULT
  32. ConvertSDToIDispatch(
  33. IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
  34. OUT IDispatch ** ppIDispatch
  35. );
  36. HRESULT
  37. ConvertObjectToSD(
  38. IN IADsSecurityDescriptor FAR * pSecDes,
  39. OUT PSECURITY_DESCRIPTOR * ppSecurityDescriptor,
  40. OUT PDWORD pdwSDLength
  41. );
  42. HRESULT
  43. ConvertObjectToSDDispatch(
  44. IN IDispatch * pDisp,
  45. OUT PSECURITY_DESCRIPTOR * ppSecurityDescriptor,
  46. OUT PDWORD pdwSDLength
  47. );
  48. HRESULT
  49. ConvertACLToVariant(
  50. PACL pACL,
  51. LPVARIANT pvarACL
  52. );
  53. HRESULT
  54. ConvertSidToFriendlyName(
  55. PSID pSid,
  56. LPWSTR * ppszAccountName
  57. );
  58. HRESULT
  59. ConvertTrusteeToSid(
  60. BSTR bstrTrustee,
  61. PSID * ppSid,
  62. PDWORD pdwSidSize
  63. );
  64. HRESULT
  65. ConvertStringToSid(
  66. IN PWSTR string,
  67. OUT PSID *sid,
  68. OUT PDWORD pdwSidSize,
  69. OUT PWSTR *end
  70. );