In VMP 2 I could add a function via script and lock it to the key with this code:
proc := VMProtector.AddByAddress(func.Address, compilationType, True);
proc.CompilationOptions := proc.CompilationOptions + [coUseKey];
In VMP 3 I haven’t found a way to do it. Neither CompilationType, nor the object returned by addByAddress has CompilationOptions or something that looks like a key-lock. How do I do it?