Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dll
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Re: Dll
Divers
Thread ID:
00894372
Message ID:
00897351
Vues:
34
>gracias Martin por contestar
>las dll que estoy utilizando son diskserial, controla el numero serial del disco rigido, lo cual puede ser antigua

Pablo, que información quieres obtener del Disco Rígido, a lo mejor se puede hacer sin necesidad de una dll, sino usando WMI (con Visual FoxPro)?

Por ejemplo:
local loWMIService, loDrives, loDrive

loWMIService	= GetObject("winmgmts:\\.\root\cimv2")
loDrives	= loWMIService.ExecQuery("Select * from Win32_LogicalDisk",,48)

For Each loDrive in loDrives
   with loDrive
    ? "VolumeName: ", .VolumeName
    ? "VolumeSerialNumber: ", .VolumeSerialNumber
   endwith
Next
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform