Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading Disk Serial Number of NTFS drive
Message
De
31/12/1999 07:05:18
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00310850
Message ID:
00310860
Vues:
34
>>I need to read Disk Serial Number or some other unique
>>number of a NTFS disk for copy protection. It is allowed
>>that this number may change when disk is re-formatted or
>>re-created.
>>
>>However, it seems that Get Volume Information API call
>>will not return such information for NTSF disks.
>>
>>Is it possible to get this for NTFS disks ?
>
>Hi Andrus,
>
>I think both are dealing with similar things. :)
>
>I also have no solution to get this, I asked this before and get replies but we couldn't fix this. Tell me if you succeded.
>
>Regards,


Dimension aDriveTypes[6]
aDriveTypes[1] = "Unknown"
aDriveTypes[2] = "Removable"
aDriveTypes[3] = "Fixed"
aDriveTypes[4] = "Network"
aDriveTypes[5] = "CD-ROM"
aDriveTypes[6] = "RAM Disk"
oFS = CREATEOBJECT('Scripting.FileSystemObject')
For each oDrive in oFS.Drives
    ? "Drive :"+oDrive.DriveLetter +" Type - " + aDriveTypes[oDrive.DriveType+1]
    If oDrive.isReady
        ?? " [Serial Number :" + transform(oDrive.SerialNumber)+"]"
    Endif
Endfor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform