Code Markers

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

Code Markers

Postby RunninThruLife » Mon Jun 01, 2020 6:38 pm

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: 1876
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Code Markers

Postby Admin » Mon Jun 01, 2020 6:50 pm

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

Postby RunninThruLife » Tue Jun 02, 2020 2:01 pm

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: 1876
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Code Markers

Postby Admin » Tue Jun 02, 2020 2:23 pm

Where do you see VMProtectEnd in VMProtect.SDK?