If I protect the following code with a macro: VM_START InitializeCounters(i); VM_END. Will the InitializeCounters() function code also virtualized?

<< Click to Display Table of Contents >>

Navigation:  Code Virtualizer > FAQ > Macros >

If I protect the following code with a macro: VM_START InitializeCounters(i); VM_END. Will the InitializeCounters() function code also virtualized?

No, in your example, you are just virtualizing the code which puts the parameters in the stack and call your function. But the function "InitializeCounters" itself is not virtualized. You have to put a new VM macro inside the function "InitializeCounters" if you want to virtualize it.