Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if process is running in Windows NT
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00877304
Message ID:
00877404
Views:
6
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform