char cmdLine[512];
strcpy (cmdLine, "c:\windows\notepad.exe" );
STARTUPINFO StartupInfo;
PROCESS_INFORMATION ProcessInformation;
DWORD ExitCode;
StartupInfo.cb =sizeof(STARTUPINFO);
StartupInfo.cbReserved2 =0;
StartupInfo.dwFillAttribute=0;
StartupInfo.dwFlags =0;
StartupInfo.dwX =CW_USEDEFAULT;
StartupInfo.dwXCountChars=0;
StartupInfo.dwXSize =CW_USEDEFAULT;
StartupInfo.dwY =CW_USEDEFAULT;
StartupInfo.dwYCountChars=0;
StartupInfo.dwYSize =CW_USEDEFAULT;
StartupInfo.hStdError =NULL;
StartupInfo.hStdInput =NULL;
StartupInfo.hStdOutput =NULL;
StartupInfo.lpDesktop =NULL;
StartupInfo.lpReserved =0;
StartupInfo.lpReserved2 =NULL;
StartupInfo.lpTitle =NULL;
StartupInfo.wShowWindow =SW_SHOWDEFAULT;
BOOL bRet;
bRet = CreateProcess(NULL, cmdLine, NULL, NULL, FALSE,
CREATE_NEW_CONSOLE|NORMAL_PRIORITY_CLASS,
NULL, NULL, &StartupInfo,
&ProcessInformation);
voila, mais en fait, t débutant dans le langage C, c ça ?
[edtdd]--Message édité par El_Gringo--[/edtdd]