Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2000 vs Me/98/95
Message
 
À
29/08/2001 01:26:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00550160
Message ID:
00550214
Vues:
15
>DECLARE INTEGER GetVolumeInformation In WIN32API ;
>STRING@, STRING@, LONG,LONG@, LONG@,LONG@,STRING@,LONG
>
>LOCAL cnn, cPW, cString
>cnn=0
>pc1 = sys(5)+"\"+chr(0) &&"C:\"+CHR(0)
>pc2 = SPACE(100)+CHR(0)
>pn3 = 100
>pn4 = 0
>pn5 = 0
>pn6 = 0.0000
>pc7 = SPACE(100)+CHR(0)
>pn8 = 100
>bb=GetVolumeInformation(@pc1,@pc2,pn3,@pn4,@pn5,@pn6,@pc7,pn8)
>---------------------------------------------------------------
>I use the above code to get some information about the user system. Specifically I am interested in "pn4" which is the hard drive serial number.
>I code "pc1" as you see above so I get the "pn4" of the dirve the data is on when going accross a network.
>This approach works very well when the computers are Win2000Pro but when they are WinMe or Win98 "pn4" returns "0" when reading accross a network.
>Any ideas how I can win this battle?

Getting remote drive serial numbers fails under Win9x and, apparently, Win Me. See MS KB article Q234741 for a fix.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform