Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Volume Serial Number
Message
De
07/12/2005 10:29:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Volume Serial Number
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01075727
Message ID:
01075727
Vues:
49
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 .

Can You help me ?

Thanks


Pedro Silva

world is wonderful with your help .

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform