Information générale
Catégorie:
Fonctions Windows API
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement