Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Process search function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00317804
Message ID:
00318075
Vues:
22
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
Fil
Voir

Click here to load this message in the networking platform