E
E
evgenyt20002020-04-29 19:53:21
C++ / C#
evgenyt2000, 2020-04-29 19:53:21

How to pass as a string to open a process?

Good afternoon!

CreateProcess(NULL,(LPTSTR)"E:\\sp\\Debug\\slave.exe ",NULL,NULL,FALSE,CREATE_NEW_CONSOLE,NULL,NULL,&si,&pi);
    cout << "Master PID number  : " << pi.dwProcessId << endl;


How to convert to a string so that the created application receives the PID through the console?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-04-29
@firedragon

Apparently so

E:\\sp\\Debug\\slave.exe -a 42

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question