Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetVolumeInformation
Message
De
10/11/1997 12:04:54
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
GetVolumeInformation
Divers
Thread ID:
00059297
Message ID:
00059297
Vues:
57
Help,

I'm trying to use the GetVolumeInformation call in KERNAL32.
But it only Partially succeeds. I think that I am not passing
parameters correctly. Here's my code

BEGINCODE

DECLARE Integer GetVolumeInformation in Win32api;
string, string, integer, integer @, integer @,;
integer @, string, integer
WITH THIS
IF TYPE('tcRootPathName') # "L"
.RootPathName = tcRootPathName
ENDIF
lcVolumeName = .VolumeName
liVolumeNameSize = Len(.VolumeName)
liVolSerialNumber = .VolSerialNumber
liMaxCompLen = .MaxCompLen
liFileSysFlags = .FileSysFlags
lcFileSysName = .FileSysName
liFileSysNameSize = Len(.FileSysName)
llSuccess = GetVolumeInformation(.RootPathName,lcVolumeName,liVolumeNameSize,;
@liVolSerialNumber,@liMaxCompLen,@liFileSysFlags,;
lcFileSysName,liFileSysNameSize)
ENDCODE

lcVolumeName and lcFileSysName Return ---> ""
liVolumeNameSize and liFileSysName Size Return ---> 0
llSuccess Returns ---> 0 indicating (BOOL FALSE) Failure
Terry Rooks
Software Systems Architect
Microsoft Certified Solution Developer.Net

If at first you don't succeed, then skydiving definitely isn't for you.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform