public static extern WinError GetFileSecurity( [MarshalAs(UnmanagedType.LPWStr)] string lpFileName, SecurityDescriptorApi.SECURITY_INFORMATION RequestedInformation, ref IntPtr pSecurityDescriptor, uint nLength, out uint lpnLengthNeeded );
public static extern uint RegSetKeySecurity( IntPtr hKey, SecurityDescriptorApi.SECURITY_INFORMATION SecurityInformation, IntPtr pSecurityDescriptor);
public static extern WinError SetFileSecurity( [MarshalAs(UnmanagedType.LPWStr)] string lpFileName, SecurityDescriptorApi.SECURITY_INFORMATION SecurityInformation, IntPtr pSecurityDescriptor );