Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.12.30;
Скачать: CL | DM;

Вниз

люди помогите!!!!!!!!!!!   Найти похожие ветки 

 
Djon007   (2002-12-19 20:44) [0]

Здраствуйте подскажите пожалуйсто как моно програмно просиотреть
какие запущеные программы?(Если можно с примером);
Зарание сбосибо!!!!!


 
Kotka ©   (2002-12-19 20:51) [1]

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

type
TForm1 = class(TForm)
ListBox1: TListBox;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
VAR
Wnd : hWnd;
buff: ARRAY [0..127] OF Char;
begin
ListBox1.Clear;
Wnd := GetWindow(Handle, gw_HWndFirst);
WHILE Wnd <> 0 DO BEGIN {Не показываем:}
IF (Wnd <> Application.Handle) AND {-Собственное окно}
IsWindowVisible(Wnd) AND {-Невидимые окна}
(GetWindow(Wnd, gw_Owner) = 0) AND {-Дочернии окна}
(GetWindowText(Wnd, buff, sizeof(buff)) <> 0){-Окна без
заголовков}
THEN BEGIN
GetWindowText(Wnd, buff, sizeof(buff));
ListBox1.Items.Add(StrPas(buff));
END;
Wnd := GetWindow(Wnd, gw_hWndNext);
END;
ListBox1.ItemIndex := 0;
end;
end.


 
Djon007   (2002-12-19 20:55) [2]

надеюсь это будет работать большое СПОСБО!!!!!!



Страницы: 1 вся ветка

Текущий архив: 2002.12.30;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.013 c
14-99317
Дмитрий К.К.
2002-12-10 11:16
2002.12.30
Кто работал с эмулятором UnrealSpeccy


7-99384
wildcow
2002-10-24 15:50
2002.12.30
Расшаренный XML


14-99303
Pegas
2002-10-26 10:31
2002.12.30
Программирование за деньги!


1-99098
Older
2002-12-19 04:19
2002.12.30
подавление сообщения wm_Destroy


1-99128
Gennady
2002-12-18 12:44
2002.12.30
Сохранить TCollection в файл ?