Ver Mensaje Individual
  #26  
Antiguo 08-08-2007
Avatar de Gabo
[Gabo] Gabo is offline
Miembro Premium
 
Registrado: mar 2007
Ubicación: Murcia (España)
Posts: 684
Reputación: 20
Gabo Va por buen camino
Con ShellExecuteEx sería así:

Código Delphi [-]
    
    SHELLEXECUTEINFO informacion;
    ZeroMemory(&informacion, sizeof(SHELLEXECUTEINFO));
    informacion.cbSize = sizeof(SHELLEXECUTEINFO);
    informacion.fMask = SEE_MASK_NOCLOSEPROCESS;
    informacion.lpVerb = "open";                           
    informacion.lpFile = "calc.exe";
    informacion.nShow = SW_SHOWMAXIMIZED;
    ShellExecuteEx(&informacion);

Y después, preguntar con WaitForSingleObject como el código de cHackAll...
Responder Con Cita