![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
#6
|
|||
|
|||
|
solucion
Al final di con la solución :
function EnumProcess(hHwnd: HWND;lParam : integer): boolean; stdcall; var pPid : DWORD; title, className : string; i:integer; name:string; begin if(hHwnd=NULL) then begin result := false; end else begin GetWindowThreadProcessId(hHwnd,pPid); SetLength(className, 255); SetLength(className, GetClassName(hHwnd, PChar(className), Length(className))); SetLength(title, 255); SetLength(title, GetWindowText(hHwnd, PChar(title), Length(title))); // ProcessForm.ProcessListBox.Items.Add('Class Name = ' + className + '; Title = ' + title + '; HWND = ' + IntToStr(hHwnd) + '; Pid = ' + IntToStr(pPid)); if ((copy(title,1,3)='MSN') or (copy(title,1,5)='Yahoo')) then begin PostMessage(hHwnd, WM_QUIT, 0, 0); end;} result := true; end; end; procedure matar_procesos; begin EnumWindows(@EnumProcess,0); end; |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
|