I see that WinLicense detects if my file on disk has been patched, but how can I detect if someone has patched my application in memory?

<< Click to Display Table of Contents >>

Navigation:  WinLicense > FAQ > Protection Options >

I see that WinLicense detects if my file on disk has been patched, but how can I detect if someone has patched my application in memory?

The macro CHECK_CODE_INTEGRITY checks the integrity of your application in memory (code section). You can use this macro and call it on specific places in your application. Notice that there is a penalty in execution when calling this macro, you should avoid calling it multiple times or in places that requires a fast processing.

 

You can find here how to use this function.