Example #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;
        }
Example #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);
        }