I’m using the CHECK_CODE_INTEGRITY macro in my Delphi application but the macro always returns that my code has been modified. Any ideas?

<< Click to Display Table of Contents >>

Navigation:  WinLicense > FAQ > Protection Options >

I’m using the CHECK_CODE_INTEGRITY macro in my Delphi application but the macro always returns that my code has been modified. Any ideas?

Please, notice that some components used in Delphi/BCB, like MadExcept, makes memory patching in your code in order to hook some APIs. That patch is detected by CHECK_CODE_INTEGRITY macro, so you have to avoid using the CHECK_CODE_INTEGRITY macro if you are using one of those components that patch the code section of your application in runtime.