How to create an invulnerable registry key (or file) in C ++

I would like to create a time-limited version of the game that I am developing in C ++. I already meet some kind of program that creates files that I still cannot delete, and others that created a registry key are very difficult to delete (because there were several sub-keys and it was necessary to change the owner to a deeper first, delete him up, change the owner ...).

Then I think the only way is to create something on a computer that is not (or is unlikely to be) removable to mark the start of the trial. I know how to create a key or file, but not how to protect them.

Thank.

+3
source share
1 answer

Windows API /, API. , , NULL , , regedit.

: http://technet.microsoft.com/en-us/sysinternals/dd581628 .

+4

Source: https://habr.com/ru/post/1790289/


All Articles