Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know if a process is running ... ?
Message
 
À
05/05/2000 20:45:38
Fausto Garcia
Independent Developer
Lima, Pérou
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00366890
Message ID:
00367035
Vues:
28
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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform