Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dll
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Re: Dll
Miscellaneous
Thread ID:
00894372
Message ID:
00897351
Views:
35
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform