Hi,
I need to get the volume serial number.
I found sometime good with the "GetVolumeInformation" in WIN32API (for VisualFox). But I had to get this information in 3 application written in FoxPro 2.6a.
I try with RegFn() - Foxtools with always error message.
The syntax for VFP is :
Declare Integer GetVolumeInformation in WIN32API ;
String @lpRootPathName, ;
String @lpVolumeNameBuffer, ;
Integer nVolumeNameSize, ;
Integer @lpVolumeSerialNumber, ;
Integer @lpMaximumComponentLength, ;
Integer @lpFileSystemFlags, ;
String @lpFileSystemNameBuffer, ;
Integer nFileSystemNameSize
*** Variable declaration
cString = ""
cRoot = "C:\"
cVolumeName = Space(256)
nVolumeNameSize = 256
nVolumeSerial = 0
nMaxCompLength = 256
nFileSysFlag = 0
cFileSysNameBuf = Space(256)
nFileSysNameSize= 256
*** And Call <GetVolumeInformation>
nReturn = GetVolumeInformation(@cRoot, @cVolumeName,nVolumeNameSize, @nVolumeSerial,@nMaxCompLength,@nFileSysFlag,@cFileSysNameBuf,nFileSysNameSize)
Can somebody help me ???
I really appreciate and sorry for my bad english.
I need to get the volume serial number.
I found sometime good with the "GetVolumeInformation" in WIN32API (for VisualFox). But I had to get this information in 3 application written in FoxPro 2.6a.
I try with RegFn() - Foxtools with always error message.
The syntax for VFP is :
Declare Integer GetVolumeInformation in WIN32API ;
String @lpRootPathName, ;
String @lpVolumeNameBuffer, ;
Integer nVolumeNameSize, ;
Integer @lpVolumeSerialNumber, ;
Integer @lpMaximumComponentLength, ;
Integer @lpFileSystemFlags, ;
String @lpFileSystemNameBuffer, ;
Integer nFileSystemNameSize
*** Variable declaration
cString = ""
cRoot = "C:\"
cVolumeName = Space(256)
nVolumeNameSize = 256
nVolumeSerial = 0
nMaxCompLength = 256
nFileSysFlag = 0
cFileSysNameBuf = Space(256)
nFileSysNameSize= 256
*** And Call <GetVolumeInformation>
nReturn = GetVolumeInformation(@cRoot, @cVolumeName,nVolumeNameSize, @nVolumeSerial,@nMaxCompLength,@nFileSysFlag,@cFileSysNameBuf,nFileSysNameSize)
Can somebody help me ???
I really appreciate and sorry for my bad english.