Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Process search function
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00317804
Message ID:
00318075
Views:
23
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
Map
View

Click here to load this message in the networking platform