Code Markers

Issues related to VMProtect
Post Reply
RunninThruLife
Posts: 3
Joined: Wed Apr 15, 2020 5:46 pm

Code Markers

Post by RunninThruLife »

When placing code markers in the source, is there a need for a marker to be placed above every single method, or just the method at the top of the section to protect? For example...

Code: Select all

[VMProtect.Ultra]
public void TestMe(string testingParam)
{
    System.Windows.Messagebox.Show(testingParam);
}

[VMProtect.Ultra] //<--Is this necessary or can it be left out
public void TestMe2(string testingParam2)
{
    System.Windows.Messagebox.Show(testingParam2);
}
Also, the reference to VMProtect doesn't seem to have a definition for VMProtectEnd. How is this marker placed?

Thank you.
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Code Markers

Post by Admin »

You have to use [VMProtect.BeginUltra] for every method that you want to protect. Anyway, you can add/remove any method into a VMP project with the VMProtect's GUI.
RunninThruLife
Posts: 3
Joined: Wed Apr 15, 2020 5:46 pm

Re: Code Markers

Post by RunninThruLife »

Thank you for responding.

Would you mind answering the other part to the question? What happened to the VMProtectEnd marker? Is it still used? I couldn't find it in the SDK.

******
Also, the reference to VMProtect doesn't seem to have a definition for VMProtectEnd. How is this marker placed?

Thank you.
******


Thank you for your time.
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Code Markers

Post by Admin »

Where do you see VMProtectEnd in VMProtect.SDK?
Post Reply