General information
Category:
Windows API functions
This work for 95/98/NT4/2000 (According to the docs :-)):
#define TH32CS_SNAPHEAPLIST 1
#define TH32CS_SNAPPROCESS 2
#define TH32CS_SNAPTHREAD 4
#define TH32CS_SNAPMODULE 8
typedef struct tagPROCESSENTRY32 {
DWORD dwSize;
DWORD cntUsage;
DWORD th32ProcessID;
DWORD th32DefaultHeapID;
DWORD th32ModuleID;
DWORD cntThreads;
DWORD th32ParentProcessID;
LONG pcPriClassBase;
DWORD dwFlags;
char szExeFile[MAX_PATH];
} PROCESSENTRY32;
declare integer CreateToolhelp32Snapshot in kernel32 integer nFlags, integer nProcessID
declare integer Process32First in kernel32 integer hSnapShot, string @PROCESSENTRY32
declare integer Process32Next in kernel32 integer hSnapShot, string @PROCESSENTRY32
I have used this in C/C++ but not in VFP but I don't think there's a problem. These API calls are from the tool help functions if you want to have a look at the other things you can do ie: enumerate threads/heap/modules.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only