Exemplo 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;
        }
Exemplo 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);
        }
Exemplo n.º 3
0
 public SecurityInfoCCW(ISecurityInformationManaged model)
 {
     this.model = model;
 }
Exemplo n.º 4
0
 public SecurityInfoCCW(ISecurityInformationManaged model)
 {
     this.model = model;
 }