salut tlm,
J'utilise SW_HIDE dans createprocess pour executer une application en hidden,
ça fonctionne parfaitement pour notepad, paint, et d'autres app, mais pas pour calc, et aussi quelque app delphi,
mon code ressemble à ça:
si.cb := SizeOf(si);
si.dwFlags := STARTF_USESHOWWINDOW;
si.wShowWindow := SW_HIDE;
si pour startupinfo
je crois que le problème vient de là:
source: http://msdn2.microsoft.com/en-us/lib...31(VS.85).aspxwShowWindow
If dwFlags specifies STARTF_USESHOWWINDOW, this member can be any of the SW_ constants defined in Winuser.h. Otherwise, this member is ignored.
For GUI processes, wShowWindow specifies the default value the first time ShowWindow is called. The nCmdShow parameter of ShowWindow is ignored. In subsequent calls to ShowWindow, the wShowWindow member is used if the nCmdShow parameter of ShowWindow is set to SW_SHOWDEFAULT.
j'ai raison? comment régler mon problème?
ps: je dois utiliser a tout prix createprocess, je sais que shellexecute peux lancer aussi des app en hidden, mais je lance directement en mémoire, donc me faut utiliser createprocess,
un énorme merci à l'avance à ceux qui m'aideront!
Marc
Partager