Witam.
Problemik jak w temacie, mam taki kod na win9x działa bez problemu może ktoś wie którą z funkcji trzeba zmienić aby zadziałało na XP?
function TFmain.CheckAp(exepath : string) : boolean;
var
pe: TProcessEntry32;
h: THandle;
test,running: boolean;
path : string;
begin
result := False;
running := False;
h := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
try
pe.dwSize := SizeOf(TProcessEntry32);
test := Process32First(h,pe);
while test do
begin
path := lowercase(pe.szExeFile);
if path = lowercase(exepath) then
begin
running := true;
Break;
end;
test := Process32Next(h,pe);
end;
finally
CloseHandle(h);
if running = true then result := True;
end;
end;