Search code examples
.netpinvoke

ConvertStringSecurityDescriptorToSecurityDescriptor in .NET


does anyone here have a code snippet: how do I convert SDDL to SECURITY_DESCRIPTOR in managed code? Like you usually do in c++ by calling ConvertStringSecurityDescriptorToSecurityDescriptor


Solution

  • You don't have to.

    RawSecurityDescriptor Class.

    RawSecurityDescriptor Constructor (String).

    GenericSecurityDescriptor.GetBinaryForm Method.