declare integer EnumProcesses in psapi.dll string@, integer, integer@ lparray = replicate(chr(0),2048) lnsizeneeded = 0 if EnumProcesses(@lparray,len(lparray),@lnsizeneeded) <> 0 then * lnsizeneeded is the size (in bytes) of the information returned in lparray; truncate if necessary lparray = left(lparray,lnsizeneeded) lctmp = space(0) for lxx = 1 to lnsizeneeded step 4 lctmp = substr(lparray,lxx,4) * lctmp is a character reprentation of the DWORD representing the Process ID. It needs to be converted to decimal. ? 'PID is ' + transform(asc(right(lctmp,1))*(256^3)+; asc(substr(lctmp,3,1))*(256^2)+; asc(substr(lctmp,2,1))*(256)+asc(left(lctmp,1))) endfor endifHTH.