public SecurityAttributes(CommonObjectSecurity objectSecurity)
 {
     _length = Marshal.SizeOf(typeof(SecurityAttributes));
     byte[] src = objectSecurity.GetSecurityDescriptorBinaryForm();
     _securityDescriptor = Marshal.AllocHGlobal(src.Length);
     Marshal.Copy(src, 0, _securityDescriptor, src.Length);
     _inheritHandle = false;
 }