Added window text to the output generated by walk wnd debugger
[wine/multimedia.git] / documentation / wine.man
blobbf57e1c4c5ce9fdc03d72c88f16656cb4c6f98b6
1 .\" -*- nroff -*-
2 .TH WINE 1 "July 8, 1998" "Version 980628" "Windows Emulator"
3 .SH NAME
4 wine \- run Windows programs under Unix
5 .SH SYNOPSIS
6 .B wine
8 .I options
10 .I program_name
12 .I program_name...
14 .SH DESCRIPTION
15 .B wine
16 invokes the Windows emulator.
17 .PP
18 .B wine 
19 currently runs a growing list of applications written for both Win3.1 and 
20 Win95.  Older, simpler applications work better than newer, more complex 
21 ones.  A large percentage of the API has been implemented, although there
22 are still several major pieces of work left to do.
23 .SH REQUIREMENTS
24 At present, 
25 .B wine
26 will run under any Linux kernel more recent than 0.99.13, or
27 under recent releases of NetBSD/i386, FreeBSD and OpenBSD/i386.
28 .PP
29 The current support for multithreaded applications relies on the 
30 .B clone(2)
31 system call, which is currently available only on Linux systems running
32 libc6 (glibc2).
33 .PP
34 .B X
35 must be installed.  To use Wine's support for multithreaded applications,
36 your X libraries must be reetrant.  If you have libc6 (glibc2), or you 
37 compiled the libraries yourself, they were probably compiled with the 
38 reetrant option enabled.  
39 .PP
40 .B libXpm
41 must be installed.  If you're using Red Hat, the name of the package is
42 XFree86-devel.  The sources may be FTP'd from ftp.Xfree86.org or its 
43 mirrors.
44 .PP
45 .B gcc
46 2.7.x or later is required to build
47 .B wine.
48 Versions earlier than 2.7.2.3 may have problems when certain files are
49 compiled with optimization.
50 .SH INSTALLATION
51 To install 
52 .B Wine,
53 run "./configure" in the top-level directory of the source, which will 
54 detect your specific setup and create the Makefiles.  You can run 
55 "./configure --help" to see the available configuration options.  Then do 
56 "make depend; make" to build the
57 .B wine
58 executable, and then "make install" to install it. By default,
59 .B wine
60 is installed in /usr/local/bin; you can specify a different path with
61 the --prefix option when running
62 .B configure.
63 .PP
64 For more information, see the 
65 .B README
66 file contained in the source distribution.
67 .SH OPTIONS
68 .TP
69 .I -backingstore
70 Turn on backing store
71 .TP
72 .I -debug
73 Enter the debugger before starting application
74 .TP
75 .I -debugmsg [xxx]#name[,[xxx1]#name1]
76 Turn debugging messages on or off.  
77 .RS +7
78 .PP
79 xxx is optional and can be one of the following: 
80 .I err, 
81 .I warn, 
82 .I fixme, 
83 or 
84 .I trace. 
85 If xxx is not specified, all debugging messages for the specified
86 channel are turned on.  # is required and can be either + or -.  Note that 
87 there is not a space after the comma between names.
88 .PP
89 For instance:
90 .PP
91 .I -debugmsg warn+dll,+heap
92 will turn on DLL warning messages and all heap messages.  
93 .br
94 .I -debugmsg fixme-all,warn+cursor,+relay
95 will turn off all FIXME messages, turn on cursor warning messages, and turn
96 on all relay messages (API calls).
97 .PP
98 The full list of names is: all, accel, advapi, aspi, atom, bitblt, bitmap, 
99 caret, cd, cdaudio, class, clipboard, clipping, combo, comm, commctrl, 
100 commdlg, console, crtdll, cursor, dc, dde, ddeml, ddraw, debug, dialog, 
101 dinput, dll, dosfs, driver, dsound, edit, event, exec, file, fixup, font, 
102 gdi, global, graphics, header, heap, hook, icon, imagelist, int, int21, 
103 int31, key, keyboard, ldt, listbox, local, mci, mcianim, mciwave, mdi, menu, 
104 message, metafile, midi, mmaux, mmio, mmsys, mmtime, module, mpr, msg, 
105 nonclient, ntdll, ole, palette, print, process, profile, prop, reg, region, 
106 relay, resource, scroll, security, segment, selector, sem, sendmsg, shell, 
107 shm, snoop, sound, stress, string, syscolor, task, text, thread, thunk, timer, 
108 toolhelp, tweak, uitools, updown, ver, virtual, vxd, win, win16drv, win32, 
109 wing, winsock, wnet, x11, x11drv.
111 For more information on debugging messages, see the file 
112 .I documentation/debug-msgs
113 in the source distribution.
116 .I -depth n
117 Change the depth to use for multiple-depth screens
119 .I -desktop geom
120 Use a desktop window of the given geometry
122 .I -display name
123 Use the specified display
125 .I -dll name
126 Enables/disables built-in DLL's - starting wine with
127 .I -dll -commdlg
128 is probably a good idea.
129 The full list of DLLs modifiable by this is:
130 WIN87EM, SHELL, SOUND, KEYBOARD, WINSOCK, STRESS, MMSYSTEM, SYSTEM, TOOLHELP,
131 MOUSE, COMMDLG, OLE2, OLE2CONV, OLE2DISP, OLE2NLS, OLE2PROX, OLECLI, OLESVR,
132 COMPOBJ, STORAGE, WINPROCS, DDEML, ADVAPI32, COMCTL32, COMDLG32, CRTDLL,
133 GDI32, LZ32, MPR, NTDLL, OLE32, SHELL32, USER32, VER, VERSION, W32SYS, WINMM,
134 WINSPOOL, WSOCK32
136 .I -failreadonly
137 Read only files may not be opened in write mode (the default is to
138 allow opening read-only files for writing, because most Windows
139 programs always request read-write access, even on CD-ROM drives...).
141 .I -fixedmap
142 Use a "standard" color map.
144 .I -iconic
145 Start as an icon
147 .I -language xx
148 Set the language to
149 .I xx
150 (one of En, Es, De, No, Fr, Fi, Da, Cz, Eo, It, Ko, Hu, Pl, Po, Sw, Ca)
152 .I -managed
153 Create each top-level window as a properly managed X window
155 .I -mode modename
156 Determines the mode in which
157 .B wine
158 is started. Possible mode names are
159 .I standard
161 .I enhanced.
162 Enhanced mode is the default (when no -mode option is specified).
164 .I -name name
165 Set the application name
167 .I -privatemap
168 Use a private color map
170 .I -synchronous
171 Turn on synchronous display mode
173 .I -winver version
174 Specify which Windows version WINE should imitate.
175 Possible arguments are: win31, win95, nt351, and nt40.
176 .PD 1
177 .SH PROGRAM/ARGUMENTS
178 The program name may be specified in DOS format (C:\\WINDOWS\\SOL.EXE) or in 
179 Unix format (/msdos/windows/sol.exe).  The program being executed may be 
180 passed arguments by adding them on to the end of the command line invoking
181 .B wine
182 (such as: wine "notepad C:\\TEMP\\README.TXT").  Note that
183 the program name and its arguments 
184 .I must
185 be passed as a single parameter, which is usually accomplished by placing
186 them together in quotation marks.  Multiple applications may be started
187 by placing all of them on the command line (such as: wine notepad clock).
188 .SH CONFIGURATION FILE
189 .B wine
190 expects a configuration file (/usr/local/etc/wine.conf), which should
191 conform to the following rules (the format is just like a Windows .ini
192 file).  The actual file name may be specified during the execution of
194 .B configure
195 script.  Alternatively, you may have a 
196 .I .winerc
197 file of this format in your home directory or have the environment variable
198 .B WINE_INI
199 pointing to a configuration file.
200 .SH CONFIGURATION FILE FORMAT
201 All entries are grouped in sections; a section begins with the line
203 .I [section name]
205 and continues until the next section starts. Individual entries
206 consist of lines of the form
208 .I entry=value
210 The value can be any text string, optionally included in single or
211 double quotes; it can also contain references to environment variables
212 surrounded by
213 .I ${}.
214 Supported section names and entries are listed below.
216 .B [Drive X]
218 This section is used to specify the root directory and type of each
219 .B DOS
220 drive, since most Windows applications require a DOS/MS-Windows based 
221 disk drive & directory scheme. There is one such section for every
222 drive you want to configure.
224 .I format: Path = <rootdirectory>
226 default: none
228 If you mounted your dos partition as 
229 .I /dos
230 and installed Microsoft Windows in 
231 C:\\WINDOWS then you should specify 
232 .I Path=/dos
233 in the
234 .I [Drive C]
235 section.
237 .I format: Type = <type>
239 default: hd
241 Used to specify the drive type; supported types are floppy, hd, cdrom
242 and network.
244 .I format: Label = <label>
246 default: 'Drive X'
248 Used to specify the drive label; limited to 11 characters.
250 .I format: Serial = <serial>
252 default: 12345678
254 Used to specify the drive serial number, as an 8-character hexadecimal
255 number.
257 .I format: Filesystem = <fstype>
259 default: unix
261 Used to specify the type of the filesystem on which the drive resides;
262 supported types are msdos (or fat), win95 (or vfat), unix. If the
263 drive spans several different filesystems, say unix.
265 .B [wine]
267 .I format: windows = <directory>
269 default: C:\\WINDOWS
271 Used to specify a different Windows directory
273 .I format: system = <directory>
275 default: C:\\WINDOWS\\SYSTEM
277 Used to specify a different system directory
279 .I format: temp = <directory>
281 default: C:\\TEMP
283 Used to specify a directory where Windows applications can store 
284 temporary files.
286 .I format: path = <directories separated by semi-colons>
288 default: C:\\WINDOWS;C:\\WINDOWS\\SYSTEM
290 Used to specify the path which will be used to find executables and .DLL's.
292 .I format: symboltablefile = <filename>
294 default: wine.sym
296 Used to specify the path and file name of the symbol table used by the built-in
297 debugger.
299 .B [serialports]
301 .I format: com[12345678] = <devicename>
303 default: none
305 Used to specify the devices which are used as com1 - com8.
307 .B [parallelports]
309 .I format: lpt[12345678] = <devicename>
311 default: none
313 Used to specify the devices which are used as lpt1 - lpt8.
315 .B [spy]
317 .I format: file = <filename or CON when logging to stdout>
319 default: none
321 Used to specify the file which will be used as
322 .B logfile.
324 .I format: exclude = <message names separated by semicolons>
326 default: none
328 Used to specify which messages will be excluded from the logfile.
330 .I format: include = <message names separated by semicolons>
332 default: none
333 .br Used to specify which messages will be included in the logfile.
335 .B [Tweak.Layout]
337 .I format: Win95Look=<true|false>
339 default: false
340 .br 
341 Use Win95-like window displays or Win3.1-like window displays.
342 .SH SAMPLE CONFIGURATION FILE
343 [Drive A]
345 Path=/mnt/fd0
347 Type=floppy
349 [Drive C]
351 Path=/dos
353 Type=hd
355 Label=DOS disk
357 [Drive D]
359 Path=${HOME}/Wine
361 [wine]
363 windows=c:\\windows
365 system=c:\\windows\\system
367 temp=c:\\temp
369 path=c:\\windows;c:\\windows\\system;c:\\winapps\\word
371 symboltablefile=/usr/local/lib/wine.sym
373 [serialports]
375 com1=/dev/cua1
377 com2=/dev/cua1
379 [parallelports]
381 lpt1=/dev/lp0
383 [spy]
385 ;File=CON
387 ;File=spy.log
389 Exclude=WM_TIMER;WM_SETCURSOR;WM_MOUSEMOVE;WM_NCHITTEST;
391 Include=WM_COMMAND;
393 [Tweak.Layout]
394 .br 
395 Win95Look=true
396 .SH AUTHORS
397 .B Wine
398 is available thanks to the work of many developers. For a listing
399 of the authors, please see the file 
400 .B AUTHORS
401 in the top-level directory of the source distribution.
402 .SH BUGS
403 There are too many to count, much less list.  Some bugs of note, however,
404 are that programs requiring VBRUNxxx.DLL are unreliable (with reports of
405 some working), OLE is not in place, the internal COMMDLG support is not yet
406 at 100% (although rapidly improving).  Color support for other than 8bpp
407 (256 colors) is currently flaky.
409 A status report on many appplications is available from
410 .I http://www.winehq.com/apps.cgi.
411 Users can add, modify, and delete entries on this list.
413 Bug reports and successes may be posted to 
414 .I comp.emulators.ms-windows.wine.
415 .SH AVAILABILITY
416 The most recent public version of 
417 .B wine
418 can be ftp'ed from sunsite.unc.edu or tsx-11.mit.edu in the /pub/linux/ALPHA/Wine/development 
419 directory.  The releases are in the format 'Wine-yymmdd.tar.gz', 
420 or 'Wine-yymmdd.diff.gz' for the diff's from the previous release.
423 .B wine
424 homepage is at
425 .I http://www.winehq.com.
426 This website contains a great deal of information about
427 .B wine
428 as well as a collection of unofficial patches against the current release.
431 .B wine 
432 newsgroup is 
433 .I comp.emulators.ms-windows.wine.
434 All discussions about the project take place in this forum.
435 .SH FILES
436 .PD 0
438 .I /usr/local/bin/wine
439 The invoker program.
441 .I /usr/local/etc/wine.conf
442 Global configuration file for wine.
444 .I /usr/local/lib/wine.sym
445 Global symbol table (used in debugger)
447 .I ~/.winerc
448 User-specific configuration file
449 .SH "SEE ALSO"
450 clone(2)