This protection interface implementation provides alternate way of using advanced protection interface functions and is intended for Microsoft .NET Framework, .NET Core and .NET (Windows) managed applications and any native Windows applications which are not able to use default advanced protection interface implementation.
If you are using programming languages such as C/C++, Delphi or Visual Basic to build native Windows applications you should use default advanced protection interface.
General implementation steps
"Enable protection interface" and "Enable alternate protection interface" protection interface options are mandatory. If enable, protection interface data can be obtained from protected application.
If you intend to use your own user interface dialogs (activation dialog for example) you also need to enable demo mode together with date or exec limitation and "Protected application will handle expired demo option" option.
Set "Protected application will handle license management" option if you are going to manage license removal, update or license transfer.
Set "Protected application will handle expired license" option to manage expired limited license.
Sample source code
We've prepared sample source code projects for accessing advanced protection interface functions by using alternate protection interface. Provided source code can be freely modified to suit your specific needs.
Sample applications (Visual Studio 2019 projects) are included in full featured version only and installed in \pcgi, \pcgi\net and \pcgi\netcore folders.
The following sample projects are currently available:
- altpcgi_cpp_sample
Sample C/C++ console application which demonstrates usage of alternate protection interface.
Included header file (altpcgi.h) contains all required alternate protection interface definitions.
- altpcgi_go_sample
Sample Go application which demonstrates usage of alternate protection interface in combination with C code.
Included header file (altpcgi.h) contains all required alternate protection interface definitions.
- altpcgi_csharp_sample
Sample C# .NET Framework console application which demonstrates usage of alternate protection interface.
Sample class (AltPcgi.cs) for accessing all advanced protection interface functions via alternate protection interface implementation is included in this sample.
- altpcgi_wpf_csharp_sample
Sample C# WPF .NET Framework application which demonstrates usage of alternate protection interface and includes usage of customized activation dialog.
Sample class (AltPcgi.cs) for accessing all advanced protection interface functions via alternate protection interface implementation is included in this sample.
- altpcgi_netcore_csharp_sample
Sample C# .NET Core and .NET 5 (or later) console application which demonstrates usage of alternate protection interface.
Sample class (AltPcgi.cs) for accessing all advanced protection interface functions via alternate protection interface implementation is included in this sample.
- altpcgi_vbnet_sample
Sample VB.NET .NET Framework console application which demonstrates usage of alternate protection interface.
Sample class (AltPcgi.vb) for accessing all advanced protection interface functions via alternate protection interface implementation is included in this sample.