When performing serial number verification a few days ago, you must have the permission to read and write the registry. net to set the registry, file system read and write permissions, very troublesome, I tried many times failed, finally found a command line tool, inProgramCall the tool and input the corresponding command parameters to solve the problem.
Setacl is a set of routines for managing windows permissions (ACLs) from the command line, from scripts and from programs. these routines can be used from varous container or interface programs. currently there exist a command line version to be used in batch files or scripts and an ActiveX control (setacl. OCX) which can be used from any com-enabled language (VB, wsh scripts ,...).
This is an open source gadgets, official address http://setacl.sourceforge.net/
/Files/Jintan/setacl.rar