Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HDD Serial number
Message
 
À
31/08/1999 11:45:59
Martin Joncas
Foxprostudio.Com
Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00259700
Message ID:
00259790
Vues:
17
Download the CryptoAPI class from the files section for
encryption, and here is the code to get the drive serial #

DECLARE INTEGER GetVolumeInformation IN WIN32API AS GetVolInfo STRING@, STRING@, INTEGER, INTEGER@, INTEGER@, INTEGER@, STRING@, INTEGER

lpRoot = SYS(5) + '\'
lpVolumeBuffer = SPACE(256)
nVolumeNameSize = 256
lpSerialNumber = 0
lMaxLength = 256
lpSystemFlag = 0
lpSystemBuffer = SPACE(256)
nSystemNameSize = 256

nSuccess = GetVolInfo(@lpRoot, @lpVolumeBuffer, nVolumeNameSize, @lpSerialNumber, @lMaxLength, @lpSystemFlag, @lpSystemBuffer, nSystemNameSize)

cVolumeName = LEFT(ALLTRIM(lpVolumeBuffer),LEN(ALLTRIM(lpVolumeBuffer))-1)
cSerialNumber = ALLTRIM(STR(lpSerialNumber))


>Hello all,
>
>Do you no program, command or function to get serial number of the HardDrive?
>
>Also... a good Encryption function.
>
>Any suggest, comment, URL are welcome....
>
>Tkx.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform