1

We found here the next snippet of code:

bool Result = false;
Security.ModifyAccessRule(AccessControlModification.Set, AccessRule, out Result);

if (!Result)
    return false;

In which exact cases "Result" is going to be false? Does anyone know? Please, help us.

ana
  • 1,071
  • 9
  • 12

1 Answers1

2

According to the docs, the result of Security.ModifyAccessRule would be true if the DACL is successfully modified; otherwise, false

See the following for reference:
https://learn.microsoft.com/en-us/dotnet/api/system.security.accesscontrol.objectsecurity.modifyaccessrule?view=netframework-4.7.2

Wayne Phipps
  • 2,019
  • 6
  • 26
  • 31