Because I created a simple test program, and when I protect it and run it, the code between the markers still gets executed.
It is compiled as a 64-bit program, and I have included VMProtectSDK64.lib from Ultimate version.
I want to lock/encrypt the protected code to the hardware ID. I don't want to lock it to serial number.
Code: Select all
#include "stdafx.h"
#include "VMProtectSDK.h"
BOOL ProtectedFunction();
int _tmain(int argc, _TCHAR* argv[]) {
ProtectedFunction();
return 0;
}
#pragma optimize( "", off )
BOOL
ProtectedFunction() {
VMProtectBegin("Test marker");
MessageBox( NULL, _T("Protected Code"), _T("Test marker"), MB_OK );
VMProtectEnd();
return 1;
}
#pragma optimize( "", on )
Perhaps I misunderstand something.