Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find a running process
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows 2000
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00962019
Message ID:
00962714
Vues:
10
FoxPro code samples (require membership):

Enumerating Processes -- WinNT
http://www.news2news.com/vfp/?example=162
API calls used:
CloseHandle
EnumProcesses
EnumProcessModules
GetLastError
GetModuleBaseName
GetModuleFileNameEx
OpenProcess

Enumerating Processes -- Win9*
http://www.news2news.com/vfp/?example=164
API calls used:
CloseHandle
CreateToolhelp32Snapshot
Process32First
Process32Next

Terminating all running applications from a VFP program
http://www.news2news.com/vfp/?example=243
API calls used:
CloseHandle
GetActiveWindow
GetWindow
GetWindowText
GetWindowTextLength
GetWindowThreadProcessId
IsWindow
IsWindowVisible
OpenProcess
PostMessage
TerminateProcess
The code enumerates not running processes but windows and then obtains process handle for each window found.

Terminating VFP application using the FatalAppExit
http://www.news2news.com/vfp/?example=229
API calls used:
FatalAppExit
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform