Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.011 c
3-98951
viper
2002-12-09 16:51
2002.12.30
Вход под паролем!


14-99259
ga_alx
2002-11-28 05:46
2002.12.30
Помогите создать схемный редактор


14-99359
mike123
2002-11-29 17:46
2002.12.30
как апустить приложение kylix


3-98959
Кузя
2002-12-09 12:06
2002.12.30
Помогите найти ошибку при вставке данных в базу (SQL)


14-99277
MaximatorVeter
2002-12-05 17:10
2002.12.30
Черные полосы в жизни.




   Наверх