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.

64 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1995-2000 Microsoft Corporation
  3. Module Name:
  4. rndsec.h
  5. Abstract:
  6. Security utilities for Rendezvous Control.
  7. Environment:
  8. User Mode - Win32
  9. --*/
  10. ///////////////////////////////////////////////////////////////////////////////
  11. // //
  12. // Include files //
  13. // //
  14. ///////////////////////////////////////////////////////////////////////////////
  15. #include <iads.h>
  16. ///////////////////////////////////////////////////////////////////////////////
  17. // //
  18. // Public prototypes //
  19. // //
  20. ///////////////////////////////////////////////////////////////////////////////
  21. HRESULT
  22. ConvertSDToVariant(
  23. IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
  24. OUT VARIANT * pVarSec
  25. );
  26. HRESULT
  27. ConvertSDToIDispatch(
  28. IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
  29. OUT IDispatch ** ppIDispatch
  30. );
  31. HRESULT
  32. ConvertObjectToSD(
  33. IN IADsSecurityDescriptor FAR * pSecDes,
  34. OUT PSECURITY_DESCRIPTOR * ppSecurityDescriptor,
  35. OUT PDWORD pdwSDLength
  36. );
  37. HRESULT
  38. ConvertObjectToSDDispatch(
  39. IN IDispatch * pDisp,
  40. OUT PSECURITY_DESCRIPTOR * ppSecurityDescriptor,
  41. OUT PDWORD pdwSDLength
  42. );
  43. // Returns FALSE if these two security descriptors are identical.
  44. // Returns TRUE if they differ, or if there is any error parsing either of them
  45. BOOL CheckIfSecurityDescriptorsDiffer(PSECURITY_DESCRIPTOR pSD1,
  46. DWORD dwSDSize1,
  47. PSECURITY_DESCRIPTOR pSD2,
  48. DWORD dwSDSize2);
  49. // eof