Jun 11, 2002 1 #2 MKuiper Programmer Jan 29, 2002 364 NL #include <windows.h> ... char Drive[] = "C:\\"; // Must point to root of drive char Label[MAX_PATH]; DWORD dwDontNeedThis; if ( !GetVolumeInformation ( Drive, Label, sizeof ( Label ), NULL, &dwDontNeedThis, &dwDontNeedThis, NULL, 0 )) { // Something went wrong, call GetLastError ( ) // to find out what } else { // Label contains the volume label } Marcel Upvote 0 Downvote
#include <windows.h> ... char Drive[] = "C:\\"; // Must point to root of drive char Label[MAX_PATH]; DWORD dwDontNeedThis; if ( !GetVolumeInformation ( Drive, Label, sizeof ( Label ), NULL, &dwDontNeedThis, &dwDontNeedThis, NULL, 0 )) { // Something went wrong, call GetLastError ( ) // to find out what } else { // Label contains the volume label } Marcel
Jun 11, 2002 Thread starter #3 vlitzer Programmer Apr 30, 2002 31 AR exelent!!! that was what i really need.. thanks a lot! Upvote 0 Downvote