1998-11-22 17:56:44 +01:00
|
|
|
This document should help new developers get started. Like all of Wine, it
|
|
|
|
is a work in progress.
|
Release 940201
Tue Feb 1 21:14:47 1994 Bob Amstadt (bob@pooh)
* [loader/selector.c]
Added function CreateNewSegments(). Modified IPCCopySelector
to allow aliasing to any arbitrary memory space.
* [memory/global.c]
Fixed potential bug in GlobalGetFreeSegments().
* [memory/linear.c]
Created functions GlobalLinearLock() and GlobalLinearUnlock().
Tue Feb 1 05:51:43 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [controls/widgets.c]
Removed CAPTION window class.
* [loader/cursor.c]
Bug fix in LoadCursor(): don't allocate memory every time for
built-in cursors.
* [windows/clipping.c]
Invalidate child windows in InvalidateRgn().
* [windows/defwnd.c]
Added repaint of the caption when changing window text.
* [windows/event.c]
Modified SetCapture() to allow keyboard events while capturing.
* [windows/message.c]
New function MSG_GetHardwareMessage(), to do mouse tracking
without returning control to the Windows program.
* [windows/nonclient.c]
A couple of changes in frame drawing for DLGMODALFRAME windows.
Rewritten window moving code, to use MSG_GetHardwareMessage()
instead of non-client mouse events (this is the way Windows
does it), and to send WM_ENTERSIZEMOVE messages.
Removed WM_NCBUTTONUP and WM_NCMOUSEMOVE handlers.
* [windows/win.c]
Allocate temporary structures on the USER heap instead of
using GlobalAlloc().
* [windows/winpos.c]
Added function WINPOS_GetMinMaxInfo() to get sizing informations.
Jan 31, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [windows/nonclient.c]
Call to StdDrawScrollBar() during NC's drawing.
Call to NC_ScrollBarButtonDown() on NC mouse events WM_LBUTTONDOWN.
Call to NC_ScrollBarButtonUp() on NC mouse events WM_LBUTTONUP.
Call to NC_ScrollBarMouseMove() on NC mouse events WM_MOUSEMOVE.
* [controls/menu.c]
New GetSubMenu() function.
Move GetMenu() & SetMenu() functions from 'windows/win.c'.
* [controls/listbox.c]
Start changes to satisfy recent changes in scrollbars/windows.
* [loader/resource.c]
Put some code in LoadAccelerators() stub.
New TranslateAccelerator() function.
* [windows/win.c]
Remove GetMenu() & SetMenu() functions.
Call to NC_CreateScrollBars() if required by CreateWindow().
Mon Jan 24 10:40:10 EST 1994 John Richardson (jrichard@cs.uml.edu)
* [window/win.c]
Added functions EnumWindows, EnumChildWindows, and helper
WIN_EnumChildWin. EnumWindows won't list all wine windows
because GetDesktopWindow isn't complete. However, the code
is in place for it to work correctly and only needs
GetDesktopWindow to do so.
Tue Jan 25 05:51:47 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [windows/defwnd.c]
Added handling of activation messages (WM_ACTIVATE,
WM_NCACTIVATE, WM_MOUSEACTIVATE)
* [windows/event.c]
De-activate the window when losing input focus.
* [windows/focus.c]
Bug fix in SetFocus().
* [windows/message.c]
Added activation of the window on mouse-clicks.
* [windows/nonclient.c]
Changed non-client area painting to use the correct colors
depending upon the activation state.
Added WM_NCACTIVATE message handling.
Fixed a couple of bugs in window moving and resizing.
* [windows/winpos.c]
Implemented Get/SetActiveWindow().
Implemented SWP_NOACTIVATE flag in SetWindowPos().
Jan 17, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [misc/message.c]
MessageBox has a CaptionBar for his title except for
MB_SYSTEMMODAL with MB_ICONHAND.
* [windows/nonclient.c]
Call to NC_TrackSysMenu on SysMenu button mouse click.
* [windows/defwnd.c]
Call to NC_TrackSysMenu on Alt key (VK_MENU).
* [controls/menu.c]
New GetSystemMenu() function.
New CopySystemMenu() internal function.
New NC_TrackSysMenu() internal function.
* [include/windows.h]
New WM_INITMENU, WM_INITMENUPOPUP, WM_MENUSELECT & WM_MENUCHAR defines.
1994-02-02 07:48:31 +01:00
|
|
|
|
1999-06-05 13:52:46 +02:00
|
|
|
|
Release 970415
Mon Apr 14 11:22:54 1997 John Harvey <john@division.co.uk>
* [graphics/win16drv/init.c]
Minor changes to help debug problems.
* [if1632/dummy.c] [if1632/gdi.spec]
Dummy routines for StartPage, EndPage, SetAbortProc, AbortProc.
* [misc/printdrv.c] [if1632/gdi.spec] [include/windows.h]
StartDoc16, EndDoc16 new functions.
Sun Apr 13 11:18:35 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [memory/virtual.c]
Implemented MapViewOfFile.
* [debugger/dbg.y]
Added 'info maps' command.
Fri Apr 11 16:34:08 1997 Frans van Dorsselaer <devel@rulhmpc58.LeidenUniv.nl>
* [controls/edit.c] [controls/EDIT.TODO]
Started restructuring. Performance improvements.
Fixed: wordwrap, scrollbar handling, scrolling, painting,
EditWndProc() is now reentrant, wordbreak procs,
better compliance to specs.
New: margins, format rectangle.
* [controls/widgets.c]
Changed the cursor for the edit control class to an I-beam.
* [include/callback.h]
Added 32 bit wordbreak callback.
Mon Apr 7 20:53:28 1997 Albrecht Kleine <kleine@ak.sax.de>
* [objects/metafile.c]
Added handling of some more metafile records:
META_CREATEREGION, META_INVERTREGION etc.
Sat Apr 5 09:23:02 MET DST 1997 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
* [loader/signal.c]
Define kernel sigaction ourselves instead of getting it
from the kernel source.
Wed Apr 2 21:05:00 1997 Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
* [control/menu.c]
Fix return value range for GetMenuState.
* [files/file.c]
Always fill out ofs->szPathName in FILE_DoOpenFile.
* [memory/string.c]
Add debug option string.
* [objects/cursoricon.c]
Fix return value for DestroyIcon32.
Mon Mar 31 17:16:12 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [DEVELOPERS-HINTS] [misc/*] [windows/*] [graphics/*]
Added description of the source tree. Moved several
files to fit it.
* [misc/shell.c]
Use Win32 heap functions.
1997-04-15 19:19:52 +02:00
|
|
|
SOURCE TREE STRUCTURE
|
|
|
|
=====================
|
|
|
|
|
1998-11-22 17:56:44 +01:00
|
|
|
The Wine source tree is loosely based on the original Windows modules.
|
|
|
|
Most of the source is concerned with implementing the Wine API, although
|
|
|
|
there are also various tools, documentation, sample Winelib code, and
|
2002-12-24 01:56:33 +01:00
|
|
|
code specific to the binary loader. Note that several of the libraries
|
|
|
|
listed here are "stubbed out", meaning they still need to be implemented.
|
Release 970415
Mon Apr 14 11:22:54 1997 John Harvey <john@division.co.uk>
* [graphics/win16drv/init.c]
Minor changes to help debug problems.
* [if1632/dummy.c] [if1632/gdi.spec]
Dummy routines for StartPage, EndPage, SetAbortProc, AbortProc.
* [misc/printdrv.c] [if1632/gdi.spec] [include/windows.h]
StartDoc16, EndDoc16 new functions.
Sun Apr 13 11:18:35 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [memory/virtual.c]
Implemented MapViewOfFile.
* [debugger/dbg.y]
Added 'info maps' command.
Fri Apr 11 16:34:08 1997 Frans van Dorsselaer <devel@rulhmpc58.LeidenUniv.nl>
* [controls/edit.c] [controls/EDIT.TODO]
Started restructuring. Performance improvements.
Fixed: wordwrap, scrollbar handling, scrolling, painting,
EditWndProc() is now reentrant, wordbreak procs,
better compliance to specs.
New: margins, format rectangle.
* [controls/widgets.c]
Changed the cursor for the edit control class to an I-beam.
* [include/callback.h]
Added 32 bit wordbreak callback.
Mon Apr 7 20:53:28 1997 Albrecht Kleine <kleine@ak.sax.de>
* [objects/metafile.c]
Added handling of some more metafile records:
META_CREATEREGION, META_INVERTREGION etc.
Sat Apr 5 09:23:02 MET DST 1997 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
* [loader/signal.c]
Define kernel sigaction ourselves instead of getting it
from the kernel source.
Wed Apr 2 21:05:00 1997 Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
* [control/menu.c]
Fix return value range for GetMenuState.
* [files/file.c]
Always fill out ofs->szPathName in FILE_DoOpenFile.
* [memory/string.c]
Add debug option string.
* [objects/cursoricon.c]
Fix return value for DestroyIcon32.
Mon Mar 31 17:16:12 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [DEVELOPERS-HINTS] [misc/*] [windows/*] [graphics/*]
Added description of the source tree. Moved several
files to fit it.
* [misc/shell.c]
Use Win32 heap functions.
1997-04-15 19:19:52 +02:00
|
|
|
|
2003-12-08 22:48:39 +01:00
|
|
|
DLLs (under dlls/):
|
|
|
|
-------------------
|
Release 970415
Mon Apr 14 11:22:54 1997 John Harvey <john@division.co.uk>
* [graphics/win16drv/init.c]
Minor changes to help debug problems.
* [if1632/dummy.c] [if1632/gdi.spec]
Dummy routines for StartPage, EndPage, SetAbortProc, AbortProc.
* [misc/printdrv.c] [if1632/gdi.spec] [include/windows.h]
StartDoc16, EndDoc16 new functions.
Sun Apr 13 11:18:35 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [memory/virtual.c]
Implemented MapViewOfFile.
* [debugger/dbg.y]
Added 'info maps' command.
Fri Apr 11 16:34:08 1997 Frans van Dorsselaer <devel@rulhmpc58.LeidenUniv.nl>
* [controls/edit.c] [controls/EDIT.TODO]
Started restructuring. Performance improvements.
Fixed: wordwrap, scrollbar handling, scrolling, painting,
EditWndProc() is now reentrant, wordbreak procs,
better compliance to specs.
New: margins, format rectangle.
* [controls/widgets.c]
Changed the cursor for the edit control class to an I-beam.
* [include/callback.h]
Added 32 bit wordbreak callback.
Mon Apr 7 20:53:28 1997 Albrecht Kleine <kleine@ak.sax.de>
* [objects/metafile.c]
Added handling of some more metafile records:
META_CREATEREGION, META_INVERTREGION etc.
Sat Apr 5 09:23:02 MET DST 1997 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
* [loader/signal.c]
Define kernel sigaction ourselves instead of getting it
from the kernel source.
Wed Apr 2 21:05:00 1997 Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
* [control/menu.c]
Fix return value range for GetMenuState.
* [files/file.c]
Always fill out ofs->szPathName in FILE_DoOpenFile.
* [memory/string.c]
Add debug option string.
* [objects/cursoricon.c]
Fix return value for DestroyIcon32.
Mon Mar 31 17:16:12 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [DEVELOPERS-HINTS] [misc/*] [windows/*] [graphics/*]
Added description of the source tree. Moved several
files to fit it.
* [misc/shell.c]
Use Win32 heap functions.
1997-04-15 19:19:52 +02:00
|
|
|
|
2003-12-08 22:48:39 +01:00
|
|
|
advapi32/ - Crypto, systeminfo, security, eventlogging
|
2004-05-13 21:40:53 +02:00
|
|
|
amstream/ - MultiMedia Streams
|
2004-08-12 01:46:01 +02:00
|
|
|
atl - Active Template Library
|
2003-12-08 22:48:39 +01:00
|
|
|
avicap32/ - AVI capture window class
|
|
|
|
avifil32/ - COM object to play AVI files
|
|
|
|
cabinet/ - Cabinet file interface
|
|
|
|
capi2032/ - Wrapper library for CAPI4Linux access
|
2004-05-13 21:40:53 +02:00
|
|
|
cards/ - Card graphics
|
2003-12-08 22:48:39 +01:00
|
|
|
cfgmgr32/ - Config manager
|
|
|
|
comcat/ - Component category manager
|
|
|
|
comctl32/ - Common controls
|
|
|
|
commdlg/ - Common dialog boxes (both 16 & 32 bit)
|
|
|
|
crtdll/ - Old C runtime library
|
|
|
|
crypt32/ - Cryptography
|
|
|
|
ctl3d/ - 3D Effects for Common GUI Components
|
|
|
|
d3d8/ - Direct3D (3D graphics)
|
|
|
|
d3d9/ - Direct3D (3D graphics)
|
|
|
|
d3dim/ - Direct3D Immediate Mode
|
2004-05-18 02:54:12 +02:00
|
|
|
d3drm/ - Direct3D Retained Mode
|
2003-12-08 22:48:39 +01:00
|
|
|
d3dx8/ - Direct3D (3D graphics)
|
2004-08-12 01:46:01 +02:00
|
|
|
d3dxof/ - DirectX Files Functions
|
2004-05-13 21:40:53 +02:00
|
|
|
dbghelp/ - Engine for symbol and module enumeration
|
2003-12-08 22:48:39 +01:00
|
|
|
dciman32/ - DCI Manager (graphics)
|
|
|
|
ddraw/ - DirectDraw (graphics)
|
|
|
|
devenum/ - Device enumeration (part of DirectShow)
|
|
|
|
dinput/ - DirectInput (device input)
|
|
|
|
dinput8/ - DirectInput (device input)
|
2003-12-31 01:11:25 +01:00
|
|
|
dmband/ - DirectMusic Band
|
|
|
|
dmcompos/ - DirectMusic Composer
|
|
|
|
dmime/ - DirectMusic Interactive Engine
|
|
|
|
dmloader/ - DirectMusic Loader
|
|
|
|
dmscript/ - DirectMusic Scripting
|
|
|
|
dmstyle/ - DirectMusic Style Engine
|
|
|
|
dmsynth/ - DirectMusic Software Synthesizer
|
|
|
|
dmusic/ - DirectMusic Core Services
|
|
|
|
dmusic32/ - DirectMusic Legacy Port
|
2003-12-08 22:48:39 +01:00
|
|
|
dplay/ - DirectPlay (networking)
|
|
|
|
dplayx/ - DirectPlay (networking)
|
2004-05-13 21:40:53 +02:00
|
|
|
dpnet/ - DirectPlay (networking)
|
2003-12-31 01:11:25 +01:00
|
|
|
dpnhpast/ - DirectPlay NAT Helper PAST
|
2003-12-08 22:48:39 +01:00
|
|
|
dsound/ - DirectSound (audio)
|
2004-02-12 00:58:16 +01:00
|
|
|
dswave/ - DirectMusic Wave
|
2004-05-13 21:40:53 +02:00
|
|
|
dxdiagn/ - DirectX Diagnostic Tool
|
2003-12-08 22:48:39 +01:00
|
|
|
gdi/ - GDI (graphics)
|
|
|
|
glu32/ - OpenGL Utility library (graphics)
|
2003-12-13 04:20:03 +01:00
|
|
|
glut32/ - OpenGL Utility Toolkit
|
2004-05-13 21:40:53 +02:00
|
|
|
hhctrl.ocx/ - HHCTRL OCX implementation
|
2004-02-12 00:58:16 +01:00
|
|
|
iccvid/ - Radius Cinepak Video Decoder
|
2003-12-08 22:48:39 +01:00
|
|
|
icmp/ - ICMP protocol (networking)
|
2004-02-20 06:13:05 +01:00
|
|
|
ifsmgr.vxd/ - IFSMGR VxD implementation
|
2003-12-08 22:48:39 +01:00
|
|
|
imagehlp/ - PE (Portable Executable) Image Helper lib
|
|
|
|
imm32/ - Input Method Manager
|
|
|
|
iphlpapi/ - IP Helper API
|
2004-09-14 19:43:24 +02:00
|
|
|
itss/ - Infotech Structured Storage (HTML Help)
|
2003-12-08 22:48:39 +01:00
|
|
|
kernel/ - The Windows kernel
|
|
|
|
lzexpand/ - Lempel-Ziv compression/decompression
|
|
|
|
mapi32/ - Mail interface
|
2004-08-12 01:46:01 +02:00
|
|
|
mlang/ - Multi Language Support
|
2004-02-20 06:13:05 +01:00
|
|
|
mmdevldr.vxd/ - MMDEVLDR VxD implementation
|
|
|
|
monodebg.vxd/ - MONODEBG VxD implementation
|
2003-12-08 22:48:39 +01:00
|
|
|
mpr/ - Multi-Protocol Router (networking)
|
|
|
|
msacm/ - Audio Compression Manager (multimedia)
|
2003-12-13 04:20:03 +01:00
|
|
|
msacm/imaadp32/ - IMA ADPCM Audio Codec
|
|
|
|
msacm/msadp32/ - MS ADPCM Audio Codec
|
|
|
|
msacm/msg711/ - MS G711 Audio Codec (includes A-Law & MU-Law)
|
|
|
|
msacm/winemp3/ - Mpeg Layer 3 Audio Codec
|
2003-12-08 22:48:39 +01:00
|
|
|
msdmo/ - DirectX Media Objects
|
2003-12-13 04:20:03 +01:00
|
|
|
mshtml/ - MS HTML component
|
2004-05-13 21:40:53 +02:00
|
|
|
msi/ - Microsoft Installer
|
2003-12-08 22:48:39 +01:00
|
|
|
msimg32/ - Gradient and transparency (graphics)
|
|
|
|
msisys/ - System information
|
|
|
|
msnet32/ - Network interface
|
2004-08-12 01:46:01 +02:00
|
|
|
msrle32/ - Video codecs
|
2003-12-08 22:48:39 +01:00
|
|
|
msvcrt/ - C runtime library
|
|
|
|
msvcrt20/ - C runtime library version 2.0
|
2004-02-12 00:58:16 +01:00
|
|
|
msvcrt40/ - C runtime library version 4.0
|
2003-12-08 22:48:39 +01:00
|
|
|
msvcrtd/ - C runtime library debugging
|
2004-02-12 00:58:16 +01:00
|
|
|
msvidc32/ - Microsoft Video-1 Decoder
|
2003-12-08 22:48:39 +01:00
|
|
|
msvideo/ - 16 bit video manager
|
|
|
|
mswsock/ - Misc networking
|
|
|
|
netapi32/ - Network interface
|
2003-12-31 01:11:25 +01:00
|
|
|
newdev/ - New Hardware Device Library
|
2003-12-08 22:48:39 +01:00
|
|
|
ntdll/ - NT implementation of kernel calls
|
|
|
|
odbc32/ - Open DataBase Connectivity driver manager
|
|
|
|
ole32/ - 32 bit OLE 2.0 libraries
|
2003-12-13 04:20:03 +01:00
|
|
|
oleacc/ - OLE accessibility support
|
2003-12-08 22:48:39 +01:00
|
|
|
oleaut32/ - 32 bit OLE 2.0 automation
|
|
|
|
olecli/ - 16 bit OLE client
|
|
|
|
oledlg/ - OLE 2.0 user interface support
|
|
|
|
olepro32/ - 32 bit OLE 2.0 automation
|
|
|
|
olesvr/ - 16 bit OLE server
|
|
|
|
opengl32/ - OpenGL implementation (graphics)
|
|
|
|
psapi/ - Process Status interface
|
|
|
|
qcap/ - DirectShow runtime
|
|
|
|
quartz/ - DirectShow runtime
|
|
|
|
rasapi32/ - Remote Access Server interface
|
|
|
|
richedit/ - Rich text editing control
|
|
|
|
rpcrt4/ - Remote Procedure Call runtime
|
2004-02-16 21:33:37 +01:00
|
|
|
rsabase/ - RSA encryption
|
2004-05-13 21:40:53 +02:00
|
|
|
secur32/ - Contains Windows Security functions
|
2003-12-08 22:48:39 +01:00
|
|
|
serialui/ - Serial port property pages
|
|
|
|
setupapi/ - Setup interface
|
2004-05-13 21:40:53 +02:00
|
|
|
setupx/ - Contains functions used by the Windows Setup
|
2003-12-08 22:48:39 +01:00
|
|
|
shdocvw/ - Shell document object and control
|
|
|
|
shell32/ - COM object implementing shell views
|
2004-05-13 21:40:53 +02:00
|
|
|
shfolder/ - Shell folder service
|
2003-12-08 22:48:39 +01:00
|
|
|
shlwapi/ - Shell Light-Weight interface
|
|
|
|
snmpapi/ - SNMP protocol interface (networking)
|
|
|
|
sti/ - Still Image service
|
|
|
|
tapi32/ - Telephone interface
|
|
|
|
ttydrv/ - TTY display driver (Wine specific)
|
|
|
|
twain/ - TWAIN Imaging device communications
|
2003-12-13 04:20:03 +01:00
|
|
|
unicows/ - Unicows replacement (Unicode layer for Win9x)
|
2003-12-08 22:48:39 +01:00
|
|
|
url/ - Internet shortcut shell extension
|
|
|
|
urlmon/ - URL Moniker allows binding to a URL (like KIO/gnome-vfs)
|
|
|
|
user/ - Window management, standard controls, etc.
|
|
|
|
uxtheme/ - Theme library
|
2004-02-20 06:13:05 +01:00
|
|
|
vdhcp.vxd/ - VDHCP VxD implementation
|
2004-08-12 01:46:01 +02:00
|
|
|
vdmdbg/ - Virtual DOS machine debug library
|
2003-12-08 22:48:39 +01:00
|
|
|
version/ - File installation library
|
2004-02-25 02:25:21 +01:00
|
|
|
vmm.vxd/ - VMM VxD implementation
|
2004-05-13 21:40:53 +02:00
|
|
|
vnbt.vxd/ - VNBT VxD implementation
|
2004-02-20 06:13:05 +01:00
|
|
|
vnetbios.vxd/ - VNETBIOS VxD implementation
|
|
|
|
vtdapi.vxd/ - VTDAPI VxD implementation
|
|
|
|
vwin32.vxd/ - VWIN32 VxD implementation
|
2003-12-08 22:48:39 +01:00
|
|
|
win32s/ - 32-bit function access for 16-bit systems
|
|
|
|
winaspi/ - 16 bit Advanced SCSI Peripheral Interface
|
2003-12-13 04:20:03 +01:00
|
|
|
wined3d/ - Wine internal Direct3D helper
|
2003-12-08 22:48:39 +01:00
|
|
|
winedos/ - DOS features and BIOS calls (interrupts) (wine specific)
|
|
|
|
wineps/ - Postscript driver (Wine specific)
|
|
|
|
wininet/ - Internet extensions
|
|
|
|
winmm/ - Multimedia (16 & 32 bit)
|
|
|
|
winmm/joystick/ - Joystick driver
|
|
|
|
winmm/mcianim/ - MCI animation driver
|
|
|
|
winmm/mciavi/ - MCI video driver
|
|
|
|
winmm/mcicda/ - MCI audio CD driver
|
|
|
|
winmm/mciseq/ - MCI MIDI driver
|
|
|
|
winmm/mciwave/ - MCI wave driver
|
|
|
|
winmm/midimap/ - MIDI mapper
|
|
|
|
winmm/wavemap/ - Audio mapper
|
|
|
|
winmm/winealsa/ - ALSA audio driver
|
|
|
|
winmm/winearts/ - aRts audio driver
|
|
|
|
winmm/wineaudioio/ - audioio audio driver
|
|
|
|
winmm/winejack/ - JACK audio server driver
|
|
|
|
winmm/winenas/ - NAS audio driver
|
|
|
|
winmm/wineoss/ - OSS audio driver
|
|
|
|
winnls/ - National Language Support
|
|
|
|
winsock/ - Sockets 2.0 (networking)
|
|
|
|
winspool/ - Printing & Print Spooler
|
2004-05-13 21:40:53 +02:00
|
|
|
wintab32/ - Tablet device interface
|
2003-12-08 22:48:39 +01:00
|
|
|
wintrust/ - Trust verification interface
|
|
|
|
wow32/ - WOW subsystem
|
2004-05-13 21:40:53 +02:00
|
|
|
wsock32/ - Sockets 1.1 (networking)
|
2003-12-08 22:48:39 +01:00
|
|
|
x11drv/ - X11 display driver (Wine specific)
|
2002-09-19 01:11:19 +02:00
|
|
|
|
2003-12-08 22:48:39 +01:00
|
|
|
Winelib programs (under programs/):
|
|
|
|
-----------------------------------
|
2002-09-19 01:11:19 +02:00
|
|
|
|
2003-12-08 22:48:39 +01:00
|
|
|
avitools/ - AVI information viewer and player
|
|
|
|
clock/ - Graphical clock
|
|
|
|
cmdlgtst/ - Common dialog tests
|
|
|
|
control/ - Control panel
|
|
|
|
expand/ - Decompress Lempel-Ziv compressed archive
|
2004-08-18 00:07:44 +02:00
|
|
|
msiexec/ - Microsoft Installer frontend
|
2004-05-05 07:53:37 +02:00
|
|
|
notepad/ - Notepad replacement
|
2003-12-08 22:48:39 +01:00
|
|
|
progman/ - Program manager
|
|
|
|
regedit/ - Registry editor
|
|
|
|
regsvr32/ - Register COM server
|
|
|
|
rpcss/ - RPC services
|
|
|
|
rundll32/ - Execute DLL functions directly
|
|
|
|
start/ - Replacement for start.exe
|
2004-05-05 07:53:37 +02:00
|
|
|
taskmgr/ - Manage running Windows/Winelib applications
|
2003-12-08 22:48:39 +01:00
|
|
|
uninstaller/ - Remove installed programs
|
|
|
|
view/ - Metafile viewer
|
|
|
|
wcmd/ - Command line interface
|
|
|
|
wineboot/ - Wine bootstrap process
|
|
|
|
winecfg/ - Wine configuration utility
|
|
|
|
wineconsole/ - Console
|
|
|
|
winedbg/ - Debugger
|
|
|
|
winefile/ - File manager
|
|
|
|
winemenubuilder/ - Helper program for building Unix menu entries
|
|
|
|
winemine/ - Mine game
|
|
|
|
winepath/ - Translate between Wine and Unix paths
|
|
|
|
winetest/ - Wine testing shell
|
|
|
|
winevdm/ - Wine virtual DOS machine
|
|
|
|
winhelp/ - Help viewer
|
|
|
|
winver/ - Windows Version Program
|
2002-09-19 01:11:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
Support programs, libraries, etc:
|
|
|
|
---------------------------------
|
1998-11-22 17:56:44 +01:00
|
|
|
|
2004-03-10 00:25:57 +01:00
|
|
|
dlls/dxerr8/ - DirectX 8 error import lib
|
|
|
|
dlls/dxerr9/ - DirectX 9 error import lib
|
2004-01-27 21:07:43 +01:00
|
|
|
dlls/dxguid/ - DirectX UUID import lib
|
|
|
|
dlls/uuid/ - Windows-compatible UUID import lib
|
2002-09-19 01:11:19 +02:00
|
|
|
documentation/ - some documentation
|
2004-01-27 21:07:43 +01:00
|
|
|
documentation/samples/ - sample configuration files
|
2002-09-19 01:11:19 +02:00
|
|
|
include/ - Windows standard includes
|
2004-01-27 21:07:43 +01:00
|
|
|
include/msvcrt/ - MSVC compatible libc headers
|
|
|
|
include/wine/ - Wine specific headers
|
2003-08-27 04:03:52 +02:00
|
|
|
libs/ - the Wine libraries
|
2003-09-22 21:26:32 +02:00
|
|
|
libs/port/ - portability library
|
|
|
|
libs/unicode/ - Unicode support shared
|
|
|
|
libs/wine/ - Wine bootstrap library
|
|
|
|
libs/wpp/ - C preprocessor
|
2003-11-06 02:17:56 +01:00
|
|
|
loader/ - the main Wine loader
|
2002-12-24 01:56:33 +01:00
|
|
|
server/ - the Wine server
|
2003-12-12 05:09:12 +01:00
|
|
|
tools/ - various tools used to build/check Wine
|
2004-01-27 21:07:43 +01:00
|
|
|
tools/widl/ - the IDL compiler
|
|
|
|
tools/winapi{,_check}/ - A Win32 API checker
|
|
|
|
tools/winebuild/ - Wine build tool
|
|
|
|
tools/winedump/ - a .DLL dump utility
|
|
|
|
tools/winegcc/ - a MinGW command line compatible gcc wrapper
|
|
|
|
tools/wmc/ - the message compiler
|
|
|
|
tools/wpp/ - the C pre-processor library
|
|
|
|
tools/wrc/ - the resource compiler
|
Release 970415
Mon Apr 14 11:22:54 1997 John Harvey <john@division.co.uk>
* [graphics/win16drv/init.c]
Minor changes to help debug problems.
* [if1632/dummy.c] [if1632/gdi.spec]
Dummy routines for StartPage, EndPage, SetAbortProc, AbortProc.
* [misc/printdrv.c] [if1632/gdi.spec] [include/windows.h]
StartDoc16, EndDoc16 new functions.
Sun Apr 13 11:18:35 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [memory/virtual.c]
Implemented MapViewOfFile.
* [debugger/dbg.y]
Added 'info maps' command.
Fri Apr 11 16:34:08 1997 Frans van Dorsselaer <devel@rulhmpc58.LeidenUniv.nl>
* [controls/edit.c] [controls/EDIT.TODO]
Started restructuring. Performance improvements.
Fixed: wordwrap, scrollbar handling, scrolling, painting,
EditWndProc() is now reentrant, wordbreak procs,
better compliance to specs.
New: margins, format rectangle.
* [controls/widgets.c]
Changed the cursor for the edit control class to an I-beam.
* [include/callback.h]
Added 32 bit wordbreak callback.
Mon Apr 7 20:53:28 1997 Albrecht Kleine <kleine@ak.sax.de>
* [objects/metafile.c]
Added handling of some more metafile records:
META_CREATEREGION, META_INVERTREGION etc.
Sat Apr 5 09:23:02 MET DST 1997 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
* [loader/signal.c]
Define kernel sigaction ourselves instead of getting it
from the kernel source.
Wed Apr 2 21:05:00 1997 Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
* [control/menu.c]
Fix return value range for GetMenuState.
* [files/file.c]
Always fill out ofs->szPathName in FILE_DoOpenFile.
* [memory/string.c]
Add debug option string.
* [objects/cursoricon.c]
Fix return value for DestroyIcon32.
Mon Mar 31 17:16:12 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [DEVELOPERS-HINTS] [misc/*] [windows/*] [graphics/*]
Added description of the source tree. Moved several
files to fit it.
* [misc/shell.c]
Use Win32 heap functions.
1997-04-15 19:19:52 +02:00
|
|
|
|
|
|
|
|
2002-09-19 01:11:19 +02:00
|
|
|
Miscellaneous:
|
|
|
|
--------------
|
Release 970415
Mon Apr 14 11:22:54 1997 John Harvey <john@division.co.uk>
* [graphics/win16drv/init.c]
Minor changes to help debug problems.
* [if1632/dummy.c] [if1632/gdi.spec]
Dummy routines for StartPage, EndPage, SetAbortProc, AbortProc.
* [misc/printdrv.c] [if1632/gdi.spec] [include/windows.h]
StartDoc16, EndDoc16 new functions.
Sun Apr 13 11:18:35 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [memory/virtual.c]
Implemented MapViewOfFile.
* [debugger/dbg.y]
Added 'info maps' command.
Fri Apr 11 16:34:08 1997 Frans van Dorsselaer <devel@rulhmpc58.LeidenUniv.nl>
* [controls/edit.c] [controls/EDIT.TODO]
Started restructuring. Performance improvements.
Fixed: wordwrap, scrollbar handling, scrolling, painting,
EditWndProc() is now reentrant, wordbreak procs,
better compliance to specs.
New: margins, format rectangle.
* [controls/widgets.c]
Changed the cursor for the edit control class to an I-beam.
* [include/callback.h]
Added 32 bit wordbreak callback.
Mon Apr 7 20:53:28 1997 Albrecht Kleine <kleine@ak.sax.de>
* [objects/metafile.c]
Added handling of some more metafile records:
META_CREATEREGION, META_INVERTREGION etc.
Sat Apr 5 09:23:02 MET DST 1997 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
* [loader/signal.c]
Define kernel sigaction ourselves instead of getting it
from the kernel source.
Wed Apr 2 21:05:00 1997 Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
* [control/menu.c]
Fix return value range for GetMenuState.
* [files/file.c]
Always fill out ofs->szPathName in FILE_DoOpenFile.
* [memory/string.c]
Add debug option string.
* [objects/cursoricon.c]
Fix return value for DestroyIcon32.
Mon Mar 31 17:16:12 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [DEVELOPERS-HINTS] [misc/*] [windows/*] [graphics/*]
Added description of the source tree. Moved several
files to fit it.
* [misc/shell.c]
Use Win32 heap functions.
1997-04-15 19:19:52 +02:00
|
|
|
|
2002-09-19 01:11:19 +02:00
|
|
|
Note: these directories will ultimately get moved into their
|
|
|
|
respective dlls.
|
Release 970415
Mon Apr 14 11:22:54 1997 John Harvey <john@division.co.uk>
* [graphics/win16drv/init.c]
Minor changes to help debug problems.
* [if1632/dummy.c] [if1632/gdi.spec]
Dummy routines for StartPage, EndPage, SetAbortProc, AbortProc.
* [misc/printdrv.c] [if1632/gdi.spec] [include/windows.h]
StartDoc16, EndDoc16 new functions.
Sun Apr 13 11:18:35 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [memory/virtual.c]
Implemented MapViewOfFile.
* [debugger/dbg.y]
Added 'info maps' command.
Fri Apr 11 16:34:08 1997 Frans van Dorsselaer <devel@rulhmpc58.LeidenUniv.nl>
* [controls/edit.c] [controls/EDIT.TODO]
Started restructuring. Performance improvements.
Fixed: wordwrap, scrollbar handling, scrolling, painting,
EditWndProc() is now reentrant, wordbreak procs,
better compliance to specs.
New: margins, format rectangle.
* [controls/widgets.c]
Changed the cursor for the edit control class to an I-beam.
* [include/callback.h]
Added 32 bit wordbreak callback.
Mon Apr 7 20:53:28 1997 Albrecht Kleine <kleine@ak.sax.de>
* [objects/metafile.c]
Added handling of some more metafile records:
META_CREATEREGION, META_INVERTREGION etc.
Sat Apr 5 09:23:02 MET DST 1997 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
* [loader/signal.c]
Define kernel sigaction ourselves instead of getting it
from the kernel source.
Wed Apr 2 21:05:00 1997 Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
* [control/menu.c]
Fix return value range for GetMenuState.
* [files/file.c]
Always fill out ofs->szPathName in FILE_DoOpenFile.
* [memory/string.c]
Add debug option string.
* [objects/cursoricon.c]
Fix return value for DestroyIcon32.
Mon Mar 31 17:16:12 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [DEVELOPERS-HINTS] [misc/*] [windows/*] [graphics/*]
Added description of the source tree. Moved several
files to fit it.
* [misc/shell.c]
Use Win32 heap functions.
1997-04-15 19:19:52 +02:00
|
|
|
|
2003-12-12 05:09:12 +01:00
|
|
|
misc/ - KERNEL registry
|
2002-09-19 01:11:19 +02:00
|
|
|
windows/ - USER window management
|
Release 970415
Mon Apr 14 11:22:54 1997 John Harvey <john@division.co.uk>
* [graphics/win16drv/init.c]
Minor changes to help debug problems.
* [if1632/dummy.c] [if1632/gdi.spec]
Dummy routines for StartPage, EndPage, SetAbortProc, AbortProc.
* [misc/printdrv.c] [if1632/gdi.spec] [include/windows.h]
StartDoc16, EndDoc16 new functions.
Sun Apr 13 11:18:35 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [memory/virtual.c]
Implemented MapViewOfFile.
* [debugger/dbg.y]
Added 'info maps' command.
Fri Apr 11 16:34:08 1997 Frans van Dorsselaer <devel@rulhmpc58.LeidenUniv.nl>
* [controls/edit.c] [controls/EDIT.TODO]
Started restructuring. Performance improvements.
Fixed: wordwrap, scrollbar handling, scrolling, painting,
EditWndProc() is now reentrant, wordbreak procs,
better compliance to specs.
New: margins, format rectangle.
* [controls/widgets.c]
Changed the cursor for the edit control class to an I-beam.
* [include/callback.h]
Added 32 bit wordbreak callback.
Mon Apr 7 20:53:28 1997 Albrecht Kleine <kleine@ak.sax.de>
* [objects/metafile.c]
Added handling of some more metafile records:
META_CREATEREGION, META_INVERTREGION etc.
Sat Apr 5 09:23:02 MET DST 1997 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
* [loader/signal.c]
Define kernel sigaction ourselves instead of getting it
from the kernel source.
Wed Apr 2 21:05:00 1997 Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
* [control/menu.c]
Fix return value range for GetMenuState.
* [files/file.c]
Always fill out ofs->szPathName in FILE_DoOpenFile.
* [memory/string.c]
Add debug option string.
* [objects/cursoricon.c]
Fix return value for DestroyIcon32.
Mon Mar 31 17:16:12 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [DEVELOPERS-HINTS] [misc/*] [windows/*] [graphics/*]
Added description of the source tree. Moved several
files to fit it.
* [misc/shell.c]
Use Win32 heap functions.
1997-04-15 19:19:52 +02:00
|
|
|
|
|
|
|
|
1999-06-05 13:52:46 +02:00
|
|
|
|
1998-04-13 14:21:30 +02:00
|
|
|
IMPLEMENTING NEW API CALLS
|
|
|
|
==========================
|
|
|
|
|
2002-09-19 01:11:19 +02:00
|
|
|
This is the simple version, and covers only Win32. Win16 is slightly
|
|
|
|
uglier, because of the Pascal heritage and the segmented memory model.
|
1998-04-13 14:21:30 +02:00
|
|
|
|
2002-09-19 01:11:19 +02:00
|
|
|
All of the Win32 APIs known to Wine are listed in the .spec file of
|
|
|
|
their corresponding dll. An unimplemented call will look like (from
|
|
|
|
gdi32.spec)
|
1998-04-13 14:21:30 +02:00
|
|
|
269 stub PolyBezierTo
|
|
|
|
To implement this call, you need to do the following four things.
|
|
|
|
|
|
|
|
1. Find the appropriate parameters for the call, and add a prototype to
|
1999-06-05 13:52:46 +02:00
|
|
|
the correct header file. In this case, that means [include/wingdi.h],
|
|
|
|
and it might look like
|
1999-02-26 13:33:21 +01:00
|
|
|
BOOL WINAPI PolyBezierTo(HDC, LPCVOID, DWORD);
|
|
|
|
If the function has both an ASCII and a Unicode version, you need to
|
|
|
|
define both and add a #define WINELIB_NAME_AW declaration. See below
|
|
|
|
for discussion of function naming conventions.
|
1998-04-13 14:21:30 +02:00
|
|
|
|
|
|
|
2. Modify the .spec file to tell Wine that the function has an
|
|
|
|
implementation, what the parameters look like and what Wine function
|
|
|
|
to use for the implementation. In Win32, things are simple--everything
|
|
|
|
is 32-bits. However, the relay code handles pointers and pointers to
|
|
|
|
strings slightly differently, so you should use 'str' and 'wstr' for
|
|
|
|
strings, 'ptr' for other pointer types, and 'long' for everything else.
|
1999-02-26 13:33:21 +01:00
|
|
|
269 stdcall PolyBezierTo(long ptr long) PolyBezierTo
|
|
|
|
The 'PolyBezierTo' at the end of the line is which Wine function to use
|
1998-04-13 14:21:30 +02:00
|
|
|
for the implementation.
|
|
|
|
|
|
|
|
3. Implement the function as a stub. Once you add the function to the .spec
|
|
|
|
file, you must add the function to the Wine source before it will link.
|
1999-02-26 13:33:21 +01:00
|
|
|
Add a function called 'PolyBezierTo' somewhere. Good things to put
|
1998-04-13 14:21:30 +02:00
|
|
|
into a stub:
|
|
|
|
o a correct prototype, including the WINAPI
|
|
|
|
o header comments, including full documentation for the function and
|
1999-06-05 13:52:46 +02:00
|
|
|
arguments (see documentation/README.documentation)
|
1998-04-13 14:21:30 +02:00
|
|
|
o A FIXME message and an appropriate return value are good things to
|
|
|
|
put in a stub.
|
|
|
|
|
|
|
|
/************************************************************
|
1999-06-05 13:52:46 +02:00
|
|
|
* PolyBezierTo (GDI32.269)
|
|
|
|
*
|
2003-07-19 00:54:14 +02:00
|
|
|
* Draw many Bezier curves.
|
1999-06-05 13:52:46 +02:00
|
|
|
*
|
2004-02-13 05:00:52 +01:00
|
|
|
* PARAMS
|
|
|
|
* hdc [I] Device context to draw to
|
|
|
|
* p [I] Array of POINT structs
|
|
|
|
* count [I] Number of points in p
|
|
|
|
*
|
1999-06-05 13:52:46 +02:00
|
|
|
* RETURNS
|
2003-07-19 00:54:14 +02:00
|
|
|
* Success: Non-zero.
|
|
|
|
* Failure: FALSE. Use GetLastError() to find the error cause.
|
1998-04-13 14:21:30 +02:00
|
|
|
*
|
|
|
|
* BUGS
|
|
|
|
* Unimplemented
|
|
|
|
*/
|
2004-02-13 05:00:52 +01:00
|
|
|
BOOL WINAPI PolyBezierTo(HDC hdc, LPCVOID p, DWORD count)
|
1999-06-05 13:52:46 +02:00
|
|
|
{
|
2004-02-13 05:00:52 +01:00
|
|
|
/* tell the user they've got a substandard implementation */
|
|
|
|
FIXME(gdi, ":(%x,%p,%d): stub\n", hdc, p, count);
|
|
|
|
|
|
|
|
/* some programs may be able to compensate,
|
|
|
|
* if they know what happened
|
|
|
|
*/
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE; /* error value */
|
1998-04-13 14:21:30 +02:00
|
|
|
}
|
|
|
|
|
1999-06-05 13:52:46 +02:00
|
|
|
4. Implement and test the rest of the function.
|
|
|
|
|
Release 970415
Mon Apr 14 11:22:54 1997 John Harvey <john@division.co.uk>
* [graphics/win16drv/init.c]
Minor changes to help debug problems.
* [if1632/dummy.c] [if1632/gdi.spec]
Dummy routines for StartPage, EndPage, SetAbortProc, AbortProc.
* [misc/printdrv.c] [if1632/gdi.spec] [include/windows.h]
StartDoc16, EndDoc16 new functions.
Sun Apr 13 11:18:35 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [memory/virtual.c]
Implemented MapViewOfFile.
* [debugger/dbg.y]
Added 'info maps' command.
Fri Apr 11 16:34:08 1997 Frans van Dorsselaer <devel@rulhmpc58.LeidenUniv.nl>
* [controls/edit.c] [controls/EDIT.TODO]
Started restructuring. Performance improvements.
Fixed: wordwrap, scrollbar handling, scrolling, painting,
EditWndProc() is now reentrant, wordbreak procs,
better compliance to specs.
New: margins, format rectangle.
* [controls/widgets.c]
Changed the cursor for the edit control class to an I-beam.
* [include/callback.h]
Added 32 bit wordbreak callback.
Mon Apr 7 20:53:28 1997 Albrecht Kleine <kleine@ak.sax.de>
* [objects/metafile.c]
Added handling of some more metafile records:
META_CREATEREGION, META_INVERTREGION etc.
Sat Apr 5 09:23:02 MET DST 1997 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
* [loader/signal.c]
Define kernel sigaction ourselves instead of getting it
from the kernel source.
Wed Apr 2 21:05:00 1997 Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
* [control/menu.c]
Fix return value range for GetMenuState.
* [files/file.c]
Always fill out ofs->szPathName in FILE_DoOpenFile.
* [memory/string.c]
Add debug option string.
* [objects/cursoricon.c]
Fix return value for DestroyIcon32.
Mon Mar 31 17:16:12 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [DEVELOPERS-HINTS] [misc/*] [windows/*] [graphics/*]
Added description of the source tree. Moved several
files to fit it.
* [misc/shell.c]
Use Win32 heap functions.
1997-04-15 19:19:52 +02:00
|
|
|
|
1999-10-31 23:15:58 +01:00
|
|
|
IMPLEMENTING A NEW DLL
|
|
|
|
======================
|
|
|
|
|
1999-12-05 03:16:24 +01:00
|
|
|
Generic directions
|
|
|
|
------------------
|
|
|
|
|
1999-10-31 23:15:58 +01:00
|
|
|
Apart from writing the set of needed .c files, you also need to do the
|
|
|
|
following:
|
|
|
|
|
|
|
|
1. Create a directory <MyDll> where to store the implementation of
|
2002-09-19 01:11:19 +02:00
|
|
|
the DLL. This directory has to be put under the dlls/ directory.
|
|
|
|
If the DLL exists under Windows as both 16 and 32 bit DLL, you
|
|
|
|
should have a single directory with both implementations.
|
1999-10-31 23:15:58 +01:00
|
|
|
|
|
|
|
2. Create the Makefile.in in the ./dlls/<MyDll>/ directory. You can
|
|
|
|
copy an existing Makefile.in from another ./dlls/ subdirectory.
|
2002-09-19 01:11:19 +02:00
|
|
|
You need at least to change the MODULE and C_SRCS macros.
|
1999-10-31 23:15:58 +01:00
|
|
|
|
2002-09-19 01:11:19 +02:00
|
|
|
3. Add the directory in ./configure.ac (in AC_OUTPUT macro at the end
|
|
|
|
of the file to trigger the Makefile generation)
|
1999-10-31 23:15:58 +01:00
|
|
|
|
2002-09-19 01:11:19 +02:00
|
|
|
4. Run ./make_dlls in the dlls directory to update Makefile.in in
|
|
|
|
that directory.
|
1999-10-31 23:15:58 +01:00
|
|
|
|
2002-09-19 01:11:19 +02:00
|
|
|
5. You can now regenerate ./configure file (with 'make configure')
|
1999-10-31 23:15:58 +01:00
|
|
|
and the various Makefiles (with 'configure; make depend') (run
|
|
|
|
from the top of Wine's tree).
|
2002-09-19 01:11:19 +02:00
|
|
|
You should now have a Makefile file in ./dlls/<MyDll>/
|
1999-10-31 23:15:58 +01:00
|
|
|
|
2002-09-19 01:11:19 +02:00
|
|
|
6. Create the .spec file for the DLL exported functions in your
|
1999-10-31 23:15:58 +01:00
|
|
|
directory. Refer to 'Implementation of new API calls' earlier in
|
|
|
|
this document for more information on this part.
|
|
|
|
|
2002-09-19 01:11:19 +02:00
|
|
|
7. You can now start adding .c files. For the .h files, if they are
|
|
|
|
standard Windows one, put them in include/. If they are linked to
|
|
|
|
*your* implementation of the dll, put them in your newly created
|
|
|
|
directory.
|
1999-10-31 23:15:58 +01:00
|
|
|
|
1999-12-05 03:16:24 +01:00
|
|
|
Debug channels
|
|
|
|
--------------
|
|
|
|
|
1999-10-31 23:15:58 +01:00
|
|
|
If you need to create a new debug channel, just add the
|
2002-09-18 20:29:59 +02:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL to your .c file(s), and use them.
|
|
|
|
All the housekeeping will happen automatically.
|
1999-10-31 23:15:58 +01:00
|
|
|
|
1999-12-05 03:16:24 +01:00
|
|
|
Resources
|
|
|
|
---------
|
|
|
|
|
2002-12-24 01:56:33 +01:00
|
|
|
If you also need to add resources to your DLL, then create the .rc
|
2002-09-19 01:11:19 +02:00
|
|
|
file. Add to your ./dlls/<MyDll>/Makefile.in, in the RC_SRCS macro,
|
|
|
|
the list of .rc files to add to the DLL. See dlls/comctl32/ for an
|
|
|
|
example of this.
|
1999-12-05 03:16:24 +01:00
|
|
|
|
|
|
|
Thunking
|
|
|
|
--------
|
|
|
|
|
|
|
|
If you're building a 16 & 32 bit DLLs pair, then from the 32 bit code
|
|
|
|
you might need to call 16 bit routine. The way to do it to add in the
|
|
|
|
code, fragments like:
|
|
|
|
/* ### Start build ### */
|
|
|
|
extern WORD CALLBACK <PREFIX>_CallTo16_word_wwlll(FARPROC16,WORD,WORD,LONG,LONG,LONG);
|
|
|
|
/* ### stop build ### */
|
|
|
|
Where <PREFIX>_ is an internal prefix for your module. The first
|
|
|
|
parameter is always of type FARPROC16. Then, you can get the regular
|
|
|
|
list of parameters. The _word_wwlll indicates the type of return (long
|
|
|
|
or word) and the size of the parameters (here l=>long, w=>word; which
|
|
|
|
maps to WORD,WORD,LONG,LONG,LONG.
|
|
|
|
You can put several functions between the Start/Stop build pair.
|
|
|
|
|
2002-09-19 01:11:19 +02:00
|
|
|
You can also read the winebuild manpage for more details on this.
|
|
|
|
|
|
|
|
Then, add to ./dlls/<MyDll>/Makefile.in a line like:
|
1999-12-05 03:16:24 +01:00
|
|
|
|
2002-09-19 01:11:19 +02:00
|
|
|
EXTRA_OBJS = $(MODULE).glue.o
|
1999-12-05 03:16:24 +01:00
|
|
|
|
|
|
|
See dlls/winmm/ for an example of this.
|
|
|
|
|
1996-05-06 18:06:24 +02:00
|
|
|
MEMORY AND SEGMENTS
|
|
|
|
===================
|
Release 940201
Tue Feb 1 21:14:47 1994 Bob Amstadt (bob@pooh)
* [loader/selector.c]
Added function CreateNewSegments(). Modified IPCCopySelector
to allow aliasing to any arbitrary memory space.
* [memory/global.c]
Fixed potential bug in GlobalGetFreeSegments().
* [memory/linear.c]
Created functions GlobalLinearLock() and GlobalLinearUnlock().
Tue Feb 1 05:51:43 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [controls/widgets.c]
Removed CAPTION window class.
* [loader/cursor.c]
Bug fix in LoadCursor(): don't allocate memory every time for
built-in cursors.
* [windows/clipping.c]
Invalidate child windows in InvalidateRgn().
* [windows/defwnd.c]
Added repaint of the caption when changing window text.
* [windows/event.c]
Modified SetCapture() to allow keyboard events while capturing.
* [windows/message.c]
New function MSG_GetHardwareMessage(), to do mouse tracking
without returning control to the Windows program.
* [windows/nonclient.c]
A couple of changes in frame drawing for DLGMODALFRAME windows.
Rewritten window moving code, to use MSG_GetHardwareMessage()
instead of non-client mouse events (this is the way Windows
does it), and to send WM_ENTERSIZEMOVE messages.
Removed WM_NCBUTTONUP and WM_NCMOUSEMOVE handlers.
* [windows/win.c]
Allocate temporary structures on the USER heap instead of
using GlobalAlloc().
* [windows/winpos.c]
Added function WINPOS_GetMinMaxInfo() to get sizing informations.
Jan 31, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [windows/nonclient.c]
Call to StdDrawScrollBar() during NC's drawing.
Call to NC_ScrollBarButtonDown() on NC mouse events WM_LBUTTONDOWN.
Call to NC_ScrollBarButtonUp() on NC mouse events WM_LBUTTONUP.
Call to NC_ScrollBarMouseMove() on NC mouse events WM_MOUSEMOVE.
* [controls/menu.c]
New GetSubMenu() function.
Move GetMenu() & SetMenu() functions from 'windows/win.c'.
* [controls/listbox.c]
Start changes to satisfy recent changes in scrollbars/windows.
* [loader/resource.c]
Put some code in LoadAccelerators() stub.
New TranslateAccelerator() function.
* [windows/win.c]
Remove GetMenu() & SetMenu() functions.
Call to NC_CreateScrollBars() if required by CreateWindow().
Mon Jan 24 10:40:10 EST 1994 John Richardson (jrichard@cs.uml.edu)
* [window/win.c]
Added functions EnumWindows, EnumChildWindows, and helper
WIN_EnumChildWin. EnumWindows won't list all wine windows
because GetDesktopWindow isn't complete. However, the code
is in place for it to work correctly and only needs
GetDesktopWindow to do so.
Tue Jan 25 05:51:47 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [windows/defwnd.c]
Added handling of activation messages (WM_ACTIVATE,
WM_NCACTIVATE, WM_MOUSEACTIVATE)
* [windows/event.c]
De-activate the window when losing input focus.
* [windows/focus.c]
Bug fix in SetFocus().
* [windows/message.c]
Added activation of the window on mouse-clicks.
* [windows/nonclient.c]
Changed non-client area painting to use the correct colors
depending upon the activation state.
Added WM_NCACTIVATE message handling.
Fixed a couple of bugs in window moving and resizing.
* [windows/winpos.c]
Implemented Get/SetActiveWindow().
Implemented SWP_NOACTIVATE flag in SetWindowPos().
Jan 17, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [misc/message.c]
MessageBox has a CaptionBar for his title except for
MB_SYSTEMMODAL with MB_ICONHAND.
* [windows/nonclient.c]
Call to NC_TrackSysMenu on SysMenu button mouse click.
* [windows/defwnd.c]
Call to NC_TrackSysMenu on Alt key (VK_MENU).
* [controls/menu.c]
New GetSystemMenu() function.
New CopySystemMenu() internal function.
New NC_TrackSysMenu() internal function.
* [include/windows.h]
New WM_INITMENU, WM_INITMENUPOPUP, WM_MENUSELECT & WM_MENUCHAR defines.
1994-02-02 07:48:31 +01:00
|
|
|
|
|
|
|
NE (Win16) executables consist of multiple segments. The Wine loader
|
1995-03-19 18:39:39 +01:00
|
|
|
loads each segment into a unique location in the Wine processes memory
|
|
|
|
and assigns a selector to that segment. Because of this, it's not
|
|
|
|
possible to exchange addresses freely between 16-bit and 32-bit code.
|
|
|
|
Addresses used by 16-bit code are segmented addresses (16:16), formed
|
|
|
|
by a 16-bit selector and a 16-bit offset. Those used by the Wine code
|
|
|
|
are regular 32-bit linear addresses.
|
Release 940201
Tue Feb 1 21:14:47 1994 Bob Amstadt (bob@pooh)
* [loader/selector.c]
Added function CreateNewSegments(). Modified IPCCopySelector
to allow aliasing to any arbitrary memory space.
* [memory/global.c]
Fixed potential bug in GlobalGetFreeSegments().
* [memory/linear.c]
Created functions GlobalLinearLock() and GlobalLinearUnlock().
Tue Feb 1 05:51:43 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [controls/widgets.c]
Removed CAPTION window class.
* [loader/cursor.c]
Bug fix in LoadCursor(): don't allocate memory every time for
built-in cursors.
* [windows/clipping.c]
Invalidate child windows in InvalidateRgn().
* [windows/defwnd.c]
Added repaint of the caption when changing window text.
* [windows/event.c]
Modified SetCapture() to allow keyboard events while capturing.
* [windows/message.c]
New function MSG_GetHardwareMessage(), to do mouse tracking
without returning control to the Windows program.
* [windows/nonclient.c]
A couple of changes in frame drawing for DLGMODALFRAME windows.
Rewritten window moving code, to use MSG_GetHardwareMessage()
instead of non-client mouse events (this is the way Windows
does it), and to send WM_ENTERSIZEMOVE messages.
Removed WM_NCBUTTONUP and WM_NCMOUSEMOVE handlers.
* [windows/win.c]
Allocate temporary structures on the USER heap instead of
using GlobalAlloc().
* [windows/winpos.c]
Added function WINPOS_GetMinMaxInfo() to get sizing informations.
Jan 31, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [windows/nonclient.c]
Call to StdDrawScrollBar() during NC's drawing.
Call to NC_ScrollBarButtonDown() on NC mouse events WM_LBUTTONDOWN.
Call to NC_ScrollBarButtonUp() on NC mouse events WM_LBUTTONUP.
Call to NC_ScrollBarMouseMove() on NC mouse events WM_MOUSEMOVE.
* [controls/menu.c]
New GetSubMenu() function.
Move GetMenu() & SetMenu() functions from 'windows/win.c'.
* [controls/listbox.c]
Start changes to satisfy recent changes in scrollbars/windows.
* [loader/resource.c]
Put some code in LoadAccelerators() stub.
New TranslateAccelerator() function.
* [windows/win.c]
Remove GetMenu() & SetMenu() functions.
Call to NC_CreateScrollBars() if required by CreateWindow().
Mon Jan 24 10:40:10 EST 1994 John Richardson (jrichard@cs.uml.edu)
* [window/win.c]
Added functions EnumWindows, EnumChildWindows, and helper
WIN_EnumChildWin. EnumWindows won't list all wine windows
because GetDesktopWindow isn't complete. However, the code
is in place for it to work correctly and only needs
GetDesktopWindow to do so.
Tue Jan 25 05:51:47 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [windows/defwnd.c]
Added handling of activation messages (WM_ACTIVATE,
WM_NCACTIVATE, WM_MOUSEACTIVATE)
* [windows/event.c]
De-activate the window when losing input focus.
* [windows/focus.c]
Bug fix in SetFocus().
* [windows/message.c]
Added activation of the window on mouse-clicks.
* [windows/nonclient.c]
Changed non-client area painting to use the correct colors
depending upon the activation state.
Added WM_NCACTIVATE message handling.
Fixed a couple of bugs in window moving and resizing.
* [windows/winpos.c]
Implemented Get/SetActiveWindow().
Implemented SWP_NOACTIVATE flag in SetWindowPos().
Jan 17, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [misc/message.c]
MessageBox has a CaptionBar for his title except for
MB_SYSTEMMODAL with MB_ICONHAND.
* [windows/nonclient.c]
Call to NC_TrackSysMenu on SysMenu button mouse click.
* [windows/defwnd.c]
Call to NC_TrackSysMenu on Alt key (VK_MENU).
* [controls/menu.c]
New GetSystemMenu() function.
New CopySystemMenu() internal function.
New NC_TrackSysMenu() internal function.
* [include/windows.h]
New WM_INITMENU, WM_INITMENUPOPUP, WM_MENUSELECT & WM_MENUCHAR defines.
1994-02-02 07:48:31 +01:00
|
|
|
|
1996-08-18 18:21:52 +02:00
|
|
|
There are four ways to obtain a segmented pointer:
|
2002-09-19 01:11:19 +02:00
|
|
|
- Using the MapLS function (recommended).
|
1995-03-19 18:39:39 +01:00
|
|
|
- Allocate a block of memory from the global heap and use
|
|
|
|
WIN16_GlobalLock to get its segmented address.
|
|
|
|
- Declare the argument as 'segptr' instead of 'ptr' in the spec file
|
|
|
|
for a given API function.
|
Release 940201
Tue Feb 1 21:14:47 1994 Bob Amstadt (bob@pooh)
* [loader/selector.c]
Added function CreateNewSegments(). Modified IPCCopySelector
to allow aliasing to any arbitrary memory space.
* [memory/global.c]
Fixed potential bug in GlobalGetFreeSegments().
* [memory/linear.c]
Created functions GlobalLinearLock() and GlobalLinearUnlock().
Tue Feb 1 05:51:43 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [controls/widgets.c]
Removed CAPTION window class.
* [loader/cursor.c]
Bug fix in LoadCursor(): don't allocate memory every time for
built-in cursors.
* [windows/clipping.c]
Invalidate child windows in InvalidateRgn().
* [windows/defwnd.c]
Added repaint of the caption when changing window text.
* [windows/event.c]
Modified SetCapture() to allow keyboard events while capturing.
* [windows/message.c]
New function MSG_GetHardwareMessage(), to do mouse tracking
without returning control to the Windows program.
* [windows/nonclient.c]
A couple of changes in frame drawing for DLGMODALFRAME windows.
Rewritten window moving code, to use MSG_GetHardwareMessage()
instead of non-client mouse events (this is the way Windows
does it), and to send WM_ENTERSIZEMOVE messages.
Removed WM_NCBUTTONUP and WM_NCMOUSEMOVE handlers.
* [windows/win.c]
Allocate temporary structures on the USER heap instead of
using GlobalAlloc().
* [windows/winpos.c]
Added function WINPOS_GetMinMaxInfo() to get sizing informations.
Jan 31, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [windows/nonclient.c]
Call to StdDrawScrollBar() during NC's drawing.
Call to NC_ScrollBarButtonDown() on NC mouse events WM_LBUTTONDOWN.
Call to NC_ScrollBarButtonUp() on NC mouse events WM_LBUTTONUP.
Call to NC_ScrollBarMouseMove() on NC mouse events WM_MOUSEMOVE.
* [controls/menu.c]
New GetSubMenu() function.
Move GetMenu() & SetMenu() functions from 'windows/win.c'.
* [controls/listbox.c]
Start changes to satisfy recent changes in scrollbars/windows.
* [loader/resource.c]
Put some code in LoadAccelerators() stub.
New TranslateAccelerator() function.
* [windows/win.c]
Remove GetMenu() & SetMenu() functions.
Call to NC_CreateScrollBars() if required by CreateWindow().
Mon Jan 24 10:40:10 EST 1994 John Richardson (jrichard@cs.uml.edu)
* [window/win.c]
Added functions EnumWindows, EnumChildWindows, and helper
WIN_EnumChildWin. EnumWindows won't list all wine windows
because GetDesktopWindow isn't complete. However, the code
is in place for it to work correctly and only needs
GetDesktopWindow to do so.
Tue Jan 25 05:51:47 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [windows/defwnd.c]
Added handling of activation messages (WM_ACTIVATE,
WM_NCACTIVATE, WM_MOUSEACTIVATE)
* [windows/event.c]
De-activate the window when losing input focus.
* [windows/focus.c]
Bug fix in SetFocus().
* [windows/message.c]
Added activation of the window on mouse-clicks.
* [windows/nonclient.c]
Changed non-client area painting to use the correct colors
depending upon the activation state.
Added WM_NCACTIVATE message handling.
Fixed a couple of bugs in window moving and resizing.
* [windows/winpos.c]
Implemented Get/SetActiveWindow().
Implemented SWP_NOACTIVATE flag in SetWindowPos().
Jan 17, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [misc/message.c]
MessageBox has a CaptionBar for his title except for
MB_SYSTEMMODAL with MB_ICONHAND.
* [windows/nonclient.c]
Call to NC_TrackSysMenu on SysMenu button mouse click.
* [windows/defwnd.c]
Call to NC_TrackSysMenu on Alt key (VK_MENU).
* [controls/menu.c]
New GetSystemMenu() function.
New CopySystemMenu() internal function.
New NC_TrackSysMenu() internal function.
* [include/windows.h]
New WM_INITMENU, WM_INITMENUPOPUP, WM_MENUSELECT & WM_MENUCHAR defines.
1994-02-02 07:48:31 +01:00
|
|
|
|
1995-03-19 18:39:39 +01:00
|
|
|
Once you have a segmented pointer, it must be converted to a linear
|
|
|
|
pointer before you can use it from 32-bit code. This can be done with
|
2002-09-19 01:11:19 +02:00
|
|
|
the MapSL function. The linear pointer can then be used freely with
|
|
|
|
standard Unix functions like memcpy() etc. without worrying about 64k
|
|
|
|
boundaries. Note: there's no easy way to convert back from a linear
|
|
|
|
to a segmented address.
|
Release 940201
Tue Feb 1 21:14:47 1994 Bob Amstadt (bob@pooh)
* [loader/selector.c]
Added function CreateNewSegments(). Modified IPCCopySelector
to allow aliasing to any arbitrary memory space.
* [memory/global.c]
Fixed potential bug in GlobalGetFreeSegments().
* [memory/linear.c]
Created functions GlobalLinearLock() and GlobalLinearUnlock().
Tue Feb 1 05:51:43 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [controls/widgets.c]
Removed CAPTION window class.
* [loader/cursor.c]
Bug fix in LoadCursor(): don't allocate memory every time for
built-in cursors.
* [windows/clipping.c]
Invalidate child windows in InvalidateRgn().
* [windows/defwnd.c]
Added repaint of the caption when changing window text.
* [windows/event.c]
Modified SetCapture() to allow keyboard events while capturing.
* [windows/message.c]
New function MSG_GetHardwareMessage(), to do mouse tracking
without returning control to the Windows program.
* [windows/nonclient.c]
A couple of changes in frame drawing for DLGMODALFRAME windows.
Rewritten window moving code, to use MSG_GetHardwareMessage()
instead of non-client mouse events (this is the way Windows
does it), and to send WM_ENTERSIZEMOVE messages.
Removed WM_NCBUTTONUP and WM_NCMOUSEMOVE handlers.
* [windows/win.c]
Allocate temporary structures on the USER heap instead of
using GlobalAlloc().
* [windows/winpos.c]
Added function WINPOS_GetMinMaxInfo() to get sizing informations.
Jan 31, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [windows/nonclient.c]
Call to StdDrawScrollBar() during NC's drawing.
Call to NC_ScrollBarButtonDown() on NC mouse events WM_LBUTTONDOWN.
Call to NC_ScrollBarButtonUp() on NC mouse events WM_LBUTTONUP.
Call to NC_ScrollBarMouseMove() on NC mouse events WM_MOUSEMOVE.
* [controls/menu.c]
New GetSubMenu() function.
Move GetMenu() & SetMenu() functions from 'windows/win.c'.
* [controls/listbox.c]
Start changes to satisfy recent changes in scrollbars/windows.
* [loader/resource.c]
Put some code in LoadAccelerators() stub.
New TranslateAccelerator() function.
* [windows/win.c]
Remove GetMenu() & SetMenu() functions.
Call to NC_CreateScrollBars() if required by CreateWindow().
Mon Jan 24 10:40:10 EST 1994 John Richardson (jrichard@cs.uml.edu)
* [window/win.c]
Added functions EnumWindows, EnumChildWindows, and helper
WIN_EnumChildWin. EnumWindows won't list all wine windows
because GetDesktopWindow isn't complete. However, the code
is in place for it to work correctly and only needs
GetDesktopWindow to do so.
Tue Jan 25 05:51:47 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [windows/defwnd.c]
Added handling of activation messages (WM_ACTIVATE,
WM_NCACTIVATE, WM_MOUSEACTIVATE)
* [windows/event.c]
De-activate the window when losing input focus.
* [windows/focus.c]
Bug fix in SetFocus().
* [windows/message.c]
Added activation of the window on mouse-clicks.
* [windows/nonclient.c]
Changed non-client area painting to use the correct colors
depending upon the activation state.
Added WM_NCACTIVATE message handling.
Fixed a couple of bugs in window moving and resizing.
* [windows/winpos.c]
Implemented Get/SetActiveWindow().
Implemented SWP_NOACTIVATE flag in SetWindowPos().
Jan 17, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [misc/message.c]
MessageBox has a CaptionBar for his title except for
MB_SYSTEMMODAL with MB_ICONHAND.
* [windows/nonclient.c]
Call to NC_TrackSysMenu on SysMenu button mouse click.
* [windows/defwnd.c]
Call to NC_TrackSysMenu on Alt key (VK_MENU).
* [controls/menu.c]
New GetSystemMenu() function.
New CopySystemMenu() internal function.
New NC_TrackSysMenu() internal function.
* [include/windows.h]
New WM_INITMENU, WM_INITMENUPOPUP, WM_MENUSELECT & WM_MENUCHAR defines.
1994-02-02 07:48:31 +01:00
|
|
|
|
1995-03-19 18:39:39 +01:00
|
|
|
In most cases, you don't need to worry about segmented address, as the
|
|
|
|
conversion is made automatically by the callback code and the API
|
|
|
|
functions only see linear addresses. However, in some cases it is
|
|
|
|
necessary to manipulate segmented addresses; the most frequent cases
|
|
|
|
are:
|
|
|
|
- API functions that return a pointer
|
|
|
|
- lParam of Windows messages that point to a structure
|
|
|
|
- Pointers contained inside structures accessed by 16-bit code.
|
Release 940201
Tue Feb 1 21:14:47 1994 Bob Amstadt (bob@pooh)
* [loader/selector.c]
Added function CreateNewSegments(). Modified IPCCopySelector
to allow aliasing to any arbitrary memory space.
* [memory/global.c]
Fixed potential bug in GlobalGetFreeSegments().
* [memory/linear.c]
Created functions GlobalLinearLock() and GlobalLinearUnlock().
Tue Feb 1 05:51:43 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [controls/widgets.c]
Removed CAPTION window class.
* [loader/cursor.c]
Bug fix in LoadCursor(): don't allocate memory every time for
built-in cursors.
* [windows/clipping.c]
Invalidate child windows in InvalidateRgn().
* [windows/defwnd.c]
Added repaint of the caption when changing window text.
* [windows/event.c]
Modified SetCapture() to allow keyboard events while capturing.
* [windows/message.c]
New function MSG_GetHardwareMessage(), to do mouse tracking
without returning control to the Windows program.
* [windows/nonclient.c]
A couple of changes in frame drawing for DLGMODALFRAME windows.
Rewritten window moving code, to use MSG_GetHardwareMessage()
instead of non-client mouse events (this is the way Windows
does it), and to send WM_ENTERSIZEMOVE messages.
Removed WM_NCBUTTONUP and WM_NCMOUSEMOVE handlers.
* [windows/win.c]
Allocate temporary structures on the USER heap instead of
using GlobalAlloc().
* [windows/winpos.c]
Added function WINPOS_GetMinMaxInfo() to get sizing informations.
Jan 31, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [windows/nonclient.c]
Call to StdDrawScrollBar() during NC's drawing.
Call to NC_ScrollBarButtonDown() on NC mouse events WM_LBUTTONDOWN.
Call to NC_ScrollBarButtonUp() on NC mouse events WM_LBUTTONUP.
Call to NC_ScrollBarMouseMove() on NC mouse events WM_MOUSEMOVE.
* [controls/menu.c]
New GetSubMenu() function.
Move GetMenu() & SetMenu() functions from 'windows/win.c'.
* [controls/listbox.c]
Start changes to satisfy recent changes in scrollbars/windows.
* [loader/resource.c]
Put some code in LoadAccelerators() stub.
New TranslateAccelerator() function.
* [windows/win.c]
Remove GetMenu() & SetMenu() functions.
Call to NC_CreateScrollBars() if required by CreateWindow().
Mon Jan 24 10:40:10 EST 1994 John Richardson (jrichard@cs.uml.edu)
* [window/win.c]
Added functions EnumWindows, EnumChildWindows, and helper
WIN_EnumChildWin. EnumWindows won't list all wine windows
because GetDesktopWindow isn't complete. However, the code
is in place for it to work correctly and only needs
GetDesktopWindow to do so.
Tue Jan 25 05:51:47 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [windows/defwnd.c]
Added handling of activation messages (WM_ACTIVATE,
WM_NCACTIVATE, WM_MOUSEACTIVATE)
* [windows/event.c]
De-activate the window when losing input focus.
* [windows/focus.c]
Bug fix in SetFocus().
* [windows/message.c]
Added activation of the window on mouse-clicks.
* [windows/nonclient.c]
Changed non-client area painting to use the correct colors
depending upon the activation state.
Added WM_NCACTIVATE message handling.
Fixed a couple of bugs in window moving and resizing.
* [windows/winpos.c]
Implemented Get/SetActiveWindow().
Implemented SWP_NOACTIVATE flag in SetWindowPos().
Jan 17, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [misc/message.c]
MessageBox has a CaptionBar for his title except for
MB_SYSTEMMODAL with MB_ICONHAND.
* [windows/nonclient.c]
Call to NC_TrackSysMenu on SysMenu button mouse click.
* [windows/defwnd.c]
Call to NC_TrackSysMenu on Alt key (VK_MENU).
* [controls/menu.c]
New GetSystemMenu() function.
New CopySystemMenu() internal function.
New NC_TrackSysMenu() internal function.
* [include/windows.h]
New WM_INITMENU, WM_INITMENUPOPUP, WM_MENUSELECT & WM_MENUCHAR defines.
1994-02-02 07:48:31 +01:00
|
|
|
|
1995-03-19 18:39:39 +01:00
|
|
|
It is usually a good practice to used the type 'SEGPTR' for segmented
|
|
|
|
pointers, instead of something like 'LPSTR' or 'char *'. As SEGPTR is
|
|
|
|
defined as a DWORD, you'll get a compilation warning if you mistakenly
|
|
|
|
use it as a regular 32-bit pointer.
|
Release 940201
Tue Feb 1 21:14:47 1994 Bob Amstadt (bob@pooh)
* [loader/selector.c]
Added function CreateNewSegments(). Modified IPCCopySelector
to allow aliasing to any arbitrary memory space.
* [memory/global.c]
Fixed potential bug in GlobalGetFreeSegments().
* [memory/linear.c]
Created functions GlobalLinearLock() and GlobalLinearUnlock().
Tue Feb 1 05:51:43 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [controls/widgets.c]
Removed CAPTION window class.
* [loader/cursor.c]
Bug fix in LoadCursor(): don't allocate memory every time for
built-in cursors.
* [windows/clipping.c]
Invalidate child windows in InvalidateRgn().
* [windows/defwnd.c]
Added repaint of the caption when changing window text.
* [windows/event.c]
Modified SetCapture() to allow keyboard events while capturing.
* [windows/message.c]
New function MSG_GetHardwareMessage(), to do mouse tracking
without returning control to the Windows program.
* [windows/nonclient.c]
A couple of changes in frame drawing for DLGMODALFRAME windows.
Rewritten window moving code, to use MSG_GetHardwareMessage()
instead of non-client mouse events (this is the way Windows
does it), and to send WM_ENTERSIZEMOVE messages.
Removed WM_NCBUTTONUP and WM_NCMOUSEMOVE handlers.
* [windows/win.c]
Allocate temporary structures on the USER heap instead of
using GlobalAlloc().
* [windows/winpos.c]
Added function WINPOS_GetMinMaxInfo() to get sizing informations.
Jan 31, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [windows/nonclient.c]
Call to StdDrawScrollBar() during NC's drawing.
Call to NC_ScrollBarButtonDown() on NC mouse events WM_LBUTTONDOWN.
Call to NC_ScrollBarButtonUp() on NC mouse events WM_LBUTTONUP.
Call to NC_ScrollBarMouseMove() on NC mouse events WM_MOUSEMOVE.
* [controls/menu.c]
New GetSubMenu() function.
Move GetMenu() & SetMenu() functions from 'windows/win.c'.
* [controls/listbox.c]
Start changes to satisfy recent changes in scrollbars/windows.
* [loader/resource.c]
Put some code in LoadAccelerators() stub.
New TranslateAccelerator() function.
* [windows/win.c]
Remove GetMenu() & SetMenu() functions.
Call to NC_CreateScrollBars() if required by CreateWindow().
Mon Jan 24 10:40:10 EST 1994 John Richardson (jrichard@cs.uml.edu)
* [window/win.c]
Added functions EnumWindows, EnumChildWindows, and helper
WIN_EnumChildWin. EnumWindows won't list all wine windows
because GetDesktopWindow isn't complete. However, the code
is in place for it to work correctly and only needs
GetDesktopWindow to do so.
Tue Jan 25 05:51:47 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [windows/defwnd.c]
Added handling of activation messages (WM_ACTIVATE,
WM_NCACTIVATE, WM_MOUSEACTIVATE)
* [windows/event.c]
De-activate the window when losing input focus.
* [windows/focus.c]
Bug fix in SetFocus().
* [windows/message.c]
Added activation of the window on mouse-clicks.
* [windows/nonclient.c]
Changed non-client area painting to use the correct colors
depending upon the activation state.
Added WM_NCACTIVATE message handling.
Fixed a couple of bugs in window moving and resizing.
* [windows/winpos.c]
Implemented Get/SetActiveWindow().
Implemented SWP_NOACTIVATE flag in SetWindowPos().
Jan 17, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [misc/message.c]
MessageBox has a CaptionBar for his title except for
MB_SYSTEMMODAL with MB_ICONHAND.
* [windows/nonclient.c]
Call to NC_TrackSysMenu on SysMenu button mouse click.
* [windows/defwnd.c]
Call to NC_TrackSysMenu on Alt key (VK_MENU).
* [controls/menu.c]
New GetSystemMenu() function.
New CopySystemMenu() internal function.
New NC_TrackSysMenu() internal function.
* [include/windows.h]
New WM_INITMENU, WM_INITMENUPOPUP, WM_MENUSELECT & WM_MENUCHAR defines.
1994-02-02 07:48:31 +01:00
|
|
|
|
1996-05-06 18:06:24 +02:00
|
|
|
|
1996-05-21 17:01:41 +02:00
|
|
|
STRUCTURE PACKING
|
|
|
|
=================
|
|
|
|
|
|
|
|
Under Windows, data structures are tightly packed, i.e. there is no
|
|
|
|
padding between structure members. On the other hand, by default gcc
|
|
|
|
aligns structure members (e.g. WORDs are on a WORD boundary, etc.).
|
|
|
|
This means that a structure like
|
|
|
|
|
|
|
|
struct { BYTE x; WORD y; };
|
|
|
|
|
|
|
|
will take 3 bytes under Windows, but 4 with gcc, because gcc will add a
|
|
|
|
dummy byte between x and y. To have the correct layout for structures
|
1999-06-05 13:52:46 +02:00
|
|
|
used by Windows code, you need to embed the struct within two special
|
|
|
|
#include's which will take care of the packing for you:
|
|
|
|
|
|
|
|
#include "pshpack1.h"
|
1999-10-31 23:15:58 +01:00
|
|
|
struct { BYTE x; WORD y; };
|
1999-06-05 13:52:46 +02:00
|
|
|
#include "poppack1.h"
|
|
|
|
|
|
|
|
For alignment on a 2-byte boundary, there is a "pshpack2.h", etc.
|
|
|
|
|
1996-05-21 17:01:41 +02:00
|
|
|
|
1996-05-06 18:06:24 +02:00
|
|
|
NAMING CONVENTIONS FOR API FUNCTIONS AND TYPES
|
|
|
|
==============================================
|
|
|
|
|
|
|
|
In order to support both Win16 and Win32 APIs within the same source
|
1998-11-22 17:56:44 +01:00
|
|
|
code, the following convention must be used in naming all API
|
1996-05-06 18:06:24 +02:00
|
|
|
functions and types. If the Windows API uses the name 'xxx', the Wine
|
|
|
|
code must use:
|
|
|
|
|
1999-02-26 13:33:21 +01:00
|
|
|
- 'xxx16' for the Win16 version,
|
2004-02-13 05:00:52 +01:00
|
|
|
- 'xxx' for the Win32 version when no strings are involved,
|
1999-02-26 13:33:21 +01:00
|
|
|
- 'xxxA' for the Win32 version with ASCII strings,
|
|
|
|
- 'xxxW' for the Win32 version with Unicode strings.
|
1996-05-06 18:06:24 +02:00
|
|
|
|
1999-02-26 13:33:21 +01:00
|
|
|
If the function has both ASCII and Unicode version, you should then
|
|
|
|
use the macros WINELIB_NAME_AW(xxx) or DECL_WINELIB_TYPE_AW(xxx)
|
1999-07-18 15:28:59 +02:00
|
|
|
(defined in include/windef.h) to define the correct 'xxx' function
|
1999-02-26 13:33:21 +01:00
|
|
|
or type for Winelib. When compiling Wine itself, 'xxx' is _not_
|
|
|
|
defined, meaning that code inside of Wine must always specify
|
|
|
|
explicitly the ASCII or Unicode version.
|
1996-05-06 18:06:24 +02:00
|
|
|
|
1999-02-26 13:33:21 +01:00
|
|
|
If 'xxx' is the same in Win16 and Win32, you can simply use the same
|
|
|
|
name as Windows, i.e. just 'xxx'. If 'xxx' is Win16 only, you could
|
|
|
|
use the name as is, but it's preferable to use 'xxx16' to make it
|
|
|
|
clear it is a Win16 function.
|
1996-05-06 18:06:24 +02:00
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
1999-02-26 13:33:21 +01:00
|
|
|
typedef struct { /* Win32 ASCII data structure */ } WNDCLASSA;
|
|
|
|
typedef struct { /* Win32 Unicode data structure */ } WNDCLASSW;
|
1996-05-06 18:06:24 +02:00
|
|
|
typedef struct { /* Win16 data structure */ } WNDCLASS16;
|
|
|
|
DECL_WINELIB_TYPE_AW(WNDCLASS);
|
|
|
|
|
|
|
|
ATOM RegisterClass16( WNDCLASS16 * );
|
1999-02-26 13:33:21 +01:00
|
|
|
ATOM RegisterClassA( WNDCLASSA * );
|
|
|
|
ATOM RegisterClassW( WNDCLASSW * );
|
1996-05-06 18:06:24 +02:00
|
|
|
#define RegisterClass WINELIB_NAME_AW(RegisterClass)
|
|
|
|
|
|
|
|
The Winelib user can then say:
|
|
|
|
|
|
|
|
WNDCLASS wc = { ... };
|
|
|
|
RegisterClass( &wc );
|
|
|
|
|
|
|
|
and this will use the correct declaration depending on the definition
|
1999-02-26 13:33:21 +01:00
|
|
|
of the UNICODE symbol.
|
1996-05-06 18:06:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
DEBUG MESSAGES
|
|
|
|
==============
|
1994-10-17 19:12:41 +01:00
|
|
|
|
|
|
|
To display a message only during debugging, you normally write something
|
|
|
|
like this:
|
|
|
|
|
2002-09-18 20:29:59 +02:00
|
|
|
TRACE("abc..."); or
|
|
|
|
FIXME("abc..."); or
|
|
|
|
WARN("abc..."); or
|
|
|
|
ERR("abc...");
|
1998-03-29 21:44:57 +02:00
|
|
|
|
2003-09-22 21:26:32 +02:00
|
|
|
depending on the seriousness of the problem. (documentation/debugging.sgml
|
2002-09-18 20:29:59 +02:00
|
|
|
explains when it is appropriate to use each of them). You need to declare
|
|
|
|
the debug channel name at the top of the file (after the includes) using
|
|
|
|
the WINE_DEFAULT_DEBUG_CHANNEL macro, like so:
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(win);
|
|
|
|
|
|
|
|
If your debugging code is more complex than just printf, you can use
|
|
|
|
the macros:
|
|
|
|
|
|
|
|
TRACE_ON(xxx), WARN_ON(xxx), ERR_ON(xxx) and FIXME_ON(xxx)
|
|
|
|
|
|
|
|
to test if the given channel is enabled. Thus, you can write:
|
|
|
|
|
|
|
|
if (TRACE_ON(win)) DumpSomeStructure(&str);
|
1998-03-29 21:44:57 +02:00
|
|
|
|
1994-12-10 14:02:28 +01:00
|
|
|
Don't worry about the inefficiency of the test. If it is permanently
|
1998-03-29 21:44:57 +02:00
|
|
|
disabled (that is TRACE_ON(win) is 0 at compile time), the compiler will
|
1994-12-10 14:02:28 +01:00
|
|
|
eliminate the dead code.
|
1994-10-17 19:12:41 +01:00
|
|
|
|
1998-03-29 21:44:57 +02:00
|
|
|
For more info about debugging messages, read:
|
|
|
|
|
2003-09-22 21:26:32 +02:00
|
|
|
http://www.winehq.org/site/docs/wine-devel/debugging
|
1998-03-29 21:44:57 +02:00
|
|
|
|
1997-06-16 19:43:53 +02:00
|
|
|
|
|
|
|
MORE INFO
|
|
|
|
=========
|
|
|
|
|
1997-06-29 20:08:02 +02:00
|
|
|
1. There is a FREE online version of the MSDN library (including
|
2002-12-24 01:56:33 +01:00
|
|
|
documentation for the Win32 API) on http://msdn.microsoft.com/
|
2003-08-27 04:03:52 +02:00
|
|
|
or http://www.msdn.com/
|
1997-06-16 19:43:53 +02:00
|
|
|
|
2003-06-30 04:05:07 +02:00
|
|
|
2. Windows apilist: http://www.mentalis.org/apilist/apilist.php
|
|
|
|
|
|
|
|
3. http://www.sonic.net/~undoc/bookstore.html
|
|
|
|
|
|
|
|
4. In 1993 Dr. Dobbs Journal published a column called "Undocumented Corner".
|
2003-10-09 21:47:23 +02:00
|
|
|
|
|
|
|
5. www.geocities.com/SiliconValley/4942/
|