Initialize lpdwNeeded.
[wine/multimedia.git] / documentation / cdrom-labels
bloba2f2bca8f71ae2fc5f56918b9fe7245e07344d51
1 *** VOLUME LABEL
3 If a program depends on the correct label and/or serial number for the
4 CD-Rom, you can use the following command to extract that information:
6       dd if=<your cdrom device> bs=1 skip=32808 count=32
8 You need read access to the device, so perhaps you have to do it as root.
9 Put the resulting string (without trailing blanks) into your
10 wine.ini/.winerc file like:
11 Label=<the label>
13 *** SERIAL NUMBER
15 [FIXME: if someone knows how to get the serial number in Linux, please
16         put this information here].
18 If you have access to a Win32 system and C-compiler, you can compile the
19 following program to extract this information:
21 ------------------------- begin volinfo.c ---------------------------
22 #include <windows.h>
23 #include <stdio.h>
25 int main(int argc,char **argv[])
27     char  drive, root[]="C:\\", label[1002], fsname[1002];
28     DWORD serial, flags, filenamelen, labellen = 1000, fsnamelen = 1000;
30     printf("Drive Serial     Flags      Filename-Length "
31            "Label                 Fsname\n");
32     for (drive = 'C'; drive <= 'Z'; drive++)
33     {
34         root[0] = drive;
35         if (GetVolumeInformationA(root,label,labellen,&serial,
36                                   &filenamelen,&flags,fsname,fsnamelen))
37         {
38             strcat(label,"\""); strcat (fsname,"\"");
39             printf("%c:\\   0x%08lx 0x%08lx %15ld \"%-20s \"%-20s\n",
40                    drive, (long) serial, (long) flags, (long) filenamelen,
41                    label, fsname);
42         }
43     }
44     return 0;
47 Probably you can get that information also from the File Manager in
48 Windows.
50 ------------------------- end volinfo.c -----------------------------
53 *** DRIVE LETTER
55 Some installed programs only look for the CD-Rom in the drive letter
56 that the CD-Rom had when the program was installed. In this case, make
57 sure you use the correct letter, especially if you installed the
58 program under Windows and are now trying to run it in Wine.
59 Some programs reportedly store the drive letter in their .INI file,
60 so you might look there and try to change it.