Prompt error: #error "Unsupported target architecture"
Then I found a solution.
Code: Select all
#define VMP_IMPORT __declspec(dllimport)
#define VMP_API __stdcall
#define VMP_WCHAR wchar_t
#ifdef _M_IX86 || __i386__
#pragma comment(lib, "VMProtectSDK32.lib")
#elif _M_X64 || __x86_64__
#pragma comment(lib, "VMProtectSDK64.lib")
#elif _M_ARM64 || __aarch64__
#pragma comment(lib, "VMProtectARM64.lib")
#else
#error "Unsupported target architecture"
#endif