Inserting markers in functions
Posted: Sat Jan 23, 2016 4:01 pm
Hello, is this correct way to insert markers inside of code? or not?
or should I insert it in other place? I'm asking it because of return statement, when I insert marker after return statement compiler is optimizing out marker, so I put it before return.
Code: Select all
DWORD dwGetVMTCount( PDWORD pdwVMT )
{
VMProtectBeginMutation( "vmthook_count" );
DWORD dwIndex = 0;
blablabla
...
...
VMProtectEnd( );
return dwIndex;
}