Is there a way to get the names of all exe files that are
currently running in memory?
I used enumwindows and it only shows the WINDOWS that are
running - I want the actual processes that are running
The code below gives me an error of "No Entry Point" into the
psapi dll
Jim
[This message has been edited by Jim Seekamp (edited May 02, 2007).]
currently running in memory?
I used enumwindows and it only shows the WINDOWS that are
running - I want the actual processes that are running
The code below gives me an error of "No Entry Point" into the
psapi dll
Jim
Code:
#compile exe ''#include "d:\pbwin80\winapi\win32api.inc" Declare Function EnumProcesses Lib "PSAPI.DLL" ( _ ByRef lpidProcess As Long, _ ByVal cb As Long, _ ByRef cbNeeded As Long _ ) As Long function pbmain() as long dim processes???(1024) b$="" if enumprocesses(processes???,sizeof(processes???),cbneeded&) then cprocesses&=cbneeded&/4 for i&=1 to cprocesses& if processes???(i&)=0 then iterate for b$=b$+str$(processes???(i&))+chr$(13,10) next i& end if ''retval&=terminateprocess(hprocess???,uexitcode???) msgbox b$ end function
Comment