Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Translating WSH sample
Message
 
 
À
27/07/2001 10:29:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00536302
Message ID:
00536411
Vues:
9
*** Updated ***

>
>Please, what does "ADSI" and "WMI" mean?
>
>Hilmar.

Active Directory Services Interface (ADSI) - wrapper to WNet... WinAPI functions as well as some system information stuff (users, groups, printers, etc.)
Windows Management Instrumentation (WMI) - wrapper to a large number of WMI classes that objectify very nearly everything on your system (BIOS, Hard drives, network adapters, I/O ports, etc.)

Note: The GetObject function was enhanced/corrected in VFP 7 to handle the COM interface (IMoniker) that is needed to instantiate the WMI objects.
owmi = getobject('winmgmts:')
Previous to that, you had to use the following syntax:
oloc = createobject('SWbemScripting.SWbemLocator'
owmi = oloc.ConnectServer()
You can find out more information by searching MSDN (if not locally then http://msdn.microsoft.com/library/default.asp.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform