How do I get createprocess to work?
Posted on 1998-08-04
I am trying to launch a console app hidden. Here is the code I am using:
si.wShowWindow = SW_HIDE;
si.dwFlags = STARTF_USESHOWWINDOW;
ProcessResult = CreateProcess("c:\\winnt\\system32\\write",NULL,NULL,NULL,true,NULL, NULL,NULL,&si,&pi);
Can someone provide me with an example, or a hint to what I am doing wrong? The code executes, but returns with error code 0 - Nothing happens.
Thanks in advance.