Esempio n. 1
0
        // wrapper for actual call to Win32 function that pops up the ACL window
        internal static bool EditACLSecurity(
            ISecurityInformationManaged model,
            IntPtr hwndOwner)
        {
            // create a new instance of a ISecurityInformation object
            ISecurityInformation psi = new SecurityInfoCCW(model);
            // pop-up the ACL window for the ISecurityInformation object created
#pragma warning suppress 56523
            int result = SafeNativeMethods.EditSecurity(hwndOwner, psi);
            return result == 0 ? false : true;
        }
Esempio n. 2
0
        // wrapper for actual call to Win32 function that pops up the ACL window
        internal static bool EditACLSecurity(
            ISecurityInformationManaged model,
            IntPtr hwndOwner)
        {
            // create a new instance of a ISecurityInformation object
            ISecurityInformation psi = new SecurityInfoCCW(model);

            // pop-up the ACL window for the ISecurityInformation object created
#pragma warning suppress 56523
            int result = SafeNativeMethods.EditSecurity(hwndOwner, psi);
            return(result == 0 ? false : true);
        }
Esempio n. 3
0
 public SecurityInfoCCW(ISecurityInformationManaged model)
 {
     this.model = model;
 }
Esempio n. 4
0
 public SecurityInfoCCW(ISecurityInformationManaged model)
 {
     this.model = model;
 }