internal GetKeySecurity( Win32Api.SECURITY_INFORMATION SecurityInformation, IntPtr pSecurityDescriptor, /*ref UInt32*/ IntPtr lpcbSecurityDescriptor) { securityInformation_ = SecurityInformation; pSecurityDescriptor_ = pSecurityDescriptor; lpcbSecurityDescriptor_ = lpcbSecurityDescriptor; }
internal static void GetKeySecurity( this VirtualKey key, Win32Api.SECURITY_INFORMATION SecurityInformation, IntPtr pSecurityDescriptor, /*ref UInt32*/ IntPtr lpcbSecurityDescriptor) { key.ApplyReadOperation(null, new KeySecurity(Win32Api.KeySecurity.MAXIMUM_ALLOWED), keyImpl => keyImpl.TryApply(new GetKeySecurity(SecurityInformation, pSecurityDescriptor, lpcbSecurityDescriptor))); }
internal static extern Int32 ORSetKeySecurity( IntPtr hKey, Win32Api.SECURITY_INFORMATION SecurityInformation, /*ref IntPtr*/ IntPtr pSecurityDescriptor);