Esempio n. 1
0
 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);
Esempio n. 3
0
 public static extern WinError SetFileSecurity(
     [MarshalAs(UnmanagedType.LPWStr)] string lpFileName,
     SecurityDescriptorApi.SECURITY_INFORMATION SecurityInformation,
     IntPtr pSecurityDescriptor
     );