Page 1 of 1

Code Markers

Posted: Mon Jun 01, 2020 6:38 pm
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.

Re: Code Markers

Posted: Mon Jun 01, 2020 6:50 pm
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.

Re: Code Markers

Posted: Tue Jun 02, 2020 2:01 pm
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.

Re: Code Markers

Posted: Tue Jun 02, 2020 2:23 pm
by Admin
Where do you see VMProtectEnd in VMProtect.SDK?