Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if process is running in Windows NT
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00877304
Message ID:
00877404
Vues:
5
CreateToolhelp32Snapshot works in ALL OSes except NT.

Link
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q175/0/30.asp&NoWebContent=1

wrote that for NT I must distribute psapi.dll and VDMDBG.DLL with my application and call PSAPI function EnumProcesses for this.
The C sample provided in this article is extremely complicated.

Is there any free VFP sample code for this ?

>The CreateToolhelp32Snapshot and other API functions you mentioned are for Win9*/Me OS.
>
>For Windows NT/XP/2000 use another set of API functions:
>CloseHandle
>EnumProcesses
>EnumProcessModules
>GetModuleBaseName
>GetModuleFileNameEx
>OpenProcess
>

>FoxPro sample code (members area):
>
>Enumerating Processes -- WinNT
>http://www.news2news.com/vfp/?example=162
>
>Enumerating Processes -- Win9*
>http://www.news2news.com/vfp/?example=164
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform