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

<< Click to Display Table of Contents >>

Navigation:  WinLicense > FAQ > General >

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

Try calling the CreateProcess API with the first parameter “lpApplicationName” as NULL and put WinLicense.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);