How to use vmprotect.dll with dllimport?

Hi,

For some personal reasons, I couldn’t use .net dll directly in my project. So I think it would be good to use dllimport with the native dll.However it doesn’t work. It always return 2 when calling SetSerialNumber. Can you help me?
批注 2020-04-22 000644.png

You have to use VMProtect.SDK.dll instead of VMProtectSDK64.dll.