I'm trying to set process name and process description of processes, that I launched by "Poco::Process::launch" function.
And I can't manage it. Is there a way to set it somehow?
I found that inside "Poco::Process::launch" you call "ProcessImpl::launchImpl", implementation depends on operating system family.
inside "ProcessImpl::launchImpl" for Windows you set structure this way:
Code: Select all
GetStartupInfoW(&startupInfo); // take defaults from current process
startupInfo.cb = sizeof(STARTUPINFOW);
startupInfo.lpReserved = NULL;
startupInfo.lpDesktop = NULL;
startupInfo.lpTitle = NULL;
startupInfo.dwFlags = STARTF_FORCEOFFFEEDBACK;
startupInfo.cbReserved2 = 0;
startupInfo.lpReserved2 = NULL;
BOOL rc = CreateProcessW(
NULL, // applicationName
NULL, // processAttributes
NULL, // threadAttributes
That is why, I guess, Title of creating process can't be set. Isn't it?
Also, for example, my host process was not created by "CreateProcess", but I should be able to set it's properties somehow?