I have a Windows program written in C (let's say, a launcher) and a javaFX-based application packed in *jar (a payload). What I want to do is to achieve something similar to how JetBrains's IntelliJ IDEA behaves. I mean, in the task manager we can see a process 'tree' or 'folder' like this:

However in my case I see two completely independent processes: the launcher.exe (only in the [Details] section) and a Java (TM) Platform SE binary in the [Processes] section (actually it's my payload).
I am using a CreateProcessW function to spawn my process. In my code:
STARTUPINFOW info = { sizeof(info) };
PROCESS_INFORMATION processInfo;
CreateProcessW(L"C:\\Path\\To\\java.exe", L" -jar C:\\Path\\To\\payload.jar",
NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &info, &processInfo);
How can I make my java application look more "native" in the Task Manager? I am using jdk1.8.0_172. Thanks for help.
