Tutorial für CreateProcess
-
Hallo,
kann mir jemand ein gutes Tutorial (aber bitte auf deutsch) für CreateProcess nennen?
Danke
-
Was verstehst du denn nicht und was hast du vor, damit zu machen - evtl. reicht ja auch ShellExecute
( http://msdn.microsoft.com/library/en-us/dllproc/base/createprocess.asp - ist englisch ich weiß)
-
Hallo,
ShellExecute hilft mir leider nicht, da ich warten muss bis der Process beendet wurde bevor ich weitermachen kann.
Die MSDN hab ich schon aber ist halt leider auf englisch.... Und da verliere ich schnell den Überblick wenn ich lese.
-
Bei ShellExecuteEx bekommst du auf Wunsch auch ein Prozess-Handle.
Handle to the newly started application. This member is set on return and is always NULL unless fMask is set to SEE_MASK_NOCLOSEPROCESS. Even if fMask is set to SEE_MASK_NOCLOSEPROCESS, hProcess will be NULL if no process was launched. For example, if a document to be launched is a URL and an instance of Microsoft Internet Explorer is already running, it will display the document. No new process is launched, and hProcess will be NULL.
NoteShellExecuteEx does not always return an hProcess, even if a process is launched as the result of the call. For example, an hProcess does not return when you use SEE_MASK_INVOKEIDLIST to invoke IContextMenu.
Aber zu CreateProcess ist doch sogar ein Beispiel drin: Creating Processes