How to use vmprotect.dll with dllimport?

Issues related to VMProtect
xaml
Posts: 1
Joined: Tue Apr 21, 2020 3:59 pm

How to use vmprotect.dll with dllimport?

Postby xaml » Tue Apr 21, 2020 4:09 pm

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
批注 2020-04-22 000644.png (2.85 KiB) Viewed 648 times

Admin
Site Admin
Posts: 1876
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: How to use vmprotect.dll with dllimport?

Postby Admin » Wed Apr 22, 2020 2:09 pm

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