|
Connaitre le système de fichier (FAT/NTFS) |
Iniciado por dev.win, 02,dic. 2004 10:45 - 1 respuesta |
| |
| | | |
|
| |
Publicado el 02,diciembre 2004 - 10:45 |
Bonjour, je cherche à connaitre depuis une appli WD le système de fichier (FAT/NTFS) utilisé sur les diques locales
cordialement |
| |
| |
| | | |
|
| | |
| |
Publicado el 02,diciembre 2004 - 12:18 |
Salut
Avec l'aide du site http://www.mentalis.org/apilist/apilist.php et de WDAPI, j'ai pu construire ce petit bout de code qui renvoie l'info demandée.
FunctionResult is boolean // C Type:BOOL lpVolumeNameBuffer is int // C Type:LPSTR, is a string address, you can also specify a string directly lpVolumeSerialNumber is int // C Type:LPDWORD lpMaximumComponentLength is int // C Type:LPDWORD lpFileSystemFlags is int // C Type:LPDWORD lpFileSystemNameBuffer is int // C Type:LPSTR, is a string address, you can also specify a string directly
sFileSystemNameBuffer est une chaîne ASCIIZ sur 255 lpFileSystemNameBuffer = &sFileSystemNameBuffer sVolumeNameBuffer est une chaîne ASCIIZ sur 255 lpVolumeNameBuffer = &sVolumeNameBuffer
Info(API("KERNEL32","GetVolumeInformationA","D:\",lpVolumeNameBuffer,255,lpVolumeSerialNumber,lpMaximumComponentLength,lpFileSystemFlags,lpFileSystemNameBuffer,255)) Info(sFileSystemNameBuffer) // affiche FAT32
Ciao http://wdgotcha.atspace.com |
| |
| |
| | | |
|
| | | | |
| | |
|