Code Markers

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…

[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.

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.

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.

Where do you see VMProtectEnd in VMProtect.SDK?