Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Volume Serial Number
Message
From
07/12/2005 11:01:45
 
 
To
07/12/2005 10:29:30
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01075727
Message ID:
01075748
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform