#elif -> #else
[wine/multimedia.git] / libtest / volinfo.c
blob65baf1305510a94f37e9a782a373627879893d66
1 /*
2 * This test program was copied from documentation/cdrom-label
3 */
4 #include <windows.h>
5 #include <stdio.h>
6 #include <string.h> /* for strcat() */
8 int WinMain(int argc,char **argv[])
10 char drive, root[]="C:\\", label[1002], fsname[1002];
11 DWORD serial, flags, filenamelen, labellen = 1000, fsnamelen = 1000;
13 printf("Drive Serial Flags Filename-Length "
14 "Label Fsname\n");
15 for (drive = 'C'; drive <= 'Z'; drive++)
17 root[0] = drive;
18 if (GetVolumeInformation(root,label,labellen,&serial,
19 &filenamelen,&flags,fsname,fsnamelen))
21 strcat(label,"\""); strcat (fsname,"\"");
22 printf("%c:\\ 0x%08lx 0x%08lx %15ld \"%-20s \"%-20s\n",
23 drive, (long) serial, (long) flags, (long) filenamelen,
24 label, fsname);
27 return 0;