Esempio n. 1
0
 internal GetKeySecurity(
     Win32Api.SECURITY_INFORMATION SecurityInformation,
     IntPtr pSecurityDescriptor,
     /*ref UInt32*/ IntPtr lpcbSecurityDescriptor)
 {
     securityInformation_    = SecurityInformation;
     pSecurityDescriptor_    = pSecurityDescriptor;
     lpcbSecurityDescriptor_ = lpcbSecurityDescriptor;
 }
Esempio n. 2
0
 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)));
 }
Esempio n. 3
0
 internal static extern Int32 ORSetKeySecurity(
     IntPtr hKey,
     Win32Api.SECURITY_INFORMATION SecurityInformation,
     /*ref IntPtr*/ IntPtr pSecurityDescriptor);