Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Volume Serial Number
Message
De
07/12/2005 11:01:45
 
 
À
07/12/2005 10:29:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01075727
Message ID:
01075748
Vues:
19
>Hi
>
>i use this
>
>
>
>
>  #DEFINE MAX_FILENAME_LEN 256
>  LOCAL ser,i,j,s,s2
>  DECLARE integer GetVolumeInformation in Win32API;
>   string lpRootPathName,;
>   string lpVolumeNameBuffer,;
>   integer nVolumeNameSize,;
>   integer @lpVolumeSerialNumber,;
>   integer @lpMaximumComponentLength,;
>   integer @lpFileSystemFlags,;
>   string lpFileSystemNameBuffer ,;
>   integer nFileSystemNameSize
>
>  STORE 0 to ser,i,j
>  STORE space(128) to s,s2
>
>
>x=GetVolumeInformation(drive,s,MAX_FILENAME_LEN,@ser,@i,@j,s2,MAX_FILENAME_LEN)
>
>
>
>i want know if the end user can modify VolumeSerialNumber , without format c: ? Can end user , use regedit to modify VolumeSerialNumber ?
>
>I can modify VolumeSerialNumber with regedit , but when i see in cmd ( MS-Dos) with vol command , i see the old VolumeSerialNumber .
>


volume serial number is stored on HDD volume and the only way to change it is too format it.
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform