Under the administrator user roles, registry, service operation is no problem, but not under the admin role will not be able to modify the registry "HKEY_LOCAL_MACHINE \ SOFTWARE" | services start to stop operation, such as online to have a Win32 Api SetNameSecurityInfo said the document can change permissions, your copy for the demo, all wrong, who is a great god can provide the complete c # useful demo, thank you!
CodePudding user response:
Don't sink, oneself's top, and this problem is really hard for you guysCodePudding user response:
The problem is not difficult,In simple terms, think through SetNameSecurityInfo to bypass the administrator, doesn't work,
SetNameSecurityInfo want the call is successful, ask the caller to have administrator privileges, or the caller is the owner of pObjectName, or have WRITE_DAC access,
CodePudding user response: