You can also make for a more detailed comments in the code, so as not to forget the essence of cobwebs. Monitors and spy- class of programs that will show all that your prog muddies the registry and files. It is no secret that after the program is registered (or unregistered), registration information must be stored somewhere, after all is not well registered under the new program is run again to require entering the serial number! Registration information is stored in files or in the registry. Monitors and spyware can log all events in the action with the files, and written not just a file address, and type of operation (read, write) used by the API-function and work with the registry. Obtained kilometer listings can easily be reduced by using special filters, so do not do one and the same mistakes, like many beginners. Registration data may be stored directly in your program, it is better to use different "secluded" places like the various subfolders directory windows, giving the name of the file some harmless System, System32, SystemConfig Well, in general you will understand.
It is desirable to encrypt the data to a file, there was no such: Registry = True. If the defense is using the system registry, it is better to create a branch of a neutral name. In no If you can not store data on the register in one place, such places should be several, as in the registry or just the files. The registration key can be collected from his "pieces" that lie in different files.