Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if a process is running ... ?
Message
 
To
05/05/2000 20:45:38
Fausto Garcia
Independent Developer
Lima, Peru
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00366890
Message ID:
00367035
Views:
29
Not easy unless you're running Windows 2000.

In Windows 2000 or any Windows operating system that has the WMI (Windows Management Instrumentation) tools installed you can do:
o = GetObject("winmgmts://")
oInstances = o.INstancesOf("Win32_Process")
FOR each process in oInstances
   ? Process.Handle, Process.Name
ENDFOR
I'm not sure of platform support and where WIM installs at this point - I know it works in Win2k, but I think Win98 SR2 may also include this stuff.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform