..msdn Add comment W32 Constants Translate this page
Retrieves information about a file system and volume whose root directory is specified.|
LPCTSTR lpRootPathName, // root directory
LPTSTR lpVolumeNameBuffer, // volume name buffer
DWORD nVolumeNameSize, // length of name buffer
LPDWORD lpVolumeSerialNumber, // volume serial number
LPDWORD lpMaximumComponentLength, // maximum file name length
LPDWORD lpFileSystemFlags, // file system options
LPTSTR lpFileSystemNameBuffer, // file system name buffer
DWORD nFileSystemNameSize // length of file system name buffer
DECLARE SHORT GetVolumeInformation IN kernel32;
STRING @ lpVolumeNameBuffer,;
INTEGER @ lpVolumeSerialNumber,;
INTEGER @ lpMaximumComponentLength,;
INTEGER @ lpFlags,;
STRING @ lpFileSystemNameBuffer,;
[in] Pointer to a string that contains the root directory of the volume to be described.
[out] Pointer to a buffer that receives the name of the specified volume.
[in] Specifies the length, in TCHARs, of the volume name buffer.
[out] Pointer to a variable that receives the volume serial number.
[out] Pointer to a variable that receives the maximum length, in TCHARs, of a file name component supported by the specified file system.
[out] Pointer to a variable that receives flags associated with the specified file system.
[out] Pointer to a buffer that receives the name of the file system (such as FAT or NTFS).
[in] Specifies the length, in TCHARs, of the file system name buffer.
|If all the requested information is retrieved, the return value is nonzero.|
|If you are attempting to obtain information about a floppy drive that does not have a floppy disk or a CD-ROM drive that does not have a compact disc, the system displays a message box asking the user to insert a floppy disk or a compact disc, respectively. To prevent the system from displaying this message box, call the function with SEM_FAILCRITICALERRORS.|
With this function you can check "no-disk" status of a floppy drive or CD-ROM drive, and long filenames support on a volume.
|Word Index links for the GetVolumeInformation :|
|Translate this page:|
Visited in last 7 days: 44
|Created: ||2001-08-10 12:00:00|
|Modified: ||2002-01-26 11:51:00|
||User Contributed Notes:
|Danilo Freire | 2005-06-27 18:11:54|
|It doesn΄t work under windows98. How may I run it under windows 98 ?|
|184.108.40.206 | 2006-03-25 15:19:10|
|when i run it with deplhi it work|
but in foxpro
Copyright © 2001-2017
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.6.37), the Open Source standard SQL database,
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.