In my build system, I’m trying to invoke WinLicense.exe from my own application using the CreateProcess() API but Themida displays the GUI

<< Click to Display Table of Contents >>

Navigation:  Themida > FAQ > General >

In my build system, I’m trying to invoke WinLicense.exe from my own application using the CreateProcess() API but Themida displays the GUI

Try calling the CreateProcess API with the first parameter “lpApplicationName” as NULL and put Themida.exe as part of the “lpCommandLine” parameter. Example:

 

CreateProcessA(NULL, (char*)protect_cmdline.str().c_str(), 0, 0, TRUE, NORMAL_PRIORITY_CLASS | CREATE_NO_WINDOW, 0, 0, &info, &processInfo);