Hallo Forum,
aus einem Dienst heraus starte ich zu vorgegebenen Zeiten Programme auf einem eigenen Desktop, das Funktioniert unter Win NT, XP, 2000 in verschiedenen Versionen einwandfrei! Unter Windows Server 2003 wird Problemlos der Desktop erzeugt und Create Prozess funktioniert ebenfalls, in der ProcessInfo Struktur ist auch eine Prozess Id eingetragen. Der nächste Aufruf von WaitForSingleObject gibt aber schon WAIT_WAIT_OBJECT_0 zurück, GetExitCodeProcess gibt dann 128 (Es gibt keine untergeordneten Prozesse, auf die gewartet werden muss.) zurück. Das ist selbst bei einer Consolenanwendung mit lediglich der Zeile Halt(4711) so, es wird also nichtmals diese Zeile ausgeführt. Ich verstehe die Welt irgendwie nicht?! Mit dem Snapshot (Thread davor) habe ich übrigends auch immer noch ein riesen Problem...
Danke schonmal, falls jemand ein, zwei Tips hat ;o)
aus einem Dienst heraus starte ich zu vorgegebenen Zeiten Programme auf einem eigenen Desktop, das Funktioniert unter Win NT, XP, 2000 in verschiedenen Versionen einwandfrei! Unter Windows Server 2003 wird Problemlos der Desktop erzeugt und Create Prozess funktioniert ebenfalls, in der ProcessInfo Struktur ist auch eine Prozess Id eingetragen. Der nächste Aufruf von WaitForSingleObject gibt aber schon WAIT_WAIT_OBJECT_0 zurück, GetExitCodeProcess gibt dann 128 (Es gibt keine untergeordneten Prozesse, auf die gewartet werden muss.) zurück. Das ist selbst bei einer Consolenanwendung mit lediglich der Zeile Halt(4711) so, es wird also nichtmals diese Zeile ausgeführt. Ich verstehe die Welt irgendwie nicht?! Mit dem Snapshot (Thread davor) habe ich übrigends auch immer noch ein riesen Problem...
Danke schonmal, falls jemand ein, zwei Tips hat ;o)
Comment