1997-07-20 18:23:21 +02:00
|
|
|
\input texinfo @c -*-texinfo-*-
|
|
|
|
@c %**start of header
|
|
|
|
@setfilename wine.info
|
|
|
|
@settitle Wine Reference Manual
|
|
|
|
@iftex
|
|
|
|
@afourpaper
|
|
|
|
@end iftex
|
|
|
|
@c %**end of header
|
|
|
|
|
|
|
|
@ifinfo
|
|
|
|
@format
|
|
|
|
START-INFO-DIR-ENTRY
|
|
|
|
* wine: (wine.info). The Windows Emulator.
|
|
|
|
END-INFO-DIR-ENTRY
|
|
|
|
@end format
|
|
|
|
@end ifinfo
|
|
|
|
|
|
|
|
@iftex
|
|
|
|
@c @finalout
|
|
|
|
@end iftex
|
|
|
|
|
|
|
|
@ifinfo
|
|
|
|
This file documents Wine, the Windows Emulator.
|
|
|
|
|
|
|
|
@c
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
Copyright @copyright{} 1997,1998 The Wine authors. @*
|
1997-08-04 18:34:36 +02:00
|
|
|
@xref{Authors, The Wine Authors, The Wine Authors},
|
|
|
|
for a list of the copyright holders.
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
Permission is granted to make and distribute verbatim
|
|
|
|
copies of this manual provided the copyright notice and
|
|
|
|
this permission notice are preserved on all copies.
|
|
|
|
|
|
|
|
@ignore
|
|
|
|
Permission is granted to process this file through TeX
|
|
|
|
and print the results, provided the printed document
|
|
|
|
carries a copying permission notice identical to this
|
|
|
|
one except for the removal of this paragraph (this
|
|
|
|
paragraph not being relevant to the printed manual).
|
|
|
|
|
|
|
|
@end ignore
|
|
|
|
Permission is granted to copy and distribute modified
|
|
|
|
versions of this manual under the conditions stated in
|
|
|
|
the section entitled ``License, Warranty, and Authors of Wine''.
|
|
|
|
|
|
|
|
@sp 4
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
FIXME: X11 and POSIX trademarks. @*
|
|
|
|
UNIX is a registered trademark of the Open Group.
|
1997-08-24 18:00:30 +02:00
|
|
|
Microsoft, Windows, MS-Windows, Windows-NT, Windows 95, and MS-DOS are
|
|
|
|
registered trademarks of Microsoft Corporation.
|
|
|
|
NT is a trademark of Northern Telecom Limited.
|
|
|
|
C++Builder is a trademark of Borland International, Inc.
|
|
|
|
Postscript is a registered trademark of Adobe Systems Inc.
|
|
|
|
Other trademarks are the property of their respective owners, which may
|
|
|
|
be registered in certain jurisdictions.
|
1997-07-20 18:23:21 +02:00
|
|
|
@end ifinfo
|
|
|
|
|
|
|
|
@c begin chapters on right pages
|
|
|
|
@setchapternewpage odd
|
|
|
|
|
|
|
|
@titlepage
|
|
|
|
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
@title{The Wine Reference Manual}
|
|
|
|
@subtitle{Edition 0.0.5, February 1998}
|
1997-07-20 18:23:21 +02:00
|
|
|
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
@author{The Wine Team}
|
1997-07-20 18:23:21 +02:00
|
|
|
@c The following two commands start the copyright page.
|
|
|
|
@page
|
|
|
|
@vskip 0pt plus 1filll
|
|
|
|
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
Copyright @copyright{} 1997, 1998 The Wine authors. @*
|
1997-08-04 18:34:36 +02:00
|
|
|
@xref{Authors, The Wine Authors, The Wine Authors},
|
|
|
|
for a list of the copyright holders.
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
Permission is granted to make and distribute verbatim
|
|
|
|
copies of this manual provided the copyright notice and
|
|
|
|
this permission notice are preserved on all copies.
|
|
|
|
|
|
|
|
Permission is granted to copy and distribute modified
|
|
|
|
versions of this manual under the conditions stated in
|
|
|
|
the section entitled ``License, Warranty, and Authors of Wine''.
|
|
|
|
|
|
|
|
@sp 4
|
|
|
|
FIXME: UNIX and POSIX trademarks. @*
|
1997-08-24 18:00:30 +02:00
|
|
|
X11 @*
|
|
|
|
Microsoft, Windows, MS-Windows, Windows-NT, Windows 95, and MS-DOS are
|
|
|
|
registered trademarks of Microsoft Corporation.
|
|
|
|
NT is a trademark of Northern Telecom Limited.
|
|
|
|
C++Builder is a trademark of Borland International, Inc.
|
|
|
|
Postscript is a registered trademark of Adobe Systems Inc.
|
|
|
|
Other trademarks are the property of their respective owners, which may
|
|
|
|
be registered in certain jurisdictions.
|
1997-07-20 18:23:21 +02:00
|
|
|
@end titlepage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@c
|
|
|
|
@c SETTINGS, DEFINES, MACROS
|
|
|
|
@c
|
|
|
|
|
|
|
|
@c Edit this macro manually in the above parts of the document
|
|
|
|
@macro winemanualversion
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
0.0.4
|
1997-07-20 18:23:21 +02:00
|
|
|
@end macro
|
|
|
|
|
|
|
|
@c Edit this macro manually in the above parts of the document
|
|
|
|
@macro winemanualdate
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
February 1998
|
1997-07-20 18:23:21 +02:00
|
|
|
@end macro
|
|
|
|
|
|
|
|
@c Edit this macro manually into the TeX titlepage
|
1997-08-04 18:34:36 +02:00
|
|
|
@macro winemanualtitle
|
1997-07-20 18:23:21 +02:00
|
|
|
The Wine Reference Manual
|
|
|
|
@end macro
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@c
|
|
|
|
@macro winelib
|
|
|
|
Winelib
|
|
|
|
@end macro
|
1997-07-20 18:23:21 +02:00
|
|
|
@c
|
|
|
|
@c MICROSOFT
|
|
|
|
@c
|
|
|
|
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
@c FIXME: automatic trademark reference
|
1997-07-20 18:23:21 +02:00
|
|
|
@macro mswindows
|
|
|
|
MS-Windows
|
|
|
|
@end macro
|
|
|
|
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
@c FIXME: automatic trademark reference
|
1997-07-20 18:23:21 +02:00
|
|
|
@c spell it always the same
|
|
|
|
@macro WIN32
|
|
|
|
WIN32
|
|
|
|
@end macro
|
1997-08-04 18:34:36 +02:00
|
|
|
@macro WIN16
|
|
|
|
WIN16
|
|
|
|
@end macro
|
1997-07-20 18:23:21 +02:00
|
|
|
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
@c FIXME: automatic trademark reference
|
1997-07-20 18:23:21 +02:00
|
|
|
@macro WINNT
|
|
|
|
Windows NT
|
|
|
|
@end macro
|
|
|
|
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
@c FIXME: automatic trademark reference
|
1997-08-24 18:00:30 +02:00
|
|
|
@macro WINNT40
|
|
|
|
Windows NT 4.0
|
|
|
|
@end macro
|
|
|
|
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
@c FIXME: automatic trademark reference
|
1997-07-20 18:23:21 +02:00
|
|
|
@macro WIN95
|
|
|
|
Windows 95
|
|
|
|
@end macro
|
|
|
|
|
|
|
|
|
|
|
|
@c
|
|
|
|
@c THE OTHERS
|
|
|
|
@c
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
@c FIXME: automatic trademark reference
|
1997-07-20 18:23:21 +02:00
|
|
|
@macro unix
|
|
|
|
UNIX
|
|
|
|
@end macro
|
|
|
|
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
@c FIXME: automatic trademark reference
|
1997-07-20 18:23:21 +02:00
|
|
|
@macro posix
|
|
|
|
POSIX
|
|
|
|
@end macro
|
1997-08-04 18:34:36 +02:00
|
|
|
|
|
|
|
@macro unicode
|
|
|
|
Unicode
|
|
|
|
@end macro
|
|
|
|
|
|
|
|
@macro ascii
|
|
|
|
ASCII
|
|
|
|
@end macro
|
|
|
|
|
1997-07-20 18:23:21 +02:00
|
|
|
@c
|
|
|
|
@c THIS MANUAL
|
|
|
|
@c
|
|
|
|
|
|
|
|
@c flag out differences to MS-Windows
|
|
|
|
@macro windiff
|
|
|
|
@emph{Differences to @mswindows{}:} @*
|
|
|
|
@end macro
|
|
|
|
|
|
|
|
@macro windiffnone
|
|
|
|
@windiff{}
|
|
|
|
No differences known.
|
|
|
|
@end macro
|
|
|
|
|
|
|
|
@c tell whether function is present in Windows 95 and/or NT
|
|
|
|
@macro winconf
|
|
|
|
@emph{Conformance to @mswindows{}:} @*
|
|
|
|
@end macro
|
|
|
|
|
|
|
|
@macro winconfall
|
|
|
|
@winconf{}
|
|
|
|
Present in @WIN95{} and @WINNT{}.
|
|
|
|
@end macro
|
|
|
|
|
|
|
|
@c give information about completion
|
|
|
|
@macro completion
|
|
|
|
@emph{Completion status:} @*
|
|
|
|
@end macro
|
|
|
|
|
|
|
|
@macro completionnone
|
|
|
|
@completion{}
|
|
|
|
Not yet implemented.
|
|
|
|
@end macro
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@c
|
|
|
|
@c MACROS FOR FUNCTIONS, TYPES, CONSTANTS, VARIABLES
|
|
|
|
@c
|
1997-07-20 18:23:21 +02:00
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@c Constants in the WIN32 API
|
|
|
|
@macro defvr_cw32 {restofline}
|
|
|
|
@defvr Constant \restofline\
|
|
|
|
@end macro
|
|
|
|
@macro defvrx_cw32 {restofline}
|
|
|
|
@defvrx Constant \restofline\
|
|
|
|
@end macro
|
1997-07-20 18:23:21 +02:00
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@c Functions in the WIN32 API
|
|
|
|
@macro deftypefn_w32 {restofline}
|
|
|
|
@deftypefn {WIN32 function} \restofline\
|
|
|
|
@end macro
|
|
|
|
@macro deftypefnx_w32 {restofline}
|
|
|
|
@deftypefnx {WIN32 function} \restofline\
|
|
|
|
@end macro
|
1997-07-20 18:23:21 +02:00
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@c Types in the WIN32 API
|
|
|
|
@macro deftp_w32 {restofline}
|
|
|
|
@deftp {Data type} \restofline\
|
|
|
|
@end macro
|
|
|
|
@macro deftpx_w32 {restofline}
|
|
|
|
@deftpx {Data type} \restofline\
|
|
|
|
@end macro
|
1997-07-20 18:23:21 +02:00
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@c Macros internal to Wine
|
|
|
|
@macro deffn_winemacro {restofline}
|
|
|
|
@deffn {Wine internal macro} \restofline\
|
|
|
|
@end macro
|
|
|
|
@macro deffnx_winemacro {restofline}
|
|
|
|
@deffn {Wine internal macro} \restofline\
|
|
|
|
@end macro
|
|
|
|
|
|
|
|
@c Constants internal to Wine
|
|
|
|
@macro defvr_cwine {restofline}
|
|
|
|
@defvr {Wine internal constant} \restofline\
|
|
|
|
@end macro
|
|
|
|
@macro defvrx_cwine {restofline}
|
|
|
|
@defvrx {Wine internal constant} \restofline\
|
|
|
|
@end macro
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
@c
|
|
|
|
@c TOP NODE
|
|
|
|
@c
|
|
|
|
@ifinfo
|
|
|
|
@node Top, Copying, (dir), (dir)
|
|
|
|
@top Wine
|
|
|
|
|
|
|
|
This is edition @winemanualversion{}, last updated @winemanualdate{},
|
|
|
|
of @winemanualtitle{}.
|
|
|
|
|
|
|
|
Wine (Wine Is Not an Emulator, or the WINdows Emulator)
|
|
|
|
is both an emulator that runs @mswindows{} executables and a library
|
|
|
|
that can be used to compile @mswindows{} source code.
|
|
|
|
|
|
|
|
Wine is free software. Wine is still in development-only state.
|
|
|
|
@end ifinfo
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* Copying:: License, Warranty, and Authors of Wine.
|
|
|
|
* Introduction:: A short overview.
|
|
|
|
* Reference Manual:: The Wine reference manual.
|
1997-08-04 18:34:36 +02:00
|
|
|
* Installation:: Installing and configuring Wine.
|
1997-07-20 18:23:21 +02:00
|
|
|
* The Wine Project:: How to contribute to Wine.
|
|
|
|
* Concept Index:: Index of concepts and names.
|
|
|
|
* Type Index:: Index of types and type qualifiers.
|
|
|
|
* Function Index:: Index of functions and function-like
|
|
|
|
macros.
|
1997-08-04 18:34:36 +02:00
|
|
|
* Variable Index:: Index of variables, constants, and
|
|
|
|
variable-like macros.
|
1997-07-20 18:23:21 +02:00
|
|
|
* File Index:: Index of programs and files.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node Copying, Introduction, Top, Top
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@unnumbered License, Warranty, and Authors of Wine
|
1997-07-20 18:23:21 +02:00
|
|
|
@cindex copying conditions for Wine
|
|
|
|
@cindex conditions for copying Wine
|
|
|
|
@cindex Wine copying conditions
|
|
|
|
|
|
|
|
The Wine license, warranty, and list of authors together form the
|
|
|
|
copyright for Wine. Read these sections carefully.
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* License:: The Wine license.
|
|
|
|
* Warranty:: Wine comes with no warranty.
|
|
|
|
* Authors:: The persons that contributed to Wine.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node License, Warranty, , Copying
|
|
|
|
@cindex Wine license
|
|
|
|
@cindex license of Wine
|
|
|
|
|
|
|
|
@unnumberedsec The Wine License
|
|
|
|
Wine is distributed under the following copyright.
|
|
|
|
|
|
|
|
@quotation
|
|
|
|
@include LICENSE
|
|
|
|
@end quotation
|
|
|
|
|
|
|
|
@node Warranty, Authors, License, Copying
|
|
|
|
@cindex Wine warranty
|
|
|
|
@cindex warranty of Wine
|
|
|
|
|
|
|
|
@unnumberedsec The Wine Warranty
|
|
|
|
|
|
|
|
@quotation
|
|
|
|
@include WARRANTY
|
|
|
|
@end quotation
|
|
|
|
|
|
|
|
@node Authors, , Warranty, Copying
|
|
|
|
@cindex Wine authors
|
|
|
|
@cindex authors of Wine
|
|
|
|
@cindex copyright holders of Wine
|
|
|
|
@cindex Wine copyright holders
|
|
|
|
|
|
|
|
@unnumberedsec The Wine Authors
|
|
|
|
|
|
|
|
@quotation
|
|
|
|
@include AUTHORS
|
|
|
|
@end quotation
|
|
|
|
|
|
|
|
These persons also hold the copyright on Wine.
|
|
|
|
|
|
|
|
The overall coordination is done by @*
|
|
|
|
Alexandre Julliard @*
|
|
|
|
@email{julliard@@lrc.epfl.ch}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@node Introduction, Reference Manual, Copying, Top
|
|
|
|
@chapter Introduction
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@center Wine:
|
|
|
|
@center the WINdows Emulator,
|
|
|
|
@center or Wine Is Not an Emulator
|
|
|
|
|
|
|
|
FIXME: make an easy-readable fluent text out of this.
|
|
|
|
|
|
|
|
Welcome to @winemanualtitle{}. This is edition @winemanualversion{},
|
|
|
|
last updated @winemanualdate{}.
|
|
|
|
|
|
|
|
@strong{What is Wine?}
|
|
|
|
|
|
|
|
Wine is a program that allows running MS-Windows programs under X11.
|
|
|
|
|
|
|
|
|
|
|
|
Wine incorporates two features, the program loader and @winelib{}:
|
|
|
|
@enumerate
|
|
|
|
@item
|
|
|
|
You can run @mswindows{} binaries (programs) in Wine. Wine contains a
|
|
|
|
program loader which loads and executes an @mswindows{} binary. It uses
|
|
|
|
the @winelib{} features of Wine to translate @WIN32{} and @WIN16{} calls
|
|
|
|
to their @unix{}/X11 equivalent.
|
|
|
|
|
|
|
|
Both 16 bit and 32 bit binaries can be loaded.
|
|
|
|
@item
|
|
|
|
@winelib{}: Wine can also be used as a library which implements the
|
|
|
|
@mswindows{} API on top of a @unix{} or @unix{}-like operating system
|
|
|
|
with X11. @winelib{} (i.e. the Wine library) translates @WIN16{} or
|
|
|
|
@WIN32{} API calls to their @unix{}/X11 equivalent.
|
|
|
|
|
|
|
|
You can write a user-level application program that calls the @WIN16{}
|
|
|
|
or @WIN32{} API functions and compile it on a @unix{} box.
|
|
|
|
@end enumerate
|
|
|
|
|
|
|
|
@strong{Status}
|
|
|
|
|
|
|
|
Wine is still at development stage. The file @file{ANNOUNCE} says,
|
|
|
|
``This is still a developer's only release. There are many bugs and
|
|
|
|
many unimplemented API features. Most applications still do not work
|
|
|
|
correctly.''
|
|
|
|
@xref{Warranty}, for additional information.
|
|
|
|
|
|
|
|
@strong{Requirements}
|
|
|
|
|
|
|
|
Wine needs an 80x86 CPU to run on. Emulating the CPU is currently not
|
|
|
|
possible.
|
|
|
|
|
|
|
|
Currently, you must have one of:
|
|
|
|
@itemize @bullet
|
|
|
|
@item
|
|
|
|
Linux version 0.99.13 or above
|
|
|
|
@item
|
|
|
|
NetBSD-current
|
|
|
|
@item
|
|
|
|
FreeBSD-current or FreeBSD 1.1
|
|
|
|
@end itemize
|
|
|
|
You need X11, and you must have @file{libXpm} installed on your system.
|
|
|
|
|
|
|
|
@strong{Availability}
|
|
|
|
|
|
|
|
Wine is free software. The file @file{README} says, ``Basically, you can do
|
|
|
|
anything with it, except claim that you wrote it.''
|
|
|
|
@xref{Copying}, for more information.
|
|
|
|
|
|
|
|
@strong{Performance}
|
|
|
|
|
|
|
|
Wine is expected to run @mswindows{} binaries about the same speed as
|
|
|
|
@mswindows{} would. However, be aware that the 16 bit versions of
|
|
|
|
@mswindows{} programs are generally slower than their 32 bit
|
|
|
|
counterparts.
|
|
|
|
|
|
|
|
@strong{Further information}
|
|
|
|
|
|
|
|
You should consult the files @file{README}, @file{ANNOUNCE},
|
|
|
|
@file{RELEASE-NOTES}, @file{BUGS}, @file{LICENSE}, and @file{WARRANTY},
|
|
|
|
in the root directory of the Wine distribution.
|
|
|
|
|
1997-08-24 18:00:30 +02:00
|
|
|
The Wine FAQ, available from @*
|
|
|
|
@url{ftp://ftp.asgardpro.com/wine/dave/Wine.FAQ}, @*
|
|
|
|
@url{ftp://tsx-11.mit.edu/pub/linux/ALPHA/Wine/Wine.FAQ}, @*
|
|
|
|
@url{ftp://rtfm.mit.edu/pub/usenet-by-group/comp.emulators.ms-windows.wine/WINE_(WINdows_Emulator)_Frequently_Asked_Questions}, @*
|
|
|
|
@url{ftp://sunsite.unc.edu/pub/Linux/ALPHA/wine/Wine.FAQ}, @*
|
|
|
|
@url{http://www.asgardpro.com/wine/index.html}, @*
|
1997-08-04 18:34:36 +02:00
|
|
|
gives answer to a lot of questions.
|
|
|
|
|
|
|
|
The Wine USENET newsgroup is interesting for developers. It discusses technical
|
|
|
|
matters about Wine. The address is: @url{news:comp.emulators.ms-windows.wine}.
|
|
|
|
|
|
|
|
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
@xref{The Wine Project}, if you consider contributing some work.
|
|
|
|
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
|
1997-07-20 18:23:21 +02:00
|
|
|
@node Reference Manual, Installation, Introduction, Top
|
|
|
|
|
|
|
|
@menu
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
* WIN32 Reference Manual:: The @WIN32{} function calls and data types.
|
1997-07-20 18:23:21 +02:00
|
|
|
* Resources and INI files:: How to determine the appearance and
|
|
|
|
behaviour of Wine programs.
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 20:08:16 +01:00
|
|
|
* Metafiles-Icons-Bitmaps:: FIXME missing.
|
1997-07-20 18:23:21 +02:00
|
|
|
* Debugging:: Debugging Wine.
|
|
|
|
* Programs:: Programs written to run in/with Wine.
|
|
|
|
* Tools:: Programs to support Wine.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node @WIN32{} Reference Manual, Resources and INI files, , Reference Manual
|
|
|
|
@chapter The @WIN32{} Reference Manual
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* Kernel Objects:: How the Wine kernel keeps information.
|
|
|
|
* Processes and Threads:: Job control and management in Wine.
|
|
|
|
* Users and Groups:: Security in Wine.
|
|
|
|
* Date and Time:: Functions for getting the date and time
|
|
|
|
and for conversion between formats.
|
|
|
|
* System Information:: Getting information about the hardware
|
|
|
|
and software the system runs on.
|
|
|
|
* Memory Management:: How your programs get memory from
|
|
|
|
Wine.
|
|
|
|
* I/O Facilities:: Input/Output in Wine.
|
|
|
|
* Communication:: How processes can communicate.
|
|
|
|
* Windows and Graphics:: GUI functions of @WIN32{}.
|
|
|
|
* Errors and Exceptions:: How your program can report errors.
|
1997-08-04 18:34:36 +02:00
|
|
|
(messaging)
|
1997-07-20 18:23:21 +02:00
|
|
|
* Resources:: Functions for dealing with resources.
|
|
|
|
* The Registry:: FIXME missing.
|
|
|
|
* Dynamic Link Libraries:: Functions for dealing with DLL's.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node Kernel Objects, Processes and Threads, , @WIN32{} Reference Manual
|
|
|
|
@section Kernel Objects
|
|
|
|
|
|
|
|
|
|
|
|
@node Processes and Threads, Users and Groups, Kernel Objects, @WIN32{} Reference Manual
|
|
|
|
@section Processes and Threads
|
|
|
|
|
|
|
|
@node Users and Groups, Date and Time, Processes and Threads, @WIN32{} Reference Manual
|
|
|
|
@section Users and Groups
|
|
|
|
|
|
|
|
@node Date and Time, System Information, Users and Groups, @WIN32{} Reference Manual
|
|
|
|
@section Date and Time
|
|
|
|
|
|
|
|
This section describes functions for manipulating dates and times. This
|
|
|
|
includes the current time, the creation or manipulation times of files
|
|
|
|
and other objects, and conversion between different time
|
|
|
|
representations.
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* File Times:: Creation and manipulation times of files.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node File Times, , , Date and Time
|
|
|
|
@subsection File Times
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* Type FILETIME:: The data structure used for specifying
|
|
|
|
file times.
|
|
|
|
* Compare File Times:: Compare two file times.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@c
|
|
|
|
@c *** struct FILETIME ***
|
|
|
|
@c
|
|
|
|
@node Type FILETIME, Compare File Times, , File Times
|
1997-08-04 18:34:36 +02:00
|
|
|
@subsubsection Type FILETIME
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
@noindent
|
|
|
|
File times in Wine are specified by the data type @code{FILETIME},
|
|
|
|
defined in @file{windows.h}.
|
1997-08-04 18:34:36 +02:00
|
|
|
@deftp_w32 FILETIME
|
|
|
|
@deftpx_w32 LPFILETIME
|
1997-07-20 18:23:21 +02:00
|
|
|
This is the data type for specifying file times. The file times are
|
|
|
|
stored with 64 bit precision. The actual data type is a structure with
|
1997-08-04 18:34:36 +02:00
|
|
|
two 32-bit values which are interpreted as the low and high parts of a
|
1997-07-20 18:23:21 +02:00
|
|
|
64-bit value. This value gives a time measured in a granularity of 100
|
|
|
|
nanoseconds, so 1.5 seconds are specified by a value of 15,000,000. In
|
|
|
|
Wine, this 64-bit value is signed, with the sign taken from the high
|
|
|
|
part. The lower part is used as unsigned.
|
|
|
|
|
|
|
|
The definition of @code{FILETIME} reads:
|
|
|
|
@example
|
1997-08-04 18:34:36 +02:00
|
|
|
typedef struct
|
1997-07-20 18:23:21 +02:00
|
|
|
@{
|
|
|
|
INT32 dwLowDateTime;
|
|
|
|
INT32 dwHighDateTime;
|
1997-08-04 18:34:36 +02:00
|
|
|
@} FILETIME, *LPFILETIME;
|
1997-07-20 18:23:21 +02:00
|
|
|
@end example
|
|
|
|
|
|
|
|
@cindex epoch in file time
|
|
|
|
The @code{FILETIME} structure may be used to hold absolute or relative
|
|
|
|
times. Absolute times are given as the number of 100 nanoseconds
|
|
|
|
intervals elapsed since 1 January 1601, 00:00:00 UTC (Coordinated
|
|
|
|
Universal Time, which is GMT, Greenwich Mean Time). This might be
|
|
|
|
called the @dfn{epoch} for file times. With a signed 64-bit value, this
|
|
|
|
representation covers absolute times of 29247 years around the epoch.
|
1997-08-04 18:34:36 +02:00
|
|
|
To convert this type to local time, use the function
|
|
|
|
@code{FileTimeToLocalFileTime}.
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
@windiff{}
|
|
|
|
In @mswindows{}, the elements of the structure are apparently of type
|
|
|
|
@code{DWORD}. Whether the full 64 bit value is interpreted as signed or
|
|
|
|
unsigned I do not know.
|
|
|
|
@end deftp
|
|
|
|
|
|
|
|
@c
|
|
|
|
@c *** CompareFileTime ***
|
|
|
|
@c
|
1997-08-04 18:34:36 +02:00
|
|
|
@node Compare File Times, , Type FILETIME, File Times
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
@noindent
|
|
|
|
The Wine function @code{CompareFileTime} compares two file times, and
|
|
|
|
returns whether the first time is less than, equal to, or greater than
|
|
|
|
the second file time. It is defined in @file{windows.h}.
|
1997-08-04 18:34:36 +02:00
|
|
|
@deftypefn_w32 LONG CompareFileTime (@w{CONST FILETIME* @var{time_1},} @w{CONST FILETIME* @var{time_2})}
|
1997-07-20 18:23:21 +02:00
|
|
|
This function returns @code{1}, if @var{time_1} is greater than
|
|
|
|
@var{time_2}, @code{-1} if it is less, and @code{0} if both times are
|
|
|
|
equal.
|
|
|
|
|
|
|
|
@winconfall{}
|
|
|
|
|
|
|
|
@windiffnone{}
|
|
|
|
|
|
|
|
@completionnone{}
|
|
|
|
@end deftypefn
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@node System Information, Memory Management, Date and Time, @WIN32{} Reference Manual
|
|
|
|
@section System Information
|
|
|
|
|
|
|
|
@node Memory Management, I/O Facilities, System Information, @WIN32{} Reference Manual
|
|
|
|
@section Memory Management
|
|
|
|
|
|
|
|
@node I/O Facilities, Communication, Memory Management, @WIN32{} Reference Manual
|
|
|
|
@section I/O Facilities
|
|
|
|
|
|
|
|
This section describes all input/output of a process, except for two
|
|
|
|
topics: communication with other processes, and communication with the
|
|
|
|
windowing system.
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* I/O on Files:: Accessing the contents of files.
|
|
|
|
* File System Interface:: Functions for manipulating files as a whole.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node I/O on Files, File System Interface, , I/O Facilities
|
|
|
|
@subsection I/O on Files
|
|
|
|
|
|
|
|
@node File System Interface, , I/O on Files, I/O Facilities
|
|
|
|
@subsection File System Interface
|
|
|
|
|
|
|
|
These functions are concerned with operating on files themselves, rather
|
|
|
|
than on their contents.
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* Type BY_HANDLE_FILE_INFORMATION:: The data structure used to
|
|
|
|
specify file information.
|
|
|
|
* File attributes:: The file attributes flags in
|
|
|
|
a file information structure.
|
|
|
|
* Getting file information:: These functions let you obtain
|
|
|
|
information about a file.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node Type BY_HANDLE_FILE_INFORMATION, File attributes, , File System Interface
|
|
|
|
@subsubsection The file information structure
|
|
|
|
|
|
|
|
The file information structure of Wine is used to obtain information
|
|
|
|
about files. It is declared in the header @file{winedows.h}.
|
|
|
|
@deftp_w32 BY_HANDLE_FILE_INFORMATION
|
|
|
|
This is the data type for specifying information about files as objects
|
|
|
|
of the file system. It contains the following members:
|
|
|
|
@table @code
|
|
|
|
@item int dwFileAttributes
|
|
|
|
@cindex file attributes in file information
|
|
|
|
@cindex attributes of file in file information
|
|
|
|
@xref{File attributes}, for details.
|
|
|
|
@item FILETIME ftCreationTime
|
|
|
|
@cindex creation time in file information
|
|
|
|
@cindex time of file creation in file information
|
|
|
|
The time when the file was created.
|
|
|
|
@xref{Type FILETIME}, for details.
|
|
|
|
@item FILETIME ftLastAccessTime
|
|
|
|
@cindex access time in file information
|
|
|
|
@cindex time of file access in file information
|
|
|
|
The time when the file was last accessed.
|
|
|
|
@xref{Type FILETIME}, for details.
|
|
|
|
@item FILETIME ftLastWriteTime
|
|
|
|
@cindex write time in file information
|
|
|
|
@cindex time of last file write in file information
|
|
|
|
The time when the file was last written to.
|
|
|
|
@xref{Type FILETIME}, for details.
|
|
|
|
@item int dwVolumeSerialNumber
|
|
|
|
@cindex serial number of volume in file information
|
|
|
|
@cindex volume number (serial) in file information
|
|
|
|
The serial number of the volume containing the file. In Wine,
|
|
|
|
currently 0.
|
|
|
|
@item int nFileSizeHigh
|
|
|
|
@cindex file size in file information
|
|
|
|
@cindex size of file in file information
|
|
|
|
A 32 bit value which contains the high part of the 64 bit file size.
|
|
|
|
@item int nFileSizeLow
|
|
|
|
A 32 bit value which contains the low part of the 64 bit file size.
|
|
|
|
@item int nNumberOfLinks
|
|
|
|
@cindex hard links number in file information
|
|
|
|
@cindex links (number of hard) in file information
|
|
|
|
This is the number of hard links to the file. In a file system which
|
|
|
|
does not support hard links, this is 1.
|
|
|
|
@item int nFileIndexHigh
|
|
|
|
@cindex inode number in file information
|
|
|
|
@cindex file index in file information
|
|
|
|
@cindex index of file in file information
|
|
|
|
A 32 bit value which contains the high part of the 64 bit file
|
|
|
|
index. The file index is a unique number for a file on a volume.
|
|
|
|
This identifier cannot change while the file is opened by a process.
|
|
|
|
Together with the volume number, the file index is a unique
|
|
|
|
identifier for the file. This can be used by an application to check
|
|
|
|
whether two handles refer to the same file. Wine currently uses the
|
|
|
|
inode number for the file index.
|
|
|
|
@item int nFileIndexLow
|
|
|
|
A 32 bit value which contains the low part of the 64 bit file index.
|
|
|
|
@end table
|
|
|
|
|
|
|
|
The definition of @code{BY_HANDLE_FILE_INFORMATION} reads:
|
|
|
|
@example
|
|
|
|
typedef struct
|
|
|
|
@{
|
|
|
|
int dwFileAttributes;
|
|
|
|
FILETIME ftCreationTime;
|
|
|
|
FILETIME ftLastAccessTime;
|
|
|
|
FILETIME ftLastWriteTime;
|
|
|
|
int dwVolumeSerialNumber;
|
|
|
|
int nFileSizeHigh;
|
|
|
|
int nFileSizeLow;
|
|
|
|
int nNumberOfLinks;
|
|
|
|
int nFileIndexHigh;
|
|
|
|
int nFileIndexLow;
|
|
|
|
@} BY_HANDLE_FILE_INFORMATION ;
|
|
|
|
@end example
|
|
|
|
|
|
|
|
The @code{BY_HANDLE_FILE_INFORMATION} structure can be obtained by the
|
|
|
|
@code{GetFileInformationByHandle} function (@pxref{Getting file information}, for
|
|
|
|
details).
|
|
|
|
|
|
|
|
@windiff{}
|
|
|
|
In @mswindows{}, the @code{int} elements of the structure are apparently
|
|
|
|
of type @code{DWORD}.
|
|
|
|
@end deftp
|
|
|
|
|
|
|
|
@node File attributes, Getting file information, Type BY_HANDLE_FILE_INFORMATION, File System Interface
|
|
|
|
@subsubsection The file attributes in a file information structure
|
|
|
|
|
|
|
|
The file attributes in a file information structure and in other structures
|
|
|
|
are a logical @emph{or} of one or more of the following constants:
|
|
|
|
|
|
|
|
@defvr_cw32 FILE_ATTRIBUTE_READONLY
|
|
|
|
The file is a read-only file. (Wine value: 0x0001).
|
|
|
|
@end defvr
|
|
|
|
@defvr_cw32 FILE_ATTRIBUTE_HIDDEN
|
|
|
|
The file is a hidden file. Files in Wine do not have this attribute. (Wine value:
|
|
|
|
0x0002).
|
|
|
|
@end defvr
|
|
|
|
@defvr_cw32 FILE_ATTRIBUTE_SYSTEM
|
|
|
|
The file belongs to the operating system. Files in Wine do not have this
|
|
|
|
attribute. (Wine value: 0x0004).
|
|
|
|
@end defvr
|
|
|
|
@defvr_cw32 FILE_ATTRIBUTE_LABEL
|
|
|
|
This is not present in the @mswindows{} API. (Wine value: 0x0008).
|
|
|
|
@end defvr
|
|
|
|
@defvr_cw32 FILE_ATTRIBUTE_DIRECTORY
|
|
|
|
The file is a directory. (Wine value: 0x0010).
|
|
|
|
@end defvr
|
|
|
|
@defvr_cw32 FILE_ATTRIBUTE_ARCHIVE
|
1997-08-24 18:00:30 +02:00
|
|
|
The file is an archive file. Currently, all non-directory files are
|
|
|
|
reported by Wine to have this attribute. This attribute is normally set
|
|
|
|
by @mswindows{} to indicate that a file is to be archived; when the file
|
|
|
|
is archived, the flag is cleared. (Wine value: 0x0020).
|
1997-08-04 18:34:36 +02:00
|
|
|
@end defvr
|
|
|
|
@defvr_cw32 FILE_ATTRIBUTE_NORMAL
|
|
|
|
The file does not have any other attributes set. This value must be used
|
|
|
|
alone. In Wine, normal files are reported as archive files. (Wine value:
|
|
|
|
0x0080).
|
|
|
|
@end defvr
|
|
|
|
@defvr_cw32 FILE_ATTRIBUTE_TEMPORARY
|
|
|
|
The file is used as a temporary storage. Files in Wine do not have this
|
|
|
|
attribute. (Wine value: 0x0100).
|
|
|
|
@end defvr
|
|
|
|
@defvr_cw32 FILE_ATTRIBUTE_ATOMIC_WRITE
|
|
|
|
This is reserved for future use. Files in Wine do not have this
|
|
|
|
attribute. (Wine value: 0x0200).
|
|
|
|
@end defvr
|
|
|
|
@defvr_cw32 FILE_ATTRIBUTE_XACTION_WRITE
|
|
|
|
This is reserved for future use. Files in Wine do not have this
|
|
|
|
attribute. (Wine value: 0x0400).
|
|
|
|
@end defvr
|
|
|
|
@defvr_cw32 FILE_ATTRIBUTE_COMPRESSED
|
|
|
|
The file is compressed. Files in Wine do not have this attribute. (Wine
|
|
|
|
value: 0x0800).
|
|
|
|
@end defvr
|
|
|
|
|
|
|
|
@node Getting file information, , File attributes, File System Interface
|
|
|
|
@subsubsection Getting file information
|
|
|
|
|
|
|
|
The functions in this section describe how to get information about
|
|
|
|
files.
|
|
|
|
|
|
|
|
@c
|
|
|
|
@c *** GetFileInformationByHandle
|
|
|
|
@c
|
|
|
|
@noindent
|
|
|
|
The Wine function @code{GetFileInformationByHandle} returns a file
|
|
|
|
information structure. It is defined in @file{windows.h}.
|
|
|
|
|
|
|
|
@deftypefn_w32 BOOL GetFileInformationByHandle (@w{HFILE32 @var{file},} @w{BY_HANDLE_FILE_INFORMATION *@var{info})}
|
|
|
|
This function obtains for the specified @var{file} the file information,
|
|
|
|
and stores it in @var{info}. The file information contains the file
|
|
|
|
attributes, the file times, the volume serial number, the file size, the
|
|
|
|
number of links, and a unique file identifier. The function returns
|
|
|
|
@code{TRUE} on success, @code{FALSE} on failure.
|
|
|
|
|
|
|
|
@winconfall{}
|
|
|
|
|
|
|
|
@windiff{}
|
|
|
|
The Wine function can of course only give back information that is
|
|
|
|
accessible in the @unix{} file system. File times are produced in a
|
|
|
|
granularity of full seconds. Most file attributes are not present in the
|
|
|
|
@unix{} file system. @xref{File attributes}, for details. The volume
|
|
|
|
serial number is set to 0.
|
|
|
|
@end deftypefn
|
|
|
|
|
|
|
|
|
1997-07-20 18:23:21 +02:00
|
|
|
@c
|
1997-08-04 18:34:36 +02:00
|
|
|
@c *** GetFileTime ***
|
1997-07-20 18:23:21 +02:00
|
|
|
@c
|
|
|
|
@noindent
|
|
|
|
The Wine function @code{GetFileTime} returns the creation time and
|
|
|
|
the times of last the read and modification access to a file. It is
|
|
|
|
defined in @file{windows.h}.
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@deftypefn_w32 BOOL GetFileTime (@w{HANDLE @var{file},} @w{LPFILETIME @var{ctime},} @w{LPFILETIME @var{atime},} @w{LPFILETIME @var{mtime})}
|
1997-07-20 18:23:21 +02:00
|
|
|
This function obtains for the specified @var{file} the creation time
|
|
|
|
@var{ctime}, the time of the last access to the file @var{atime}, and
|
|
|
|
the time of the last modification (write) to the file, @var{mtime}.
|
1997-08-04 18:34:36 +02:00
|
|
|
The file time arguments of this function are pointers to @code{FILETIME}
|
|
|
|
variables, which are filled with a value that indicates an absolute time
|
|
|
|
in UTC. @xref{Type FILETIME}, for details. If you do not need some of
|
|
|
|
the times, you can pass a @code{NULL} pointer.
|
|
|
|
The function returns @code{TRUE} on
|
|
|
|
success, @code{FALSE} on failure.
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
@winconfall{}
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@windiff{}
|
|
|
|
The file times are produced in a granularity of full seconds, due to the
|
|
|
|
underlying @unix{} file system.
|
1997-07-20 18:23:21 +02:00
|
|
|
@end deftypefn
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@c
|
|
|
|
@c *** GetFileAttributes ***
|
|
|
|
@c
|
|
|
|
@noindent
|
|
|
|
The Wine function @code{GetFileAttributes} returns the file attributes
|
|
|
|
for a file. It is defined in @file{windows.h}.
|
|
|
|
|
|
|
|
@deftypefn_w32 DWORD GetFileAttributes (@w{LPCTSTR @var{name})}
|
|
|
|
This function looks up the file with name @var{name}, and returns the
|
|
|
|
attributes of the file. @xref{File attributes}, for details on the file
|
|
|
|
attributes. If the function is not successful, it returns a word with
|
|
|
|
all bits set (@samp{0xffffffff}).
|
|
|
|
|
|
|
|
@winconfall{}
|
|
|
|
|
|
|
|
@windiff{}
|
|
|
|
Most file attributes are not present in the
|
|
|
|
@unix{} file system. @xref{File attributes}, for details.
|
|
|
|
@end deftypefn
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@node Communication, Windows and Graphics, I/O Facilities, @WIN32{} Reference Manual
|
|
|
|
@section Communication
|
|
|
|
|
|
|
|
@node Windows and Graphics, Errors and Exceptions, Communication, @WIN32{} Reference Manual
|
|
|
|
@section Windows and Graphics
|
|
|
|
|
|
|
|
@node Errors and Exceptions, Resources, Windows and Graphics, @WIN32{} Reference Manual
|
|
|
|
@section Errors and Exceptions
|
|
|
|
|
|
|
|
@node Resources, The Registry, Errors and Exceptions, @WIN32{} Reference Manual
|
|
|
|
@section Resources
|
|
|
|
|
|
|
|
@node The Registry, Dynamic Link Libraries, Resources, @WIN32{} Reference Manual
|
|
|
|
@section The Registry
|
|
|
|
|
|
|
|
@node Dynamic Link Libraries, , The Registry, @WIN32{} Reference Manual
|
|
|
|
@section Dynamic Link Libraries (DLL's)
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
This section deals with API functions for handling DLL's (dynamic link
|
|
|
|
libraries). It does not describe DLL's themselves; nor does it give
|
|
|
|
information on how Wine handles DLL's. @xref{The build program}, for
|
|
|
|
information on how DLL's are integrated into Wine.
|
|
|
|
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@node Resources and INI files, Metafiles--Icons--Bitmaps, @WIN32{} Reference Manual, Reference Manual
|
|
|
|
@chapter Resources and @file{INI} Files
|
|
|
|
|
|
|
|
@node Metafiles--Icons--Bitmaps, Debugging, Resources and INI files, Reference Manual
|
|
|
|
@chapter Metafiles --- Icons --- Bitmaps
|
|
|
|
|
|
|
|
@node Debugging, Programs, Metafiles--Icons--Bitmaps, Reference Manual
|
|
|
|
@chapter Debugging
|
|
|
|
|
|
|
|
@node Programs, Tools, Debugging, Reference Manual
|
|
|
|
@chapter Programs
|
|
|
|
|
|
|
|
@node Tools, , Programs, Reference Manual
|
|
|
|
@chapter Tools
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
This chapter describes some of the tools that are used by Wine. These
|
|
|
|
are not user-level programs which the user of Wine will
|
|
|
|
run. @xref{Programs} for such programs.
|
|
|
|
|
|
|
|
Tools are internal programs that are used to help compile or configure
|
|
|
|
Wine.
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* The build program:: A program used to build the DLL entry
|
|
|
|
points from specifications in @file{if1632/}.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
|
|
|
|
@node The build program, , , Tools
|
|
|
|
@section The @file{build} program
|
|
|
|
|
|
|
|
@cindex modules of Wine
|
|
|
|
@cindex Wine modules
|
|
|
|
@cindex DLL's built-in in Wine
|
|
|
|
@cindex Wine DLL's built-in
|
|
|
|
@cindex built-in DLL's in Wine
|
|
|
|
Wine contains several modules that implement various DLL's which are
|
|
|
|
required to run @mswindows{} programs.
|
|
|
|
|
|
|
|
The @file{build} program, located in the @file{tools/} directory, is
|
|
|
|
used to create the bindings for the DLL entry points of the API functions.
|
|
|
|
This program reads a @file{.spec}-file in the @file{if1632} directory
|
|
|
|
and creates the assembly code that translates the function arguments
|
|
|
|
correctly.
|
|
|
|
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* The spec files:: The format of the @file{.spec}-files.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
FIXME: where in Wine are the DLL's affixed?
|
|
|
|
|
|
|
|
FIXME: write a description
|
|
|
|
|
|
|
|
@xref{Implementing an API function}, for notes on using this program.
|
|
|
|
|
|
|
|
@node The spec files, , , The build program
|
|
|
|
@subsection The @file{.spec}-files
|
|
|
|
@cindex DLL spec files
|
|
|
|
@cindex spec files of DLL's
|
|
|
|
@cindex entry points in DLL's
|
|
|
|
|
|
|
|
This subsection describes the format of the @file{.spec}-files.
|
|
|
|
|
|
|
|
A @file{.spec}-file contains the information about the functions,
|
|
|
|
variables, and constants that are contained in a DLL (dynamic link
|
|
|
|
library).
|
|
|
|
|
|
|
|
To be able to interpret the contents of a @file{.spec}-file, you must
|
|
|
|
know about the concept of ordinals.
|
|
|
|
@menu
|
|
|
|
* The general format:: General format conventions.
|
|
|
|
* Ordinals:: Ordinals are indexes of entry
|
|
|
|
points into DLL's.
|
|
|
|
* Spec file header:: The header information.
|
|
|
|
* Variable entry points:: Entries for DLL variables.
|
|
|
|
* Function entry points:: Entries for DLL functions.
|
|
|
|
* Special entries:: Entries for stubs, dummy
|
|
|
|
functions, Wine symbols, and
|
|
|
|
constant values.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node The general format, Ordinals, , The spec files
|
|
|
|
@subsubsection The general format
|
|
|
|
@cindex format of spec files
|
|
|
|
@cindex spec files format
|
|
|
|
|
|
|
|
The @file{.spec}-file contains a header and a sequence of declarations.
|
|
|
|
Each declaration describes an ordinal.
|
|
|
|
|
|
|
|
The header gives general information about the DLL and its properties.
|
|
|
|
|
|
|
|
Ordinal declarations are optional. That means that there is a default
|
|
|
|
behaviour assigned to ordinals which are not mentioned in the
|
|
|
|
@file{.spec}-file. The default handler function of an ordinal will print
|
|
|
|
an error message when called.
|
|
|
|
|
|
|
|
Comments are indicated by hash marks (@samp{#}); everything between a
|
|
|
|
hash mark and the end of the line is ignored.
|
|
|
|
|
|
|
|
Empty lines are allowed.
|
|
|
|
@* FIXME: is that so?
|
|
|
|
|
|
|
|
@node Ordinals, Spec file header, The general format, The spec files
|
|
|
|
@subsubsection Ordinals
|
|
|
|
@cindex ordinals in DLL's
|
|
|
|
@cindex DLL ordinals
|
|
|
|
|
|
|
|
All references to DLL objects like functions or variables are indexed by
|
|
|
|
unique nonnegative numbers. These numbers are called
|
|
|
|
@dfn{ordinals}. Apparently, a program can refer to a DLL function or
|
|
|
|
variable by specifying its name or its ordinal. Although reference by
|
|
|
|
name is the common usage, some program parts (notably DLL's themselves)
|
|
|
|
sometimes refer to DLL entries by ordinal. Therefore, the ordinals
|
|
|
|
cannot be chosen arbitrarily.
|
1997-08-24 18:00:30 +02:00
|
|
|
|
|
|
|
Regular programs that are compiled and linked against @mswindows{} DLL's
|
|
|
|
will import DLL functions by name. This is therefore the default
|
|
|
|
behaviour. Most DLL functions will be imported by name in all cases.
|
|
|
|
Apparently, the @WIN32{} DLL's even show some difference in the mapping
|
|
|
|
of functions and ordinals on @WINNT{} and @WIN95{}. For most DLL
|
|
|
|
functions, the ordinal number will not matter.
|
|
|
|
|
|
|
|
There are some exceptions to that. Notable the KERNEL32 ordinals below
|
|
|
|
100 are (presently) unnamed and undocumented functions which can only be
|
|
|
|
imported by ordinal. These functions are called by some @mswindows{}
|
|
|
|
programs. Also the @file{shell32.dll} functions are reported to be
|
|
|
|
imported by ordinal in some other DLL's.
|
|
|
|
|
|
|
|
@xref{Getting information on the API}, for sources of further information.
|
1997-08-04 18:34:36 +02:00
|
|
|
|
|
|
|
@node Spec file header, Variable entry points, Ordinals, The spec files
|
|
|
|
@subsubsection The header of a @file{.spec}-file
|
|
|
|
|
|
|
|
The @file{.spec}-file starts with two mandatory definitions. The first
|
|
|
|
line gives the name of the DLL which the @file{.spec}-file describes,
|
|
|
|
@example
|
|
|
|
name @var{NAME}
|
|
|
|
@end example
|
|
|
|
where @var{NAME} is the name of the DLL. The next line defines the type
|
|
|
|
of the DLL,
|
|
|
|
@example
|
|
|
|
type @var{TYPE}
|
|
|
|
@end example
|
|
|
|
with @var{TYPE} being either @samp{win16} or @samp{win32}.
|
|
|
|
|
|
|
|
An optional statement of the form
|
|
|
|
@example
|
|
|
|
base @var{ORDINAL}
|
|
|
|
@end example
|
|
|
|
can be used to define the offset of the first ordinal. @var{ORDINAL}
|
|
|
|
must be an integer number. If no base is specified, the offset is zero.
|
|
|
|
@* FIXME: is this the offset of the first or an offset that is added to all
|
|
|
|
ordinals?
|
|
|
|
what is the offset? Is it added to the ordinals, or is it an address, or
|
|
|
|
xxx?
|
|
|
|
|
|
|
|
An optional statement like
|
|
|
|
@example
|
|
|
|
heap @var{SIZE}
|
|
|
|
@end example
|
|
|
|
can be used to define the size of the module local heap. This is only
|
|
|
|
used for @WIN16{} DLL's. The local heap is the place where the segments
|
|
|
|
of 16 bit programs can locally allocate memory, without interfering with
|
|
|
|
one another. The default size of the local heap, if not specified, is 0.
|
|
|
|
|
|
|
|
@* FIXME: to my impression, a local heap in DLL's would only be required
|
|
|
|
if DLL functions used it. As all DLL functions in Wine are truly 32 bit
|
|
|
|
functions that are mapped from 16 bit on being called and back to 16 bit
|
|
|
|
on returning, a local heap should never be necessary.
|
|
|
|
If I receive a confirmation of that here, I will state so. Otherwise I
|
|
|
|
am missing some information on local heaps.
|
|
|
|
But why is a heap defined in user.spec and gdi.spec?
|
|
|
|
|
|
|
|
@node Variable entry points, Function entry points, Spec file header, The spec files
|
|
|
|
@subsubsection Variable entry points of @file{.spec}-files
|
|
|
|
|
|
|
|
You can declare an ordinal that holds data. Data items may be of 8, 16,
|
|
|
|
or 32 bit in size.
|
|
|
|
|
|
|
|
@example
|
|
|
|
@var{ORDINAL} @var{VARTYPE} @var{EXPORTNAME} (@var{DATA} @var{[DATA @dots{}]})
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@var{ORDINAL} is the ordinal number corresponding to the
|
|
|
|
variable. @var{VARTYPE} must be @samp{byte}, @samp{word}, or
|
|
|
|
@samp{long}, for 8, 16, or 32 bits respectively. @var{EXPORTNAME} will
|
|
|
|
be the name available for dynamic linking. @var{DATA} can be a decimal
|
|
|
|
number or a hex number preceded by @samp{0x}. Each @var{DATA} item defines
|
|
|
|
a unit of storage.
|
|
|
|
|
|
|
|
The following example defines the variable @samp{VariableA} at ordinal
|
|
|
|
2, containing 4 bytes:
|
|
|
|
@example
|
|
|
|
2 byte VariableA(-1 0xff 0 0)
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
|
|
@node Function entry points, Special entries, Variable entry points, The spec files
|
|
|
|
@subsubsection Function entry points of @file{.spec}-files
|
|
|
|
|
|
|
|
@example
|
|
|
|
@var{ORDINAL} @var{FUNCTYPE} @var{EXPORTNAME} (@var{[ARGTYPE} @dots{} @var{]}) @var{HANDLERNAME}
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@var{ORDINAL} is the ordinal number corresponding to the
|
|
|
|
function. @var{FUNCTYPE} must be chosen from this table:
|
|
|
|
@table @samp
|
|
|
|
@item pascal16
|
|
|
|
A @WIN16{} function that returns a 16 bit value.
|
|
|
|
@item pascal
|
|
|
|
A @WIN16{} function that returns a 32 bit value.
|
|
|
|
@item register
|
|
|
|
A function using CPU registers to pass arguments.
|
|
|
|
@item stdcall
|
1997-08-24 18:00:30 +02:00
|
|
|
A normal @WIN32{} function. @xref{Investigating the undocumented API},
|
|
|
|
for an explanation of the stdcall calling convention.
|
1997-08-04 18:34:36 +02:00
|
|
|
@item cdecl
|
|
|
|
A @WIN32{} function using the C calling conventions. (This is presently
|
|
|
|
only used for the built-in functions of the C runtime system).
|
|
|
|
@end table
|
|
|
|
|
|
|
|
@var{EXPORTNAME} specifies the name (prototype) available for dynamic
|
|
|
|
linking.
|
|
|
|
|
|
|
|
@var{ARGTYPE} must be chosen from this table:
|
|
|
|
@table @samp
|
|
|
|
@item byte
|
|
|
|
An 8 bit argument. Can be used in @WIN16{} functions only.
|
|
|
|
@item word
|
|
|
|
A 16 bit argument. Can be used in @WIN16{} functions only.
|
|
|
|
@item long
|
|
|
|
A 32 bit argument. Can be used in @WIN16{} or @WIN32{} functions.
|
|
|
|
@item ptr
|
|
|
|
A linear pointer, unsegmented. Can be used in @WIN16{} or @WIN32{}
|
|
|
|
functions.
|
|
|
|
@item str
|
|
|
|
A linear pointer, unsegmented, pointing to a null-terminated string.
|
|
|
|
Can be used in @WIN16{} or @WIN32{} functions.
|
|
|
|
@item s_byte
|
|
|
|
A signed 8 bit argument. Can be used in @WIN16{} functions only.
|
|
|
|
@item s_word
|
|
|
|
A signed 16 bit argument. Can be used in @WIN16{} functions only.
|
|
|
|
@item s_long
|
|
|
|
A signed 32 bit argument. Can be used in @WIN16{} or @WIN32{}
|
|
|
|
functions.
|
|
|
|
@item segptr
|
|
|
|
A segmented pointer. Can be used in @WIN16{} functions only.
|
|
|
|
@item segstr
|
|
|
|
A segmented pointer to a null-terminated string. Can be used in
|
|
|
|
@WIN16{} functions only.
|
|
|
|
@end table
|
|
|
|
|
|
|
|
@var{HANDLERNAME} is the name of the actual Wine function that will
|
|
|
|
process the request in 32-bit mode.
|
|
|
|
|
|
|
|
|
|
|
|
@sp 2
|
|
|
|
Here are some examples. The first example defines an entry point for the
|
|
|
|
@code{CreateWindow()} call (the ordinal 100 is just an example):
|
|
|
|
@example
|
|
|
|
100 pascal CreateWindow(ptr ptr long s_word s_word s_word s_word
|
|
|
|
word word word ptr) WIN_CreateWindow
|
|
|
|
@end example
|
|
|
|
|
|
|
|
The second example defines an entry point for the @code{GetFocus()} call
|
|
|
|
(again, the ordinal 100 is an example):
|
|
|
|
@example
|
|
|
|
100 pascal GetFocus() WIN_GetFocus()
|
|
|
|
@end example
|
|
|
|
|
|
|
|
To declare a function that uses a variable number of arguments, specify
|
|
|
|
the function as taking no arguments. In this special case, in @WIN32{}
|
|
|
|
the called function will be passed a pointer to the first arg; in
|
|
|
|
@WIN16{}, the args are available as @code{CURRENT_STACK16->args}.
|
|
|
|
@* FIXME: create a reference here
|
|
|
|
See the @code{wsprintf}* functions in @file{user.spec} and
|
|
|
|
@file{user32.spec} for an example.
|
|
|
|
|
1997-08-24 18:00:30 +02:00
|
|
|
Sometimes it is not known how many arguments an undocumented DLL
|
|
|
|
function takes. @xref{Getting information on the API}, for some hints on
|
|
|
|
how to proceed in such a case.
|
1997-08-04 18:34:36 +02:00
|
|
|
|
|
|
|
@node Special entries, , Function entry points, The spec files
|
|
|
|
@subsubsection Special entries of @file{.spec}-files
|
|
|
|
|
|
|
|
The @file{.spec}-files offer the possibility to use some special
|
|
|
|
entries. These entries are used for stubs (which allow linking for
|
|
|
|
non-existing functions), dummy functions that do not perform any
|
|
|
|
operations, Wine symbols that must be referenced directly, and constant
|
|
|
|
values.
|
|
|
|
|
|
|
|
|
|
|
|
@strong{Stub ordinals}
|
|
|
|
|
|
|
|
This pseudo function type defines a stub function. It makes the name and
|
|
|
|
ordinal available for dynamic linking, but will terminate execution with
|
|
|
|
an error message if the function is ever called.
|
|
|
|
|
|
|
|
@example
|
|
|
|
@var{ORDINAL} stub @var{EXPORTNAME}
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@var{ORDINAL} is the ordinal number corresponding to the
|
|
|
|
function. @var{EXPORTNAME} specifies the name (prototype) available for dynamic
|
|
|
|
linking.
|
|
|
|
|
|
|
|
@strong{Return ordinals}
|
|
|
|
|
|
|
|
This pseudo function type defines a function entry point whose handler
|
|
|
|
should do nothing but return a value.
|
|
|
|
@example
|
|
|
|
@var{ORDINAL} return @var{EXPORTNAME} @var{ARGLENGTH} @var{RETVALUE}
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@var{ORDINAL} is replaced by the ordinal number corresponding to the
|
|
|
|
function. @var{ARGLENGTH} is the number of bytes that need to be removed
|
1997-08-24 18:00:30 +02:00
|
|
|
from the stack before returning to the caller. @xref{Investigating the
|
|
|
|
undocumented API}, for an explanation of the stdcall calling convention.
|
|
|
|
@var{RETVALUE} is the return value which will be passed back to the
|
|
|
|
caller.
|
1997-08-04 18:34:36 +02:00
|
|
|
|
|
|
|
@strong{Extern ordinals}
|
|
|
|
|
|
|
|
@example
|
|
|
|
@var{ORDINAL} extern @var{EXPORTNAME} @var{SYMBOLNAME}
|
|
|
|
@end example
|
|
|
|
This type defines an entry that simply maps to a Wine symbol
|
|
|
|
(variable or function); @var{EXPORTNAME} will point to the symbol
|
|
|
|
@var{SYMBOLNAME} that must be defined in C code. This type only works with
|
|
|
|
@WIN32{}.
|
|
|
|
|
|
|
|
|
|
|
|
@strong{Equate ordinals}
|
|
|
|
|
|
|
|
@example
|
|
|
|
@var{ORDINAL} equate @var{EXPORTNAME} @var{DATA}
|
|
|
|
@end example
|
|
|
|
|
|
|
|
This type defines an ordinal as an absolute value.
|
|
|
|
@var{ORDINAL} is replaced by the ordinal number corresponding to the
|
|
|
|
entry. @var{EXPORTNAME} will be the name available for dynamic linking.
|
|
|
|
@var{DATA} can be a decimal number or a hex number preceeded by @samp{0x}.
|
|
|
|
|
|
|
|
|
1997-07-20 18:23:21 +02:00
|
|
|
@node Installation, The Wine Project, Reference Manual, Top
|
1997-08-04 18:34:36 +02:00
|
|
|
@chapter Wine installation and configuration
|
1997-07-20 18:23:21 +02:00
|
|
|
FIXME: write installation guide
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* Applying patches:: How to update Wine to a newer version.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node Applying patches, , , Installation
|
|
|
|
@section Applying patches
|
|
|
|
@xref{Creating patches}, for instructions on creating patches.
|
|
|
|
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
@kbd{cd} to the top source directory for Wine, and run
|
|
|
|
@code{patch -p1 < @var{patchfile}}.
|
|
|
|
What needs to be done next depends to some extent on what the
|
|
|
|
patch touches. For small patches which only alter C source, it can be
|
|
|
|
enough to rerun @code{make}. In general, the sequence @code{configure},
|
|
|
|
@code{make depend}, @code{make} is sufficient, unless the patch alters
|
|
|
|
@code{[config.in]}, in which case you must regenerate @code{configure}
|
|
|
|
via @code{make configure} (which just runs @code{autoconf}).
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
@node The Wine Project, , Installation, Top
|
|
|
|
@chapter The Wine project
|
|
|
|
@cindex Wine project contributions
|
|
|
|
@cindex project contributions to Wine
|
|
|
|
|
|
|
|
If you are new to Wine and want to support this project, here are
|
|
|
|
some suggestions.
|
|
|
|
|
|
|
|
@menu
|
1997-08-24 18:00:30 +02:00
|
|
|
* Getting information on the API:: Official and unofficial sources
|
|
|
|
of information on the @WIN32{} API.
|
|
|
|
* Investigating the undocumented API:: You can find out some API
|
|
|
|
information on your own.
|
1997-08-04 18:34:36 +02:00
|
|
|
* Implementing an API type:: How to implement a data type
|
|
|
|
of the API (a checklist).
|
|
|
|
* Implementing an API function:: How to implement one function
|
|
|
|
of the API (a checklist).
|
|
|
|
* API function and type naming:: How to name API functions in Wine.
|
|
|
|
* Creating patches:: How to create patches for Wine.
|
|
|
|
* Adding Documentation:: Templates for the documentation.
|
|
|
|
* File names:: How Wine treats @mswindows{} and
|
|
|
|
@unix{} file names.
|
|
|
|
* Wide character strings:: How Wine treats wide character
|
|
|
|
strings.
|
1997-07-20 18:23:21 +02:00
|
|
|
@end menu
|
|
|
|
|
|
|
|
@xref{Debugging}, for advice on how to debug Wine.
|
|
|
|
@xref{Applying patches}, for instructions on applying patches.
|
|
|
|
|
|
|
|
|
1997-08-24 18:00:30 +02:00
|
|
|
@node Getting information on the API, Investigating the undocumented API, , The Wine Project
|
|
|
|
@section Official and unofficial documentation on the @mswindows{} API
|
|
|
|
@cindex documentation of API functions
|
|
|
|
@cindex undocumented API functions
|
|
|
|
|
|
|
|
|
|
|
|
@strong{Official documentation}
|
|
|
|
|
|
|
|
For documentation on @WIN32{} API functions, you might try one of these
|
|
|
|
sources:
|
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
|
|
|
|
@item
|
|
|
|
There is a free online version of the MSDN library (including
|
|
|
|
documentation for the @WIN32{} API) on
|
|
|
|
@url{http://www.microsoft.com/msdn/}.
|
|
|
|
|
|
|
|
@item
|
|
|
|
The @WINNT{} DDK gives information about some kernel (``executive'')
|
|
|
|
routines. Some of the function documentation might also apply to user
|
|
|
|
accessible DLL's.
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
@strong{Unofficial documentation}
|
|
|
|
|
|
|
|
Not all of the @WIN32{} API is well documented. Some functions are
|
|
|
|
obscured, and undocumented. @xref{Ordinals}, for information about
|
|
|
|
undocumented functions imported by ordinal. Getting to know what these
|
|
|
|
functions do can be tiresome and tedious. Here is a quote from a
|
|
|
|
news posting concerning two books that might help:
|
|
|
|
@c From: vischne@ibm.net-nospam (root)
|
|
|
|
@c Subject: Re: Functions
|
|
|
|
@c Newsgroups: comp.emulators.ms-windows.wine
|
|
|
|
@c Date: 24 Jul 97 16:45:11 GMT
|
|
|
|
@c Organization: The Light
|
|
|
|
@c NNTP-Posting-Host: 129.37.246.203
|
|
|
|
@c Message-ID: <33d78697.0@news3.ibm.net>
|
|
|
|
|
|
|
|
@quotation
|
|
|
|
Well actually, there are at least _two_ books that address these problems.
|
|
|
|
One is by Matt Pietrek, ``Windows 95 System Programming Secrets'', which
|
|
|
|
gives some auxiliary programs for helping ferret out the information, and
|
|
|
|
the other is by Shulman, ``Undocumented Windows 95''.
|
|
|
|
@end quotation
|
|
|
|
|
|
|
|
@xref{Ordinals}, for some notes on undocumented kernel functions.
|
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
|
|
|
|
@item
|
|
|
|
@cindex book on undocumented API features by Pietrik
|
|
|
|
``Windows 95 System Programming Secrets'' @*
|
|
|
|
by Matt Pietrek @*
|
|
|
|
Book & Disk Edition @*
|
|
|
|
Paperback, 778 pages @*
|
|
|
|
Published by IDG Books Worldwide @*
|
|
|
|
Publication date: November 1, 1995 @*
|
|
|
|
Dimensions (in inches): 9.25 x 7.42 x 2.06 @*
|
|
|
|
ISBN: 1568843186 @*
|
|
|
|
|
|
|
|
@item
|
|
|
|
@cindex book on undocumented API features by Schulman
|
|
|
|
``Undocumented Windows; A Programmers Guide
|
|
|
|
to Reserved Microsoft Windows API Functions'' @*
|
|
|
|
by Andrew Schulman @*
|
|
|
|
Paperback, 715 pages @*
|
|
|
|
Published by Addison-Wesley Pub Co @*
|
|
|
|
Publication date: February 1, 1994 @*
|
|
|
|
Dimensions (in inches): 9.11 x 7.37 x 1.53 @*
|
|
|
|
ISBN: 0201608340 @*
|
|
|
|
|
|
|
|
@item
|
|
|
|
More books on these topics (including Schulman and Pietrik): @*
|
|
|
|
@url{http://www.sonic.net/~undoc/bookstore.html}
|
|
|
|
|
|
|
|
@item
|
|
|
|
More details about calling undocumented functions can be found at
|
|
|
|
@url{http://ftp.uni-mannheim.de/info/OReilly/windows/win95.update/dirty.html}.
|
|
|
|
|
|
|
|
@item
|
|
|
|
In 1993 Dr. Dobbs Journal published a column called ``Undocumented
|
|
|
|
Corner''.
|
|
|
|
@item
|
|
|
|
You might want to check out BYTE from December 1983 as well.
|
|
|
|
@* FIXME: is that to be taken seriously?
|
|
|
|
@item
|
|
|
|
And you might try to find out something on your own. @xref{Investigating
|
|
|
|
the undocumented API}, for details.
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
But, all in all, @url{news:comp.emulators.ms-windows.wine} says
|
|
|
|
@c From: dacut@henry.ece.cmu.edu (David A. Cuthbert)
|
|
|
|
@c Subject: Re: Getting Internet Explorer to work
|
|
|
|
@c Newsgroups: comp.emulators.ms-windows.wine
|
|
|
|
@c Date: 24 Jul 1997 03:10:30 GMT
|
|
|
|
@c Organization: Electrical & Computer Engineering, Carnegie Mellon University
|
|
|
|
@c Reply-To: henry.ece.cmu.edu!dacut
|
|
|
|
@c Message-ID: <5r6h36$86c@fs7.ece.cmu.edu>
|
|
|
|
@c NNTP-Posting-Host: henry.ece.cmu.edu
|
|
|
|
|
|
|
|
@quotation
|
|
|
|
Unfortunately, short of getting something like NuMega's SoftIce, I
|
|
|
|
don't think there's a ``good'' reference on the mystery <100 ordinals in
|
|
|
|
KERNEL32.DLL.
|
|
|
|
@end quotation
|
|
|
|
|
|
|
|
|
|
|
|
@node Investigating the undocumented API, Implementing an API type, Getting information on the API, The Wine Project
|
|
|
|
@section Investigating the undocumented API
|
|
|
|
@cindex undocumented API investigation
|
|
|
|
@cindex parameters of undocumented API functions
|
|
|
|
@cindex stdcall calling convention
|
|
|
|
@cindex C calling convention
|
|
|
|
@cindex API function parameters investigation
|
|
|
|
@cindex stack handling under stdcall calling
|
|
|
|
|
|
|
|
Besides reading the documentation in @ref{Getting information on the API},
|
|
|
|
you can find out some properties of API functions on your own.
|
|
|
|
|
|
|
|
Sometimes it is not known how many arguments an undocumented DLL
|
|
|
|
function takes. Here is a text from a news posting that gives some
|
|
|
|
hints on how you might proceed in this case.
|
|
|
|
|
|
|
|
@c The following text is closely quoted from:
|
|
|
|
@c From: dacut@henry.ece.cmu.edu (David A. Cuthbert)
|
|
|
|
@c Subject: Win32 stub functions (Claus Fischer, please read)
|
|
|
|
@c Newsgroups: comp.emulators.ms-windows.wine
|
|
|
|
@c Date: 7 Aug 1997 22:33:09 GMT
|
|
|
|
@c Organization: Electrical & Computer Engineering, Carnegie Mellon University
|
|
|
|
@c Reply-To: henry.ece.cmu.edu!dacut
|
|
|
|
@c Message-ID: <5sdif5$qt3@fs7.ece.cmu.edu>
|
|
|
|
|
|
|
|
The problem with implementing stubs for @WIN32{} functions is that it is
|
|
|
|
not sufficient to return a default value (usually 0) and leave the
|
|
|
|
stack the way we found it. For most @WIN32{} functions -- those that use
|
|
|
|
the @dfn{stdcall} calling convention -- the arguments sent to the function
|
|
|
|
are removed from the stack.
|
|
|
|
|
|
|
|
Some background: On the i386 class of machines, stack entries are
|
|
|
|
usually dword (4 bytes) in size, little-endian. The stack grows
|
|
|
|
downward in memory. The stack pointer, maintained in the @samp{esp}
|
|
|
|
register, points to the last valid entry; thus, the operation of
|
|
|
|
pushing a value onto the stack involves decrementing @samp{esp} and then
|
|
|
|
moving the value into the memory pointed to by esp (i.e., @code{push p}
|
|
|
|
in assembly resembles @code{*(--esp) = p;} in C). Removing (popping)
|
|
|
|
values off the stack is the reverse (i.e., @code{pop p} corresponds to
|
|
|
|
@code{p = *(esp++);}).
|
|
|
|
|
|
|
|
In the @dfn{stdcall} calling convention, arguments are pushed onto the
|
|
|
|
stack right-to-left. For example, the C call
|
|
|
|
|
|
|
|
@example
|
|
|
|
myfunction(40, 20, 70, 30);
|
|
|
|
@end example
|
|
|
|
|
|
|
|
is expressed in Intel assembly as:
|
|
|
|
|
|
|
|
@example
|
|
|
|
push 30
|
|
|
|
push 70
|
|
|
|
push 20
|
|
|
|
push 40
|
|
|
|
call myfunction
|
|
|
|
@end example
|
|
|
|
|
|
|
|
In addition, the called function is responsible for removing the
|
|
|
|
arguments off the stack. Thus, before the call to myfunction, the
|
|
|
|
stack would look like:
|
|
|
|
|
|
|
|
@example
|
|
|
|
[local variable or temporary]
|
|
|
|
[local variable or temporary]
|
|
|
|
30
|
|
|
|
70
|
|
|
|
20
|
|
|
|
esp -> 40
|
|
|
|
@end example
|
|
|
|
|
|
|
|
After the call returns, it should look like:
|
|
|
|
|
|
|
|
@example
|
|
|
|
[local variable or temporary]
|
|
|
|
esp -> [local variable or temporary]
|
|
|
|
@end example
|
|
|
|
|
|
|
|
To restore the stack to this state, the called function must know how
|
|
|
|
many arguments to remove (which is the number of arguments it takes).
|
|
|
|
This is a problem if the function is undocumented.
|
|
|
|
|
|
|
|
One way to attempt to document the number of arguments each function
|
|
|
|
takes is to create a wrapper around that function that detects the
|
|
|
|
stack offset. @file{WinRelay} (see below) was written to create such
|
|
|
|
wrappers. Essentially, each wrapper assumes that the function will take
|
|
|
|
a large number of arguments (by default, 64 in @file{WinRelay}). The
|
|
|
|
wrapper copies each of these arguments into its stack, calls the actual
|
|
|
|
function, and then calculates the number of arguments by checking esp
|
|
|
|
before and after the call.
|
|
|
|
|
|
|
|
@cindex bsod (blue screen of death)
|
|
|
|
@cindex blue screen of death
|
|
|
|
The main problem with this scheme is that the function must actually
|
|
|
|
be called from another program. Many of these functions are seldom
|
|
|
|
used. An attempt was made to aggressively query each function in a
|
|
|
|
given library (@file{ntdll.dll}) by passing 64 arguments, all 0, to each
|
|
|
|
function. Unfortunately, @WINNT40{} quickly goes to a blue screen
|
|
|
|
of death (@dfn{bsod}), even if the program is run from a
|
|
|
|
non-administrator account.
|
|
|
|
|
|
|
|
Another method that has been much more successful is to attempt to
|
|
|
|
figure out how many arguments each function is removing from the
|
|
|
|
stack. This instruction, @code{ret hhll} (where @samp{hhll} is the
|
|
|
|
number of bytes to remove, i.e. the number of arguments times 4), contains
|
|
|
|
the bytes @samp{0xc2 ll hh} in memory. It is a reasonable assumption
|
|
|
|
that few, if any, functions take more than 16 arguments; therefore,
|
|
|
|
@samp{hh} is 0x0 and @samp{ll} is less than 0x40. This utility,
|
|
|
|
@file{MakeSpec} (see below), simply queries the address of a function
|
|
|
|
and looks for the first occurrence of the bytes @samp{0xc2 ll 0x0},
|
|
|
|
where @math{@samp{ll} <= 0x40}.
|
|
|
|
|
|
|
|
Of course, this is not without errors. @code{ret 00ll} is not the only
|
|
|
|
instruction that can have the byte sequence @samp{0xc2 ll 0x0}; for
|
|
|
|
example, @code{push 0x000040c2} has the byte sequence
|
|
|
|
@samp{0x68 0xc2 0x40 0x0 0x0}, which matches the above. Properly, the
|
|
|
|
utility should look for this sequence only on an instruction boundary;
|
|
|
|
unfortunately, finding instruction boundaries on an i386 requires
|
|
|
|
implementing a full disassemble -- quite a daunting task. Besides,
|
|
|
|
the probability of having such a byte sequence that is not the actual
|
|
|
|
return instruction is fairly low.
|
|
|
|
|
|
|
|
Much more troublesome is the non-linear flow of a function. For
|
|
|
|
example, consider the following two functions:
|
|
|
|
|
|
|
|
@example
|
|
|
|
somefunction1:
|
|
|
|
jmp somefunction1_impl
|
|
|
|
|
|
|
|
somefunction2:
|
|
|
|
ret 0004
|
|
|
|
|
|
|
|
somefunction1_impl:
|
|
|
|
ret 0008
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@file{MakeSpec} would incorrectly list both @code{somefunction1} and
|
|
|
|
@code{somefunction2} as taking only a single argument, whereas
|
|
|
|
@code{somefunction1} really takes two arguments.
|
|
|
|
|
|
|
|
With these limitations in mind, it is possible to implement more stubs
|
|
|
|
in Wine and, eventually, the functions themselves.
|
|
|
|
|
|
|
|
@c end of quote
|
|
|
|
|
|
|
|
The program @file{WinRelay} can be downloaded from
|
|
|
|
@url{http://www.ece.cmu.edu/afs/ece/usr/dacut/www/src},
|
|
|
|
and @file{MakeSpec} will be available from the same location. You can
|
|
|
|
compile them with Borland's C++Builder; you should not optimize when
|
|
|
|
compiling (@file{WinRelay} needs the stack frames).
|
|
|
|
|
|
|
|
|
|
|
|
@node Implementing an API type, Implementing an API function, Investigating the undocumented API, The Wine Project
|
1997-08-04 18:34:36 +02:00
|
|
|
@section Implementing an API type
|
|
|
|
|
|
|
|
Here is a checklist that should help you writing your first API type. It
|
|
|
|
will of course not tell you which elements to put into the type
|
|
|
|
(assuming it is a structure), but it should help you along the way of
|
|
|
|
integrating this type into Wine.
|
|
|
|
@xref{Implementing an API function}, for comparison.
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
@item
|
|
|
|
Find out how the type should be named in Wine and in the DLL's.
|
|
|
|
@xref{API function and type naming}, for details.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Find out where the type should go. Please try to keep the header files
|
|
|
|
structure as similar to @mswindows{} as possible.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Prepare for the later patch (by saving the original files before you
|
|
|
|
work on them). @xref{Creating patches}, for details.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Put the type declaration into the header file.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Make sure the declaration is syntactically correct, i.e. it does not
|
|
|
|
keep Wine from compiling.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Make sure the declared type is layout-compatible with
|
|
|
|
@mswindows{}-compiled types. Especially keep an eye on the packing of
|
|
|
|
the structure.
|
|
|
|
@* FIXME: a reference to packed structures here.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Build Wine and test the type, if possible. If you cannot test the
|
|
|
|
type by implementing a proper API function, write a small test program
|
|
|
|
to test it on its own. Or rather stop here.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Write the documentation of the type in the @file{wine.texinfo}
|
|
|
|
file. @xref{Adding Documentation}, for details.
|
|
|
|
With types, be especially careful and document all the details. Also
|
|
|
|
document all constants or flags that are used in the type.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Create an entry in the @file{ChangeLog} file.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Collect some of these changes, and create a patch. @xref{Creating
|
|
|
|
patches}, for details.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Mail the patch to Alexandre Julliard, @email{julliard@@lrc.epfl.ch}.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Wait for the patch to appear in the official distribution.
|
|
|
|
@end enumerate
|
|
|
|
|
|
|
|
|
|
|
|
@node Implementing an API function, API function and type naming, Implementing an API type, The Wine Project
|
|
|
|
@section Implementing an API function
|
|
|
|
|
|
|
|
Here is a checklist that should help you writing your first API
|
|
|
|
function. It will of course not tell you what to do in the function,
|
|
|
|
but it should help you along the way of integrating this function into
|
|
|
|
Wine.
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
@item
|
|
|
|
Make sure all data types that appear in function arguments are properly
|
|
|
|
declared in Wine. Otherwise, start with the data types.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Find out how the function should be named in Wine and in the DLL's.
|
|
|
|
@xref{API function and type naming}, for details.
|
|
|
|
|
1997-08-24 18:00:30 +02:00
|
|
|
@item
|
|
|
|
Find out what the function should do. This may be tricky for
|
|
|
|
undocumented functions. @xref{Getting information on the API}, for some
|
|
|
|
hints.
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@item
|
|
|
|
Find out where the function should go:
|
|
|
|
@enumerate
|
|
|
|
@item
|
|
|
|
Which header file for the prototype.
|
|
|
|
@item
|
|
|
|
Which C source file.
|
|
|
|
@item
|
|
|
|
Which DLL(s), and which ordinal the function will take there. Perhaps
|
|
|
|
the function name is already present in one of the @file{.spec}-files in
|
|
|
|
the @file{if1632} directory.
|
|
|
|
@end enumerate
|
|
|
|
|
|
|
|
@item
|
|
|
|
Prepare for the later patch (by saving the original files before you
|
|
|
|
work on them). @xref{Creating patches}, for details.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Put the prototype into the header file, and the code into the C file.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Make sure the code compiles.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Create or change the information for the DLL entry points in the
|
|
|
|
@file{.spec}-file in the @file{if1632} directory.
|
|
|
|
@xref{The build program}, for details of the DLL spec files.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Build Wine and test the function, if possible. If you cannot test the
|
|
|
|
function in Wine, write a small test program to test it on its own.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Write the documentation of the function in the @file{wine.texinfo}
|
|
|
|
file. @xref{Adding Documentation}, for details.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Create an entry in the @file{ChangeLog} file.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Collect some of these changes, and create a patch. @xref{Creating
|
|
|
|
patches}, for details.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Mail the patch to Alexandre Julliard, @email{julliard@@lrc.epfl.ch}.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Wait for the patch to appear in the official distribution.
|
|
|
|
@end enumerate
|
|
|
|
|
|
|
|
|
|
|
|
@node API function and type naming, Creating patches, Implementing an API function, The Wine Project
|
|
|
|
@section API function and data type naming conventions
|
|
|
|
@cindex API function names
|
|
|
|
@cindex API type names
|
|
|
|
@cindex names of API functions and types
|
|
|
|
@cindex naming scheme for API functions and types
|
|
|
|
@cindex suffixes for API functions and types
|
|
|
|
@cindex endings of API function and type names
|
|
|
|
|
|
|
|
This section describes Wine's naming scheme for API functions and data
|
|
|
|
types.
|
|
|
|
|
|
|
|
The purpose of these naming conventions is to ensure that
|
|
|
|
@itemize @bullet
|
|
|
|
@item
|
|
|
|
both the @WIN16{} and @WIN32{} API are supported within the same source
|
|
|
|
code,
|
|
|
|
@item
|
|
|
|
both wide character functions (with @unicode{} strings) and 8 bit
|
|
|
|
character functions (with @ascii{} or extended @ascii{} encoding) are
|
|
|
|
supported, and
|
|
|
|
@item
|
|
|
|
the source code can be shared between the emulator and the library
|
|
|
|
version of Wine.
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
A function or data type whose name in the @mswindows{} API is @var{xxx}
|
|
|
|
will in the Wine code have the following name(s):
|
|
|
|
@table @code
|
|
|
|
@item @var{xxx}16
|
|
|
|
This is the version for the 16 bit API. You might call it the ``16 bit
|
|
|
|
version'' except that the function itself of course runs in true 32 bit
|
|
|
|
mode (being part of Wine). So, the correct meaning of the suffix is that
|
|
|
|
this function is part of the 16 bit API.
|
|
|
|
@item @var{xxx}32
|
|
|
|
This is the version for the 32 bit API. Use this suffix only if the
|
|
|
|
function does not use character strings in its parameters or return
|
|
|
|
values. Otherwise use the next two.
|
|
|
|
@item @var{xxx}32A
|
|
|
|
This is the version for the 32 bit API which uses @ascii{} strings (or
|
|
|
|
rather, strings with 8 bit character encodings, i.e. the standard C
|
|
|
|
@code{char} type). This version always goes together with another
|
|
|
|
version, using the next suffix.
|
|
|
|
@item @var{xxx}32W
|
|
|
|
This is the version for the 32 bit API which uses @unicode{} strings,
|
|
|
|
i.e. strings with wide characters. It goes together with the @ascii{}
|
|
|
|
version.
|
|
|
|
@end table
|
|
|
|
|
|
|
|
So, where the @mswindows{} API offers one name, Wine actually has two or
|
|
|
|
three different functions implemented (which will hopefully share a
|
|
|
|
large part of the code).
|
|
|
|
|
|
|
|
Wine allows to use its API functions in two ways. The emulator part of
|
|
|
|
Wine provides DLL's for the @mswindows{} programs it can run. The
|
|
|
|
library part of Wine provides a @unix{} programmer with the facility to
|
|
|
|
use the Wine API's in a standard @unix{} program.
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* Access from the emulator:: How to access API functions and types
|
|
|
|
from applications that are run in the
|
|
|
|
Wine emulator.
|
|
|
|
* Access in the library:: How to access API functions and types
|
|
|
|
from applications that are linked with
|
|
|
|
the Wine library.
|
|
|
|
* Access from inside Wine:: How to access API functions and types
|
|
|
|
from inside the Wine code.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node Access from the emulator, Access in the library, , API function and type naming
|
|
|
|
@subsection Accessing API functions and types from the emulator
|
|
|
|
@cindex access to DLL API functions and types
|
|
|
|
@cindex Wine emulator access to API functions and types
|
|
|
|
@cindex emulator access to Wine API functions and types
|
|
|
|
|
|
|
|
The emulator part of Wine provides the hooks for dynamically linking the
|
|
|
|
API functions to the @mswindows{} executables (@file{.EXE}-files). The
|
|
|
|
Wine emulator contains all versions (16 or 32 bit, @ascii{} or
|
|
|
|
@unicode{}) of the API functions in one executable. The emulator
|
|
|
|
performs a mapping from the @mswindows{} name of the function,
|
|
|
|
by which the executable calls it, to one of the Wine internal names that
|
|
|
|
have been used in coding it.
|
|
|
|
|
|
|
|
This mapping is done by the built-in DLL handling code of Wine. A
|
|
|
|
programmer of Wine has to declare the function in one of the virtual
|
|
|
|
DLL's that are provided by Wine. The declarations are done in the
|
|
|
|
@file{.spec}-files in the @file{if1632/} directory. @xref{The build
|
|
|
|
program}, for details.
|
|
|
|
|
|
|
|
The @mswindows{} application simply calls the API function by its
|
|
|
|
standard @mswindows{} name. Wine will apply the correct mapping
|
|
|
|
according to Wine's selected appearance (as a 16 bit or 32 bit emulator,
|
|
|
|
which is a parameter on invocation of Wine).
|
|
|
|
|
|
|
|
|
|
|
|
@node Access in the library, Access from inside Wine, Access from the emulator, API function and type naming
|
|
|
|
@subsection Accessing API functions and types in the library
|
|
|
|
@cindex Wine library API function and type access
|
|
|
|
@cindex access to Wine library API functions and types
|
|
|
|
|
|
|
|
If Wine is built as a library, and linked to a user-level main program,
|
|
|
|
the user will also use the standard @mswindows{} names for the API
|
|
|
|
functions.
|
|
|
|
|
|
|
|
Some macros are defined in @file{include/wintypes.h} which perform the
|
|
|
|
necessary name mappings.
|
|
|
|
|
|
|
|
These macros are (see the examples below):
|
|
|
|
@deffn_winemacro WINELIB_NAME (@var{xxx})
|
|
|
|
This macro replaces @var{xxx} by one of @var{xxx}16 or
|
|
|
|
@var{xxx}32, depending on the definition of the symbols
|
|
|
|
@code{WINELIB16} and @code{WINELIB32}. @var{xxx} should
|
|
|
|
be the name of an API function that uses no string arguments.
|
|
|
|
Use this macro with a @code{#define} to establish the API name @var{xxx}.
|
|
|
|
@end deffn
|
|
|
|
@deffn_winemacro WINELIB_NAME_AW (@var{xxx})
|
|
|
|
This macro replaces @var{xxx} by one of @var{xxx}16, @var{xxx}32A, or
|
|
|
|
@var{xxx}32W, depending on the definition of the symbols
|
|
|
|
@code{WINELIB16}, @code{WINELIB32}, and @code{UNICODE}. @var{xxx} should
|
|
|
|
be the name of an API function that uses string arguments.
|
|
|
|
Use this macro with a @code{#define} to establish the API name @var{xxx}.
|
|
|
|
@end deffn
|
|
|
|
@deffn_winemacro DECL_WINELIB_TYPE (@var{xxx})
|
|
|
|
This macro declares @var{xxx} to be an equivalent to @var{xxx}16 or
|
|
|
|
@var{xxx}32, depending on the definition of the symbols
|
|
|
|
@code{WINELIB16} and @code{WINELIB32}. @var{xxx} should
|
|
|
|
be the name of an API data type that contains no string arguments.
|
|
|
|
@end deffn
|
|
|
|
@deffn_winemacro DECL_WINELIB_TYPE_AW (@var{xxx})
|
|
|
|
This macro declares the type @var{xxx} to be an equivalent to
|
|
|
|
@var{xxx}16, @var{xxx}32A, or @var{xxx}32W, depending on the definition
|
|
|
|
of the symbols @code{WINELIB16}, @code{WINELIB32}, and
|
|
|
|
@code{UNICODE}. @var{xxx} should be the name of an API data type that
|
|
|
|
contains string arguments.
|
|
|
|
@end deffn
|
|
|
|
|
|
|
|
If Wine is compiled as an emulator, these macros have no effect, for the
|
|
|
|
mapping is then done by the DLL code. This means that within Wine the
|
|
|
|
name @var{xxx} itself will not be defined.
|
|
|
|
|
|
|
|
Note: If the definition of @var{xxx} is exactly the same in @WIN16{} and
|
|
|
|
@WIN32{}, you can simply use the same name as @mswindows{}.
|
|
|
|
|
|
|
|
Here are some examples:
|
|
|
|
@example
|
|
|
|
/* A simple type without strings */
|
|
|
|
typedef short INT16;
|
|
|
|
typedef int INT32;
|
|
|
|
DECL_WINELIB_TYPE(INT);
|
|
|
|
|
|
|
|
/* A type with strings */
|
|
|
|
typedef struct @{ /* Win32 ASCII data structure */ @} WNDCLASS32A;
|
|
|
|
typedef struct @{ /* Win32 Unicode data structure */ @} WNDCLASS32W;
|
|
|
|
typedef struct @{ /* Win16 data structure */ @} WNDCLASS16;
|
|
|
|
DECL_WINELIB_TYPE_AW(WNDCLASS);
|
|
|
|
|
|
|
|
/* A function with strings */
|
|
|
|
ATOM RegisterClass16( WNDCLASS16 * );
|
|
|
|
ATOM RegisterClass32A( WNDCLASS32A * );
|
|
|
|
ATOM RegisterClass32W( WNDCLASS32W * );
|
|
|
|
#define RegisterClass WINELIB_NAME_AW(RegisterClass)
|
|
|
|
@end example
|
|
|
|
|
|
|
|
The Winelib user can then say (in the application program):
|
|
|
|
@example
|
|
|
|
INT i;
|
|
|
|
WNDCLASS wc = @{ @dots{} @};
|
|
|
|
RegisterClass( &wc );
|
|
|
|
@end example
|
|
|
|
and this will use the correct declaration depending on the definitions
|
|
|
|
@code{WINELIB16}, @code{WINELIB32}, and @code{UNICODE}.
|
|
|
|
|
|
|
|
Here are the primary defines that are used when Wine is compiled as a
|
|
|
|
library:
|
|
|
|
@defvr_cwine WINELIB16
|
|
|
|
If this @code{#define} is set, the Wine library is to be compiled in its
|
|
|
|
16 bit form. That means, the 16 bit variants of all functions will be
|
|
|
|
used and the appearance of the application linked with the Wine library
|
|
|
|
will be that of a 16 bit application. Of course, both the application
|
|
|
|
and the Wine library function really run in 32 bit mode. The switch only
|
|
|
|
selects the function with the name ending in @code{@dots{}16}, which
|
|
|
|
will perhaps have a behaviour different from its 32 bit counterpart.
|
|
|
|
@end defvr
|
|
|
|
@defvr_cwine WINELIB32
|
|
|
|
If this @code{#define} is set, the Wine library is to be compiled in its
|
|
|
|
32 bit form. That means, the 32 bit variants of all functions will be
|
|
|
|
used and the appearance of the application linked with the Wine library
|
|
|
|
will be that of a 32 bit application.
|
|
|
|
@end defvr
|
|
|
|
@defvr_cwine UNICODE
|
|
|
|
This @code{define} is used to select one of two possible 32 bit
|
|
|
|
variants. Functions and data types of the 32 bit API come in two
|
|
|
|
flavours: one handling @ascii{} strings (or rather strings with
|
|
|
|
characters encoded in 8 bit), the other @unicode{} strings. This define
|
|
|
|
selects the correct variant. As a user of the Wine library, you are
|
|
|
|
responsible to use the correct character type in your part of the
|
|
|
|
application which accesses the Wine API functions and data types.
|
|
|
|
@end defvr
|
|
|
|
|
|
|
|
These switches are automatically set when Wine is compiled as a library.
|
|
|
|
|
|
|
|
|
|
|
|
@node Access from inside Wine, , Access in the library, API function and type naming
|
|
|
|
@subsection Accessing API functions from within Wine
|
|
|
|
@cindex explicit names of API functions and types
|
|
|
|
|
|
|
|
Within Wine and during the compilation of Wine, you cannot rely on the
|
|
|
|
@mswindows{} names of the API functions and data types. If Wine is
|
|
|
|
compiled as a library, they will be defined; if Wine is compiled as an
|
|
|
|
emulator, they won't.
|
|
|
|
|
|
|
|
You therefore have to access all functions and data types by their full
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
names, with the proper suffix explicitly appended. In Wine, the 16 bit
|
1997-08-04 18:34:36 +02:00
|
|
|
and 32 bit versions of the functions are distinct entities, which might
|
|
|
|
(theoretically) show a completely different behaviour. They may even
|
|
|
|
call each other (and they will quite frequently).
|
|
|
|
|
|
|
|
Therefore Wine is a conglomerate that contains all two or
|
|
|
|
three flavours of each function at once, and exports to the
|
|
|
|
application whichever of these is appropriate. Remember that inside
|
|
|
|
Wine, there is no memory segmentation, so all functions are 32 bit.
|
|
|
|
The 16-to-32 bit mapping is done on exporting the DLL functions.
|
|
|
|
|
|
|
|
|
|
|
|
@node Creating patches, Adding Documentation, API function and type naming, The Wine Project
|
1997-07-20 18:23:21 +02:00
|
|
|
@section Creating patches
|
|
|
|
@xref{Applying patches}, for instructions on applying patches.
|
|
|
|
|
Release 980301
Sun Mar 1 10:45:23 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne_image.c]
Fixed problem with weird DLLs (NE_FFLAGS_SINGLEDATA && DGROUP = 0).
* [msdos/dosmem.c]
Export address for __0000H, too.
* [msdos/dpmi.c]
Changed MemAlloc functions to return less fragmented addresses.
Sat Feb 28 18:50:12 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [scheduler/process.c] [scheduler/sysdeps.c]
Don't use %fs register before threading initialization.
Sat Feb 28 14:04:56 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [configure.in] [include/acconfig.h]
Autoconf macro to check for non-reentrant X libraries.
* [windows/winpos.c]
In SetWindowPos32(), do not cause WM_SIZE messages when the
SWP_NOSIZE flag is specified. This fixes the division-by-zero in
Borland C++ 4.0 "Open Project" menu item.
Sat Feb 28 13:11:26 1998 James Moody <013263m@dragon.acadiau.ca>
* [ole/ole2nls.c]
Changed "English" values from German to English.
* [files/dos_fs.c]
Fixed off-by-one month bug.
Fri Feb 27 22:12:01 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/win.c]
Fix winelib class menu loading bug.
* [include/module.h] [loader/module.c]
LoadModule32 should be implemented in terms of CreateProcess.
* [programs/view/*]
Metafile viewer sample program.
* [documentation/wine.texinfo] [documentation/Makefile.in]
Improvements and additions, HTML target.
Fri Feb 27 04:27:48 1998 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [*/*]
Switched to the new debug messages interface. For more information
please refer to documentation/debug-msgs. Because the new scheme
introduces a new semantic level, I had to manually do through
about 530 dprintf_xxx! The rest of about 2400 where transformed
via a script. Because of the large number of changes that I had
to do, some may have not come out as nicely as I wanted them. If
this is the case, please let me know. There is a lot of work left
to do: -- a few hundred printf's to be converted -- about 2300
fprintf's to be converted -- about 600 FIXME's to be transformed
The problem is that in the above mentioned cases, a lot of manual
intervention is required because a lot of the information is
missing. There are also a lot of other things to be done to the
interface and so forth. I have now ideas for a at least a month
worth of full time work :) I will proceed with many changes in the
next few releases, so please do not start modifing things because
there will be a hell of a lot of conflicts. If you have ideas that
you want to integrate or you want to work on different things,
please coordinate with me.
Thu Feb 26 13:04:29 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [include/windows.h]
First try at OLE date- and time-formatting functions.
Wed Feb 25 11:20:35 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/*.c]
Changed dos device handling, added 'CON' devicehandling.
* [graphics/ddraw.c]
Bug fixes, some additions.
* [if1632/builtin.c][loader/module.c][library/winestub.c]
Small hack so we don't need a dummy BUILTIN_LoadModule
in winestub.c.
* [ole/*][relay32/ole32.spec][if1632/storage.spec]
storage.dll started. winword loads documents (saving
doesn't work yet, dunno why).
Several ole additions, some cleanups and bugfixes.
IMalloc16 implemented.
* [loader/pe_image.c]
Added some comments, fixed circular dll references,
fixed modref ordering, fixed tls allocation.
* [memory/global.c]
Added validity checks before every GET_ARENA_PTR.
(several functions rely on Global* return values
on invalid handles, like IsTask).
Implemented GlobalUnlockFree16.
* [memory/virtual.c]
Replaced dprintf_virtual by fprintf, so we can
do 'info map' again in the debugger. Increase read
linesize for Linux2.1 cases.
* [misc/cpu.c][misc/registry.c]
Moved cpu registry initialization to misc/cpu.c.
* [multimedia/dsound.c]
Enhanced, replaced GETOSPACE bufferingcheck by SETFRAGMENT.
* [relay32/crtdll.spec][relay32/ntdll.spec]
Replaced some ptr by respective 'str' and 'wstr' arguments
for libc functions.
* [scheduler/thread.c]
Added some sanity checks to stackallocation, tlshandling fixed.
* [tools/build.c]
Fixed cdecl argumenttype order (was reversed).
* [win32/ordinals.c]
Implemented KERNEL_449.
* [windows/dinput.c]
Some fixes, needs much more work. Tomb Raider2 works with keyboard ;)
Tue Feb 24 20:46:37 1998 James Juran <jrj120@psu.edu>
* [windows/win.c]
Fixed USER32 ordinal numbers in documentation.
Sat Feb 21 12:30:38 1998 John Richardson <jrichard@zko.dec.com>
* [files/file.c] [include/k32obj.h] [memory/virtual.c]
[scheduler/critsection.c] [scheduler/event.c] [scheduler/handle.c]
[scheduler/k32obj.c] [scheduler/mutex.c] [scheduler/process.c]
[scheduler/semaphore.c] [scheduler/thread.c]
Added generic k32obj read and write routines for k32objs that
support I/O.
* [documentation/console]
Updated console docs.
* [win32/console.c]
Make console work like a k32obj that supports I/O.
* [include/windows.h]
Make WriteFile and ReadFile take HANDLE32 for handle.
Sun Feb 15 14:07:07 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu>
* [controls/menu.c] [misc/ver.c] [multimedia/dsound.c]
[multimedia/joystick.c] [windows/dialog.c]
Modified some dprintf_xxx's to prepare them for a new
dprintf_ scheme. Basically, I changed the dprintf's that
outputed a line with many dprintf calls to do just one
dprintf call.
1998-03-01 21:05:02 +01:00
|
|
|
Patches are created with the program @code{diff}. You need a copy
|
|
|
|
of clean source tree to diff against. The @samp{-u} option, to create
|
|
|
|
unified diffs, is popular but not obligatory.
|
|
|
|
For changes to a single file,
|
|
|
|
@code{diff -u wine990101/windows/win.c mywine/windows/win.c > win_patch}
|
|
|
|
is sufficient.
|
|
|
|
To generate a complete diff between your tree and the distribution,
|
|
|
|
use @code{diff -uR wine990101 mywine}.
|
|
|
|
|
|
|
|
This assumes that the original distribution and your personal tree
|
|
|
|
have the same parent directory, from which you make the diff.
|
|
|
|
This ensures a consistent format for the diffs, which in turn
|
|
|
|
is necessary so that they can be applied consistently as described in
|
|
|
|
@xref{Applying patches}.
|
1997-07-20 18:23:21 +02:00
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@node Adding Documentation, File names, Creating patches, The Wine Project
|
1997-07-20 18:23:21 +02:00
|
|
|
@section Adding Documentation
|
|
|
|
|
|
|
|
@ifinfo
|
|
|
|
Here are some templates which should help you collaborate on this
|
|
|
|
documentation. Read the text below before examining them.
|
|
|
|
@end ifinfo
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* Type Template:: How to document data types in Wine's
|
|
|
|
include files.
|
|
|
|
* Function Template:: How to document an (API) function of
|
|
|
|
Wine.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
|
|
|
|
These are my tips for adding documentation.
|
|
|
|
|
|
|
|
Do not simply copy documentation from @mswindows{} related
|
|
|
|
material. Except from risking copyright violations, which you would not
|
|
|
|
want to do, there is another aspect to that:
|
|
|
|
As Wine is a product to run on @unix{} and @unix{}-like workstations,
|
|
|
|
it seems a good idea to me to organize this documentation primarily for
|
|
|
|
the well-trained @unix{} reader. Please keep that in mind when you add
|
|
|
|
some documentation.
|
|
|
|
|
|
|
|
Finally, read the info pages for @code{texinfo}.
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
The rest of this section provides some templates which can serve as a
|
|
|
|
start in writing documentation.
|
|
|
|
|
1997-07-20 18:23:21 +02:00
|
|
|
@subsection Template introduction
|
|
|
|
@iftex
|
|
|
|
On the following pages you will find some @code{texinfo} templates, which
|
|
|
|
should help you collaborate on this documentation.
|
|
|
|
@end iftex
|
|
|
|
|
|
|
|
These templates give hints on how to document data types, functions,
|
|
|
|
variables, constants etc. in Wine.
|
|
|
|
As documentation evolves, you will find common features of data types
|
|
|
|
that should be described in a unified fashion. In such a case, please
|
|
|
|
add a corresponding style guide-line here, in this very place, to help
|
|
|
|
keeping documentation of data types unified.
|
|
|
|
|
|
|
|
|
|
|
|
Start out the type or function with a new node. Write a comment before
|
|
|
|
the node, listing all data types (and functions) described in the node,
|
|
|
|
like this:
|
|
|
|
@example
|
|
|
|
@@c
|
|
|
|
@@c *** struct FILETIME ***
|
|
|
|
@@c
|
|
|
|
@@node Type FILETIME, NextNodeName, PreviousNodeName, ParentNodeName
|
|
|
|
@end example
|
|
|
|
|
|
|
|
The node command describes the node name and the names of the next node,
|
|
|
|
the previous node, and the parent node. The parent node should contain
|
|
|
|
a menu entry for this node. The previous node is the node that appears
|
|
|
|
before this node in the parent node menu. The next node is the node
|
|
|
|
succeeding this one in the parent node menu. If there is no previous or
|
|
|
|
next node, omit the name (putting just a single space between the two
|
|
|
|
commata).
|
|
|
|
|
|
|
|
The node name must be a unique sequence of words. Case is important, so
|
|
|
|
@emph{Type} and @emph{type} are distinct. The node name must not contain
|
|
|
|
special characters like @samp{@@, @{, @}} or the comma. If you need to
|
|
|
|
give a node the same name as a function, data type, etc., use the words
|
|
|
|
@samp{Type}, @samp{Function}, etc. before the identifier.
|
|
|
|
|
|
|
|
Always put the names of the node and its links on the same line, even if
|
|
|
|
it gets rather long.
|
|
|
|
|
|
|
|
If there are two or more data types or functions described in the node,
|
|
|
|
adapt the comment like this:
|
|
|
|
@example
|
|
|
|
@@c
|
|
|
|
@@c *** int X ***
|
|
|
|
@@c *** long Y() ***
|
|
|
|
@@c
|
|
|
|
@@node Ints and Longs, NextNodeName, PreviousNodeName, ParentNodeName
|
|
|
|
@end example
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
After the node name, put a sectioning command, such as @samp{@@chapter},
|
|
|
|
@samp{@@section}, @samp{@@subsection}, or @samp{@@subsubsection}.
|
|
|
|
Without that command, cross references to the node will fail.
|
|
|
|
@example
|
|
|
|
@@subsubsection Type FILETIME
|
|
|
|
@end example
|
|
|
|
|
1997-07-20 18:23:21 +02:00
|
|
|
Start the description of the type(s) or function(s) with a single
|
|
|
|
non-indented paragraph that gives a one-line description of the type(s)
|
|
|
|
or function(s) and states the include files that are required.
|
|
|
|
@example
|
|
|
|
@@noindent
|
|
|
|
File times in Wine are specified by the data type @@code@{FILETIME@},
|
|
|
|
defined in @@file@{windows.h@}.
|
|
|
|
@end example
|
|
|
|
If several types or functions are closely connected, use one paragraph
|
|
|
|
as a common description. If more paragraphs are required for a proper
|
|
|
|
description, indent all but the first of them.
|
|
|
|
|
|
|
|
Then start the definition of the data type or function. Use the proper
|
1997-08-04 18:34:36 +02:00
|
|
|
macro, which you will find defined in the beginning of the texinfo file.
|
|
|
|
If appropriate, add your own macros.
|
1997-07-20 18:23:21 +02:00
|
|
|
Again, put everything that belongs to the header into a single line.
|
1997-08-04 18:34:36 +02:00
|
|
|
Use continuation lines for additional headers.
|
1997-07-20 18:23:21 +02:00
|
|
|
@example
|
1997-08-04 18:34:36 +02:00
|
|
|
@@deftp_w32 FILETIME
|
|
|
|
@@deftpx_w32 LPFILETIME
|
1997-07-20 18:23:21 +02:00
|
|
|
@end example
|
|
|
|
|
|
|
|
In the definition, give a verbal explanation of the data type or
|
|
|
|
function. The explanation should be rather complete, exact, and
|
|
|
|
comprehensible, than well-structured. This is the point where you can
|
|
|
|
tell everything you want. Do not be afraid of wasting space.
|
|
|
|
Do not describe the @mswindows{} situation but only say what Wine
|
|
|
|
does. That is important. (Sometimes they might even do the same.)
|
|
|
|
@example
|
|
|
|
This is the data type for specifying file times. The file times are
|
|
|
|
stored with 64 bit precision. The actual data type is a structure with
|
|
|
|
two 32 bit values which are interpreted as the low and high parts of a
|
|
|
|
64-bit value. This value gives a time measured in a granularity of 100
|
|
|
|
nanoseconds, so 1.5 seconds are specified by a value of 15,000,000. In
|
|
|
|
Wine, this 64-bit value is signed, with the sign taken from the high
|
|
|
|
part. The lower part is used as unsigned.
|
|
|
|
@end example
|
|
|
|
|
|
|
|
For data types, it is recommended to quote the definition from the
|
|
|
|
header file. For a function, you might give a short example of its
|
|
|
|
usage. You may also put one example in the end of a node that explains
|
|
|
|
several of the functions in the node. Remember that cut-and-paste from a
|
|
|
|
well prepared example will help the readers write their code.
|
|
|
|
@example
|
|
|
|
The definition of @@code@{FILETIME@} reads:
|
|
|
|
@@example
|
1997-08-04 18:34:36 +02:00
|
|
|
typedef struct
|
1997-07-20 18:23:21 +02:00
|
|
|
@@@{
|
|
|
|
INT32 dwLowDateTime;
|
|
|
|
INT32 dwHighDateTime;
|
1997-08-04 18:34:36 +02:00
|
|
|
@@@} FILETIME, *LPFILETIME;
|
1997-07-20 18:23:21 +02:00
|
|
|
@@end example
|
|
|
|
@end example
|
|
|
|
|
|
|
|
You could also use the @code{cindex} command which creates an entry in
|
|
|
|
the concept index. The @code{texinfo} manual recommends to keep concept
|
|
|
|
entries distinct, so that a single concept index entry puts to one
|
|
|
|
well-defined place in the document. Use lower case letters for index
|
|
|
|
entries, unless they are proper names or quotes from actual code.
|
|
|
|
@example
|
|
|
|
@@cindex epoch in file time
|
|
|
|
The @@code@{FILETIME@} structure may be used to hold absolute or relative
|
|
|
|
times. Absolute times are given as the number of 100 nanoseconds
|
|
|
|
intervals elapsed since 1 January 1601, 00:00:00 UTC (Coordinated
|
|
|
|
Universal Time, which is GMT, Greenwich Mean Time). This might be
|
|
|
|
called the @@dfn@{epoch@} for file times. With a signed 64-bit value, this
|
|
|
|
representation covers absolute times of 29247 years around the epoch.
|
|
|
|
@end example
|
|
|
|
|
|
|
|
After the verbal documentation, you can add some special fields
|
|
|
|
describing bugs, implementation dependencies etc. Two of these are
|
|
|
|
recommended to attach to all descriptions. One describes the
|
|
|
|
conformance of the data type or function to @mswindows{} products,
|
|
|
|
i.e. whether the item is also present in @WINNT{} and @WIN95{}. The
|
|
|
|
other one describes known differences of the Wine item to its
|
|
|
|
@mswindows{} counterpart. Both will greatly help in porting software
|
|
|
|
from @mswindows{} to Wine and vice versa.
|
|
|
|
@example
|
|
|
|
@@winconfall@{@}
|
|
|
|
|
|
|
|
@@windiff@{@}
|
|
|
|
In @@mswindows@{@}, the elements of the structure are apparently of type
|
|
|
|
@@code@{DWORD@}. Whether the full 64 bit value is interpreted as signed or
|
|
|
|
unsigned I do not know.
|
|
|
|
@end example
|
|
|
|
|
|
|
|
If you find that more of these property attributes are necessary, feel
|
|
|
|
free to create your own ones. But keep in mind that they should be
|
|
|
|
applicable more or less to all described items. Very special properties
|
|
|
|
will better be put into the verbal text.
|
|
|
|
|
|
|
|
Finally end the definition of the data type or function:
|
|
|
|
@example
|
|
|
|
@@end deftp
|
|
|
|
@end example
|
|
|
|
|
|
|
|
Do not forget to enter the node in the menu of its top node, and do
|
|
|
|
properly link the node to its successor and predecessor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@node Type Template, Function Template, , Adding Documentation
|
|
|
|
@subsection Data type template
|
|
|
|
|
|
|
|
Category: Data type
|
|
|
|
|
|
|
|
@node Function Template, , Type Template, Adding Documentation
|
|
|
|
@subsection API function template
|
|
|
|
|
|
|
|
Functions should be given category names, to indicate which API they
|
|
|
|
belong to. Please add items to the list of categories possible.
|
|
|
|
|
|
|
|
Category: WIN32 function
|
|
|
|
|
|
|
|
@example
|
|
|
|
@@c
|
|
|
|
@@c ***GetFileTime() ***
|
|
|
|
@@c
|
|
|
|
@@node Get File Times, , Compare File Times, File Times
|
|
|
|
@@noindent
|
|
|
|
The Wine function @@code@{GetFileTime@} returns the creation time and
|
|
|
|
the times of last the read and modification access to a file. It is
|
|
|
|
defined in @@file@{windows.h@}.
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@@deftypefn_w32 BOOL GetFileTime (@@w@{HANDLE @@var@{file@},@} @@w@{LPFILETIME @@var@{ctime@},@} @@w@{LPFILETIME @@var@{atime@},@} @@w@{LPFILETIME @@var@{mtime@})@}
|
1997-07-20 18:23:21 +02:00
|
|
|
This function obtains for the specified @@var@{file@} the creation time
|
|
|
|
@@var@{ctime@}, the time of the last access to the file @@var@{atime@}, and
|
|
|
|
the time of the last modification (write) to the file, @@var@{mtime@}.
|
|
|
|
The @@var@{file@} handle must have been obtained by opening the file with
|
|
|
|
@@code@{GENERIC_READ@} access. The file time arguments of this function are
|
|
|
|
pointers to @@code@{FILETIME@} variables, which are filled with a value that
|
|
|
|
indicates an absolute time in UTC. To convert these values to local
|
|
|
|
times, use the function @@code@{FileTimeToLocalFileTime@}. If you do not
|
|
|
|
need some of the times, you can pass a @@code@{NULL@} pointer.
|
|
|
|
The function returns @@code@{TRUE@} on success, @@code@{FALSE@} on failure.
|
|
|
|
|
|
|
|
@@winconfall@{@}
|
|
|
|
|
|
|
|
@@windiffnone@{@}
|
|
|
|
@@end deftypefn
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
@node File names, Wide character strings, Adding Documentation, The Wine Project
|
|
|
|
@section @mswindows{} and @unix{} file names in Wine
|
|
|
|
@cindex file names in Wine
|
|
|
|
@cindex Windows file names
|
|
|
|
@cindex DOS file names in Wine
|
|
|
|
@cindex UNIX file names in Wine
|
|
|
|
@cindex POSIX file names in Wine
|
|
|
|
|
|
|
|
FIXME:
|
|
|
|
|
|
|
|
@node Wide character strings, , File names, The Wine Project
|
|
|
|
@section Wide character strings in API functions
|
|
|
|
@cindex unicode strings in API functions
|
|
|
|
@cindex wide character strings in API functions
|
|
|
|
@cindex strings in API functions
|
|
|
|
@cindex ascii strings in API functions
|
|
|
|
@cindex 16 bit characters in API functions
|
|
|
|
@cindex wchar_t in API functions
|
|
|
|
|
|
|
|
Presently, all wide character strings in API functions of Wine are
|
|
|
|
internally converted to 8 bit representation. Thus, the @WIN32{} API
|
|
|
|
with @unicode{} strings is not fully functional for the application
|
|
|
|
programmer at present.
|
|
|
|
|
|
|
|
Even so, application programmers might consider developing their
|
|
|
|
applications in wide character format with Wine, as future versions
|
|
|
|
might bring a change. This might come when a @unix{} filesystem can
|
|
|
|
handle @unicode{} file names.
|
1997-07-20 18:23:21 +02:00
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
Furthermore, the @unicode{} API is required to let Wine run @mswindows{}
|
|
|
|
applications which have been compiled for wide character strings.
|
1997-07-20 18:23:21 +02:00
|
|
|
|
1997-08-04 18:34:36 +02:00
|
|
|
In Wine, wide characters are strictly 16 bit; the @code{wchar_t} type of
|
|
|
|
standard C can therefore not be used.
|
1997-07-20 18:23:21 +02:00
|
|
|
|
|
|
|
@node Concept Index, , , Top
|
|
|
|
@comment node-name, next, previous, up
|
|
|
|
@unnumbered Concept Index
|
|
|
|
@printindex cp
|
|
|
|
|
|
|
|
@node Type Index, , , Top
|
|
|
|
@comment node-name, next, previous, up
|
|
|
|
@unnumbered Type Index
|
|
|
|
@printindex tp
|
|
|
|
|
|
|
|
@node Function Index, , , Top
|
|
|
|
@comment node-name, next, previous, up
|
|
|
|
@unnumbered Function Index
|
|
|
|
@printindex fn
|
|
|
|
|
|
|
|
@node Variable Index, , , Top
|
|
|
|
@comment node-name, next, previous, up
|
1997-08-04 18:34:36 +02:00
|
|
|
@unnumbered Variable, Constants, and Variable-like Macros Index
|
1997-07-20 18:23:21 +02:00
|
|
|
@printindex vr
|
|
|
|
|
|
|
|
@node File Index, , , Top
|
|
|
|
@comment node-name, next, previous, up
|
|
|
|
@unnumbered File and Program Index
|
|
|
|
@printindex pg
|
|
|
|
|
|
|
|
|
|
|
|
@contents
|
|
|
|
@bye
|