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

Вниз

Как увидеть все процессы запущенные всеми прогами?   Найти похожие ветки 

 
Art   (2001-10-31 12:17) [0]

Как мне сделать так,что бы моя прога могла видеть все запущенные процессы,напишите код.


 
Виктор Щербаков ©   (2001-10-31 13:51) [1]

procedure GetProcessList(List: TStrings);
var
I: Integer;
hSnapshoot: THandle;
pe32: TProcessEntry32;
begin
List.Clear;
hSnapshoot := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);

if (hSnapshoot = 0) then
Exit;
pe32.dwSize := SizeOf(TProcessEntry32);
if (Process32First(hSnapshoot, pe32)) then
repeat
I := List.Add(Format("%s", [pe32.szExeFile]));
List.Objects[I] := Pointer(pe32.th32ProcessID);
until not Process32Next(hSnapshoot, pe32);

CloseHandle (hSnapshoot);
end;



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

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

Наверх




Память: 0.46 MB
Время: 0.012 c
1-22008
Alligator
2001-12-17 11:46
2002.01.08
HELP!!!


1-22265
Ser_Kham1
2001-12-17 16:10
2002.01.08
ListBox


3-21979
Maxman
2001-12-06 13:21
2002.01.08
DBTreeView


14-22367
Nest
2001-11-08 14:56
2002.01.08
Куда пойти учиться?


1-22083
DeNNiss
2001-12-19 12:06
2002.01.08
Помогите пожалуйста!