Ver Mensaje Individual
  #7  
Antiguo 12-05-2016
Ramsay Ramsay is offline
Miembro
NULL
 
Registrado: ene 2016
Posts: 104
Reputación: 11
Ramsay Va por buen camino
Ok , estoy tratando de tener el nombre de la ventana desde el pid del proceso , pero me dice el nombre de la ventana incorrecto.

El codigo :

Código Delphi [-]
    Handle := OpenProcess(PROCESS_QUERY_INFORMATION or PROCESS_VM_READ, False,
      pid);
    SetLength(title, 255);
    SetLength(title, GetWindowText(Handle, PChar(title), Length(title)));
    CloseHandle(Handle);

¿ Porque no funciona ?

PD : Uso Delphi XE2.
Responder Con Cita