Essaye ShellExecute, c pas mal non plus :
HINSTANCE ShellExecute(
HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
avec
lpOperation = "open"
lpFile = "toto.exe"
lpParamaters ="foo bar"
lpDirectory = "c:\temp"
nShowCmd =
{
SW_HIDE, SW_MAXIMIZE, SW_MINIMIZE, SW_RESTORE,
SW_SHOW ,
SW_SHOWDEFAULT ,SW_SHOWMAXIMIZED ,
SW_SHOWMINIMIZED ,
SW_SHOWMINNOACTIVE ,SW_SHOWNOACTIVATE ,SW_SHOWNORMAL }