1999-02-05 10:37:53 +00:00
|
|
|
/* * Message queues related functions
|
1996-03-14 18:08:34 +00:00
|
|
|
*
|
|
|
|
* Copyright 1993, 1994 Alexandre Julliard
|
|
|
|
*/
|
|
|
|
|
1999-02-28 12:25:03 +00:00
|
|
|
#include <string.h>
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
#include <signal.h>
|
1999-02-17 13:51:06 +00:00
|
|
|
#include "wine/winbase16.h"
|
|
|
|
#include "wine/winuser16.h"
|
1997-08-04 16:34:36 +00:00
|
|
|
#include "miscemu.h"
|
1996-03-14 18:08:34 +00:00
|
|
|
#include "module.h"
|
|
|
|
#include "queue.h"
|
1996-05-28 18:54:58 +00:00
|
|
|
#include "task.h"
|
1996-03-14 18:08:34 +00:00
|
|
|
#include "win.h"
|
Release 971116
Sun Nov 16 07:42:44 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c] [windows/clipboard.c] [windows/nonclient.c]
Bug fixes.
* [misc/shell.c] [resources/*]
New "About" dialog.
Sat Nov 15 17:30:18 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure.in] [Makefile.in]
Replaced --with-library option by --disable-emulator. The default
is now to build both the library and the emulator.
Renamed --with options to --enable to follow autoconf guidelines.
* [loader/main.c] [miscemu/main.c] (New file)
Split initialization in WinelibInit/EmulatorInit.
* [loader/*.c]
Removed all remaining #ifdef's WINELIB.
* [controls/widgets.c] [windows/mdi.c]
Converted MDIClientWndProc to 32-bit.
* [debugger/break.c] [if1632/signal.c] [include/selectors.h]
[scheduler/thread.c]
Code and data selector values are now computed at run-time.
* [library/libres.c]
Moved to loader/ directory.
* [misc/main.c] [misc/version.c] (New file)
Moved all version stuff to version.c. Cleaned up a bit.
* [msdos/dpmi.c]
Update the REALMODECALL structure on return from real-mode
interrupt.
* [windows/event.c] [windows/keyboard.c]
Changed the way event coordinates are determined. Don't rely on
the ConfigureNotify event values. This should fix all problems
with cursor position in -desktop and -managed modes.
Sat Nov 15 16:09:36 1997 Slaven Rezic <eserte@cs.tu-berlin.de>
* [controls/button.c]
(BUTTON_CheckAutoRadioButton): Prevent possible endless loop.
Wed Nov 12 03:42:45 1997 Chris Faherty <chrisf@america.com>
* [misc/ver.c]
Changed VerInstall32A to assume srcdir as destination if destdir
is blank. This was causing alot of DLL installation into SYSTEM
directory to fail.
* [loader/ne_image.c]
NE_LoadSegment buffer[100] was too small and getting overruns.
Changed it to buffer[200].
Sat Nov 8 06:09:57 1997 Len White <phreak@cgocable.net>
* [misc/ddeml.c] [include/ddeml.h] [if1632/ddeml.spec]
Added stub functions DdeConnectList(), DdeQueryNextServer(),
DdeDisconnectList(), DdeSetUserHandle(), DdeAbandonTransaction(),
DdePostAdvise(), DdeCreateDataHandle(), DdeAddData(), DdeGetData(),
DdeAccessData(), DdeUnaccessData(), DdeEnableCallback(),
DdeCmpStringHandles().
Fri Nov 7 19:44:26 1997 Olaf Flebbe <o.flebbe@science-computing.de>
* [files/directory.c]
Fix typo in directory.c [broke loading of cdplayer on nt40]
* [misc/main.c]
Implemented -winver nt40.
* [loader/resource.c] [user32.spec]
Stubs for CopyAcceleratorTable, Destroy AcceleratorTable.
Thu Nov 6 22:37:04 1997 Morten Welinder <welinder@rentec.com>
* [files/drive.c]
(GetDiskFreeSpace32A): Cap at 2GB.
* [include/windows.h]
Prototype DrawIconEx and CreateDIBSection32.
Define OBM_RADIOCHECK.
Add DI_* macros.
* [objects/dib.c] [if1632/gdi.spec]
CreateDIBSection is a WINAPI. Renamed to CreateDIBSection32.
Implement CreateDIBSection16.
* [if1632/user.spec] [if1632/user32.spec]
Add DrawIconEx.
* [objects/cursoricon.c]
(CopyIcon32): Fix bogus implementation.
* [objects/bitmap.c]
(CopyBitmap32): New function.
(CopyImage32): Do bitmaps.
* [graphics/x11drv/text.c]
(X11DRV_ExtTextOut): Change ascent and descent default to avoid
zero-thinkness overstrike line.
* [include/debugstr.h] [misc/debugstr.c]
New files.
* [msdos/dpmi.c]
Don't prototype do_mscdex. In INT_Int31Handler, handle real-mode
int 0x21, ah=0x52.
* [msdos/int2f.c]
Add dummys for 0x1681 and 0x1682.
* [misc/registry.c]
Fix memory leaks in RegDeleteKey32W.
* [objects/text.c]
In TEXT_NextLine, fix another off-by-one bug.
* [include/bitmaps/obm_radiocheck]
New file. (It a small circle used to radio-button menu items
when selected.)
* [objects/oembitmap.c]
Add obm_radiocheck.
* [include/windows.h] [if1632/user32.spec] [controls/menu.c]
[if1632/user.spec]
Define CheckMenuRadioItem{16,32}. Define GetMenuItemRect{16,32}.
Wed Nov 5 11:30:14 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [misc/main.c]
Auto adjust versions depending on binary.
Tue Nov 4 15:21:00 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [controls/listbox.c]
Paint full background in listbox items with tab stops enabled.
* [if1632/thunk.c]
Copy some more message parameter structures (DRAWITEMSTRUCT16,
COMPAREITEMSTRUCT16) to the stack segment to fix broken programs
that need this.
* [windows/dce.c]
Only clip sibling windows when the parent has the WS_CLIPSIBLINGS
style set.
* [windows/focus.c]
Make order of events in FOCUS_SwitchFocus() reflect API docs.
* [windows/defdlg.c]
Fix problem with loss of focus in some dialogs.
* [win32/code_page.c]
Fix return value for MultiByteToWideChar().
* [BUGS]
BCW now works.
1997-11-16 17:38:29 +00:00
|
|
|
#include "clipboard.h"
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
#include "hook.h"
|
Release 980809
Sat Aug 8 19:11:46 1998 Marcus Meissner <marcus@jet.franken.de>
* [*/*]
Added some missing WINAPI and some missing prototypes for
functions.
* [controls/static.c]
Got rid of the MODULE32_LookupHMODULE error showing up for every
message box.
* [windows/winproc.c]
WM_NOTIFY 16->32 mapping (AOL Instant Messenger or however it is called).
* [misc/winsock.c]
hostent/servent/protoent should not use the same static buffers.
(has broken nt3.15 finger.exe which does hp=gethostbyname(), then
getservbyname("finger","tcp") and the references hp->h_addr_list[0]).
Sat Aug 8 13:21:24 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/server.h] [tools/make_requests] [server/request.c]
[server/trace.c]
Automated part of the client/server request code generation.
Added tracing of client/server communication.
* [scheduler/*.c] [server/process.c]
Added support for server-side handles.
* [scheduler/thread.c]
Added DLL_THREAD_ATTACH/DETACH notifications.
* [configure.in]
Added check for -lsocket.
* [windows/winproc.c]
Return the thunk address in WINPROC_GetProc if the function types
don't match.
Sat Aug 8 02:44:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [windows/winproc.c][windows/win.c][windows/message.c]
Documentation for CallWindowProc, SetWindowLong, DispatchMessage,
WaitMessage, GetMessage, and PeekMessage.
Sat Aug 8 01:00:00 1998 Juergen Schmied <juergen.schmied@metronet.de>
* [controls/commctrl.c][controls/widgets.c][include/builtin32.h]
[include/commctrl.h][relay32/builtin32.c][relay32/comctl32.spec]
[tools/build.c] [relay32/shell32.spec]
Added the functionality of the LibMain function. The common
controls are properly initialized now.
* [controls/treeview.c][memory/atom.c][scheduler/thread.c][windows/class.c]
[windows/msgbox.c][windows/win.c]
Put TRACE in, put SetLastError() in.
* [include/interfaces.h]
Added IClassFactory::LockServer.
* [include/ole2.h]
Added struct for LPOLEMENUGROUPWIDTHS32, HOLEMENU32.
* [include/shell.h][include/shlobj.h][misc/shell.c][ole/folders.c]
Reorganized and many structs and classes (IShellBrowser,IShellView)
added. shell32.dll should work in many cases now.
Started SHGetFileInfoA implementeation, rewrote SHGetPathFromIDList32A.
New Shell32LibMain started ShellIconCache Implementation.
* [misc/shellord.c]
Rewrote ILCombine, ILGetSize
New stubs SHFind_InitMenuPopup, FileMenu_Create, ShellExecuteEx,
SHSetInstanceExplorer, SHGetInstanceExplorer, SHFreeUnusedLibraries.
* [include/winerror.h]
Class and window related error codes added.
* [memory/heap.c]
Changed lstrlen32A to strlen to get rid of milions of TRACE lines.
* [misc/ddeml.c]
First lines for DdeCreateStringHandle32A / DdeFreeStringHandle32.
* [misc/network.c][relay32/mpr.spec]
Fixed some bugs, changed ordinals.
* [windows/class.c]
Workarounds for incorrect hInstance handling. Fixes parts of
MSWord95/Excel95 and Money95.
Thu Aug 6 21:05:35 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de>
* [windows/nonclient.c][misc/tweak.c][include/tweak.h]
[documentation/win95look]
Removed some tweak variables. They are no longer needed.
* [files/dos_fs.c]
Added check for null pointer in DOSFS_GetDevice().
* [controls/tooltips.c][include/commctrl.h]
Improved tooltips.
* [controls/status.c][include/commctrl.h]
Cleaned up code and added tooltip support.
* [controls/toolbar.c][include/commctrl.h]
Added tooltip support.
* [documentation/common_controls]
Updated.
Thu Aug 6 00:05:22 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [include/ver.h] [misc/ver.c]
Write VIF_BUFFTOOSMALL, not VIF_BUFTOSMALL.
* [debugger/hash.c] [debugger/stabs.c]
Make debug output more friendly for posting.
* [files/file.c]
Partial implementation of OF_SHARE_EXCLUSIVE.
Needed for Quicklogic/QuickChip (InstallShield).
* [files/profile.c]
When a cached-only entry is found, return it.
* [graphics/x11drv/xfont.c]
Accept a space as delimiter for a fontname and inhibit overrun
(Make xplasim.ex from the Phillips Coolrunner CPLD suite proceed).
* [miscemu/main.c]
Delay setting IF1632_CallLargeStack after loading the executables.
Stops fpgaexp.exe from the Viewlogic FPGA suite from crashing when
showing the Blinker error Message Box.
* [misc/network.c]
Make WNetGetConnection16 recognise a CDROM as a local drive.
* [multimedia/mmsystem.c]
Preliminary check for MCI_ALL_DEVICE_ID in MCI_Close by a FIXME.
Tue Aug 4 21:15:23 1998 James Juran <jrj120@psu.edu>
* [ole/ole2nls.c]
Fixed bug in CompareString32A. strcmp() doesn't necessarily
return -1, 0, or 1, which the previous code depended on.
Changed name of is_punctuation to OLE2NLS_isPunctuation.
Made NORM_IGNOREWIDTH not print a FIXME message in
LCMapString32A.
Other debugging messages, documentation, and code cleanups.
* [objects/font.c] [relay32/gdi32.spec] [include/winerror.h]
Added stub for GetFontData32, and added GDI_ERROR constant
to winerror.h.
Tue Aug 4 07:44:43 1998 Ove Kaaven <ovek@arcticnet.no>
* [multimedia/mmio.c]
Implemented mmioSetBuffer, mmioAdvance, mmioAscend, and
mmioCreateChunk to the best of my knowledge. But watch out,
there's bound to be bugs in there...
* [include/mmsystem.h] [multimedia/mmsystem.c]
Hacked in support for 32-bit multimedia function callbacks.
* [AUTHORS] [misc/shell.c]
Selfishly credited my authorship. Hopefully I'm excused.
* [include/dosexe.h] [include/module.h] [loader/dos/*]
[loader/module.c] [loader/task.c] [Makefile.in]
[configure.in] [Makefile.in]
Added DOS EXE (MZ) loader and virtual machine. Task
structure integration thanks to Ulrich Weigand.
* [files/dos_fs.c]
Work around a null pointer dereference if ioctlGetDeviceInfo-ing
a FILE_DupUnixHandle'd file (i.e. GetStdHandle'd).
* [include/miscemu.h] [include/winnt.h] [loader/main.c]
[memory/global.c] [msdos/dpmi.c] [msdos/dosmem.c]
Added support for DOS memory images, and added
DOSMEM_ResizeBlock() and DOSMEM_Available().
* [msdos/int21.c]
Added support for the DOS virtual machine, tweaked handle
assignment to avoid stdio clashes, forced INT21_FindNext to exit
wildcardless searches after finding one entry, added AH=7, 8, 9,
C, 48, 49, 4A, and 7160 CL=1 (Get Short Filename), and made the
long filename calls only respond if running with with -winver
win95.
* [objects/cursoricon.c]
DestroyCursor32 and DestroyIcon32 should now free the objects
(hopefully) correctly.
Sun Aug 2 21:42:09 1998 Huw D M Davies <daviesh@abacus.physics.ox.ac.uk>
* [graphics/psdrv/*] [include/psdrv.h]
Added PPD file parsing - at the moment it reads a file called
default.ppd from the directory in which you start Wine. Page sizes
other than A4 should now work (landscape may not). All fonts that are
present on your printer (according to the PPD) should be available,
providing you have the AFM files. Fonts should now be the correct size.
Graphics is still basically lines only. See graphics/psdrv/README .
* [misc/printdrv.c]
Yet more Drv[Get/Set]PrinterData fixes.
Fri Jul 31 21:33:22 1998 Per Lindstrm <pelinstr@algonet.se>
* [relay32/crtdll.spec] [misc/crtdll.c]
Added stub for freopen, _findfirst, _findnext, _fstat and _read.
* [files/directory.c]
Modified warning message.
Wed Jul 29 11:25:28 1998 Luiz Otavio L. Zorzella <zorzella@nr.conexware.com>
* [objects/font.c]
Added stub for GetFontData.
* [multimedia/msvideo.c]
Created this file to hold the msvideo.dll calls (and maybe also
msvfw32.dll).
* [objects/cursoricon.c]
Added search in Global Heap for cursor when trying to destroy it
with DestroyCursor16. This test should be done in many (all?)
other functions that use FreeResource.
* [controls/treeview.c] [include/commctrl.h]
Minor correction in name and addition of many placeholders for TVM
messages in TREEVIEW_WindowProc.
* [msdos/dpmi.c]
Fixed a bug in DPMI_xrealloc where in a copy of a memory region
"A" of size "a" to a region "B" of size "b", "b" bytes were being
copied, instead of "a", as the new version does. This both
increases speed, as well as avoids segfaults.
1998-08-09 12:47:43 +00:00
|
|
|
#include "heap.h"
|
1997-02-02 19:01:52 +00:00
|
|
|
#include "thread.h"
|
|
|
|
#include "process.h"
|
1999-02-05 10:37:53 +00:00
|
|
|
#include <assert.h>
|
1999-05-02 14:32:27 +00:00
|
|
|
#include "debugtools.h"
|
1999-02-18 17:34:09 +00:00
|
|
|
#include "spy.h"
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-04-19 14:56:29 +00:00
|
|
|
DECLARE_DEBUG_CHANNEL(msg)
|
|
|
|
DECLARE_DEBUG_CHANNEL(sendmsg)
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
#define MAX_QUEUE_SIZE 120 /* Max. size of a message queue */
|
|
|
|
|
1996-07-17 20:02:21 +00:00
|
|
|
static HQUEUE16 hFirstQueue = 0;
|
1997-05-25 13:58:18 +00:00
|
|
|
static HQUEUE16 hExitingQueue = 0;
|
1996-07-17 20:02:21 +00:00
|
|
|
static HQUEUE16 hmemSysMsgQueue = 0;
|
1996-09-28 18:11:01 +00:00
|
|
|
static MESSAGEQUEUE *sysMsgQueue = NULL;
|
1999-02-05 10:37:53 +00:00
|
|
|
static PERQUEUEDATA *pQDataWin16 = NULL; /* Global perQData for Win16 tasks */
|
1996-09-28 18:11:01 +00:00
|
|
|
|
1996-06-16 16:16:05 +00:00
|
|
|
static MESSAGEQUEUE *pMouseQueue = NULL; /* Queue for last mouse message */
|
|
|
|
static MESSAGEQUEUE *pKbdQueue = NULL; /* Queue for last kbd message */
|
1996-09-28 18:11:01 +00:00
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
HQUEUE16 hCursorQueue = 0;
|
|
|
|
HQUEUE16 hActiveQueue = 0;
|
|
|
|
|
|
|
|
|
1999-02-05 10:37:53 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* PERQDATA_CreateInstance
|
|
|
|
*
|
|
|
|
* Creates an instance of a reference counted PERQUEUEDATA element
|
|
|
|
* for the message queue. perQData is stored globally for 16 bit tasks.
|
|
|
|
*
|
|
|
|
* Note: We don't implement perQdata exactly the same way Windows does.
|
|
|
|
* Each perQData element is reference counted since it may be potentially
|
|
|
|
* shared by multiple message Queues (via AttachThreadInput).
|
|
|
|
* We only store the current values for Active, Capture and focus windows
|
|
|
|
* currently.
|
|
|
|
*/
|
|
|
|
PERQUEUEDATA * PERQDATA_CreateInstance( )
|
|
|
|
{
|
|
|
|
PERQUEUEDATA *pQData;
|
|
|
|
|
|
|
|
BOOL16 bIsWin16 = 0;
|
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(msg)("()\n");
|
1999-02-05 10:37:53 +00:00
|
|
|
|
|
|
|
/* Share a single instance of perQData for all 16 bit tasks */
|
|
|
|
if ( ( bIsWin16 = THREAD_IsWin16( THREAD_Current() ) ) )
|
|
|
|
{
|
|
|
|
/* If previously allocated, just bump up ref count */
|
|
|
|
if ( pQDataWin16 )
|
|
|
|
{
|
|
|
|
PERQDATA_Addref( pQDataWin16 );
|
|
|
|
return pQDataWin16;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Allocate PERQUEUEDATA from the system heap */
|
|
|
|
if (!( pQData = (PERQUEUEDATA *) HeapAlloc( SystemHeap, 0,
|
|
|
|
sizeof(PERQUEUEDATA) ) ))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
/* Initialize */
|
|
|
|
pQData->hWndCapture = pQData->hWndFocus = pQData->hWndActive = 0;
|
|
|
|
pQData->ulRefCount = 1;
|
|
|
|
pQData->nCaptureHT = HTCLIENT;
|
|
|
|
|
|
|
|
/* Note: We have an independent critical section for the per queue data
|
|
|
|
* since this may be shared by different threads. see AttachThreadInput()
|
|
|
|
*/
|
|
|
|
InitializeCriticalSection( &pQData->cSection );
|
|
|
|
|
|
|
|
/* Save perQData globally for 16 bit tasks */
|
|
|
|
if ( bIsWin16 )
|
|
|
|
pQDataWin16 = pQData;
|
|
|
|
|
|
|
|
return pQData;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* PERQDATA_Addref
|
|
|
|
*
|
|
|
|
* Increment reference count for the PERQUEUEDATA instance
|
|
|
|
* Returns reference count for debugging purposes
|
|
|
|
*/
|
|
|
|
ULONG PERQDATA_Addref( PERQUEUEDATA *pQData )
|
|
|
|
{
|
|
|
|
assert(pQData != 0 );
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(msg)("(): current refcount %lu ...\n", pQData->ulRefCount);
|
1999-02-05 10:37:53 +00:00
|
|
|
|
|
|
|
EnterCriticalSection( &pQData->cSection );
|
|
|
|
++pQData->ulRefCount;
|
|
|
|
LeaveCriticalSection( &pQData->cSection );
|
|
|
|
|
|
|
|
return pQData->ulRefCount;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* PERQDATA_Release
|
|
|
|
*
|
|
|
|
* Release a reference to a PERQUEUEDATA instance.
|
|
|
|
* Destroy the instance if no more references exist
|
|
|
|
* Returns reference count for debugging purposes
|
|
|
|
*/
|
|
|
|
ULONG PERQDATA_Release( PERQUEUEDATA *pQData )
|
|
|
|
{
|
|
|
|
assert(pQData != 0 );
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(msg)("(): current refcount %lu ...\n",
|
1999-02-05 10:37:53 +00:00
|
|
|
(LONG)pQData->ulRefCount );
|
|
|
|
|
|
|
|
EnterCriticalSection( &pQData->cSection );
|
|
|
|
if ( --pQData->ulRefCount == 0 )
|
|
|
|
{
|
|
|
|
LeaveCriticalSection( &pQData->cSection );
|
|
|
|
DeleteCriticalSection( &pQData->cSection );
|
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(msg)("(): deleting PERQUEUEDATA instance ...\n" );
|
1999-02-05 10:37:53 +00:00
|
|
|
|
|
|
|
/* Deleting our global 16 bit perQData? */
|
|
|
|
if ( pQData == pQDataWin16 )
|
|
|
|
pQDataWin16 = 0;
|
|
|
|
|
|
|
|
/* Free the PERQUEUEDATA instance */
|
|
|
|
HeapFree( SystemHeap, 0, pQData );
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
LeaveCriticalSection( &pQData->cSection );
|
|
|
|
|
|
|
|
return pQData->ulRefCount;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* PERQDATA_GetFocusWnd
|
|
|
|
*
|
|
|
|
* Get the focus hwnd member in a threadsafe manner
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND PERQDATA_GetFocusWnd( PERQUEUEDATA *pQData )
|
1999-02-05 10:37:53 +00:00
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND hWndFocus;
|
1999-02-05 10:37:53 +00:00
|
|
|
assert(pQData != 0 );
|
|
|
|
|
|
|
|
EnterCriticalSection( &pQData->cSection );
|
|
|
|
hWndFocus = pQData->hWndFocus;
|
|
|
|
LeaveCriticalSection( &pQData->cSection );
|
|
|
|
|
|
|
|
return hWndFocus;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* PERQDATA_SetFocusWnd
|
|
|
|
*
|
|
|
|
* Set the focus hwnd member in a threadsafe manner
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND PERQDATA_SetFocusWnd( PERQUEUEDATA *pQData, HWND hWndFocus )
|
1999-02-05 10:37:53 +00:00
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND hWndFocusPrv;
|
1999-02-05 10:37:53 +00:00
|
|
|
assert(pQData != 0 );
|
|
|
|
|
|
|
|
EnterCriticalSection( &pQData->cSection );
|
|
|
|
hWndFocusPrv = pQData->hWndFocus;
|
|
|
|
pQData->hWndFocus = hWndFocus;
|
|
|
|
LeaveCriticalSection( &pQData->cSection );
|
|
|
|
|
|
|
|
return hWndFocusPrv;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* PERQDATA_GetActiveWnd
|
|
|
|
*
|
|
|
|
* Get the active hwnd member in a threadsafe manner
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND PERQDATA_GetActiveWnd( PERQUEUEDATA *pQData )
|
1999-02-05 10:37:53 +00:00
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND hWndActive;
|
1999-02-05 10:37:53 +00:00
|
|
|
assert(pQData != 0 );
|
|
|
|
|
|
|
|
EnterCriticalSection( &pQData->cSection );
|
|
|
|
hWndActive = pQData->hWndActive;
|
|
|
|
LeaveCriticalSection( &pQData->cSection );
|
|
|
|
|
|
|
|
return hWndActive;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* PERQDATA_SetActiveWnd
|
|
|
|
*
|
|
|
|
* Set the active focus hwnd member in a threadsafe manner
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND PERQDATA_SetActiveWnd( PERQUEUEDATA *pQData, HWND hWndActive )
|
1999-02-05 10:37:53 +00:00
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND hWndActivePrv;
|
1999-02-05 10:37:53 +00:00
|
|
|
assert(pQData != 0 );
|
|
|
|
|
|
|
|
EnterCriticalSection( &pQData->cSection );
|
|
|
|
hWndActivePrv = pQData->hWndActive;
|
|
|
|
pQData->hWndActive = hWndActive;
|
|
|
|
LeaveCriticalSection( &pQData->cSection );
|
|
|
|
|
|
|
|
return hWndActivePrv;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* PERQDATA_GetCaptureWnd
|
|
|
|
*
|
|
|
|
* Get the capture hwnd member in a threadsafe manner
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND PERQDATA_GetCaptureWnd( PERQUEUEDATA *pQData )
|
1999-02-05 10:37:53 +00:00
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND hWndCapture;
|
1999-02-05 10:37:53 +00:00
|
|
|
assert(pQData != 0 );
|
|
|
|
|
|
|
|
EnterCriticalSection( &pQData->cSection );
|
|
|
|
hWndCapture = pQData->hWndCapture;
|
|
|
|
LeaveCriticalSection( &pQData->cSection );
|
|
|
|
|
|
|
|
return hWndCapture;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* PERQDATA_SetCaptureWnd
|
|
|
|
*
|
|
|
|
* Set the capture hwnd member in a threadsafe manner
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND PERQDATA_SetCaptureWnd( PERQUEUEDATA *pQData, HWND hWndCapture )
|
1999-02-05 10:37:53 +00:00
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND hWndCapturePrv;
|
1999-02-05 10:37:53 +00:00
|
|
|
assert(pQData != 0 );
|
|
|
|
|
|
|
|
EnterCriticalSection( &pQData->cSection );
|
|
|
|
hWndCapturePrv = pQData->hWndCapture;
|
|
|
|
pQData->hWndCapture = hWndCapture;
|
|
|
|
LeaveCriticalSection( &pQData->cSection );
|
|
|
|
|
|
|
|
return hWndCapturePrv;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* PERQDATA_GetCaptureInfo
|
|
|
|
*
|
|
|
|
* Get the capture info member in a threadsafe manner
|
|
|
|
*/
|
|
|
|
INT16 PERQDATA_GetCaptureInfo( PERQUEUEDATA *pQData )
|
|
|
|
{
|
|
|
|
INT16 nCaptureHT;
|
|
|
|
assert(pQData != 0 );
|
|
|
|
|
|
|
|
EnterCriticalSection( &pQData->cSection );
|
|
|
|
nCaptureHT = pQData->nCaptureHT;
|
|
|
|
LeaveCriticalSection( &pQData->cSection );
|
|
|
|
|
|
|
|
return nCaptureHT;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* PERQDATA_SetCaptureInfo
|
|
|
|
*
|
|
|
|
* Set the capture info member in a threadsafe manner
|
|
|
|
*/
|
|
|
|
INT16 PERQDATA_SetCaptureInfo( PERQUEUEDATA *pQData, INT16 nCaptureHT )
|
|
|
|
{
|
|
|
|
INT16 nCaptureHTPrv;
|
|
|
|
assert(pQData != 0 );
|
|
|
|
|
|
|
|
EnterCriticalSection( &pQData->cSection );
|
|
|
|
nCaptureHTPrv = pQData->nCaptureHT;
|
|
|
|
pQData->nCaptureHT = nCaptureHT;
|
|
|
|
LeaveCriticalSection( &pQData->cSection );
|
|
|
|
|
|
|
|
return nCaptureHTPrv;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_Lock
|
|
|
|
*
|
1999-02-05 10:37:53 +00:00
|
|
|
* Function for getting a 32 bit pointer on queue strcture. For thread
|
1999-01-28 10:54:11 +00:00
|
|
|
* safeness programmers should use this function instead of GlobalLock to
|
|
|
|
* retrieve a pointer on the structure. QUEUE_Unlock should also be called
|
|
|
|
* when access to the queue structure is not required anymore.
|
|
|
|
*/
|
|
|
|
MESSAGEQUEUE *QUEUE_Lock( HQUEUE16 hQueue )
|
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
|
|
|
|
1999-03-21 08:36:55 +00:00
|
|
|
HeapLock( SystemHeap ); /* FIXME: a bit overkill */
|
1999-01-28 10:54:11 +00:00
|
|
|
queue = GlobalLock16( hQueue );
|
|
|
|
if ( !queue || (queue->magic != QUEUE_MAGIC) )
|
|
|
|
{
|
1999-03-21 08:36:55 +00:00
|
|
|
HeapUnlock( SystemHeap );
|
1999-01-28 10:54:11 +00:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
queue->lockCount++;
|
1999-03-21 08:36:55 +00:00
|
|
|
HeapUnlock( SystemHeap );
|
1999-01-28 10:54:11 +00:00
|
|
|
return queue;
|
|
|
|
}
|
|
|
|
|
1999-02-05 10:37:53 +00:00
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_Unlock
|
|
|
|
*
|
1999-05-01 10:20:18 +00:00
|
|
|
* Use with QUEUE_Lock to get a thread safe access to message queue
|
1999-01-28 10:54:11 +00:00
|
|
|
* structure
|
|
|
|
*/
|
|
|
|
void QUEUE_Unlock( MESSAGEQUEUE *queue )
|
|
|
|
{
|
|
|
|
if (queue)
|
|
|
|
{
|
1999-03-21 08:36:55 +00:00
|
|
|
HeapLock( SystemHeap ); /* FIXME: a bit overkill */
|
1999-01-28 10:54:11 +00:00
|
|
|
|
|
|
|
if ( --queue->lockCount == 0 )
|
|
|
|
{
|
|
|
|
DeleteCriticalSection ( &queue->cSection );
|
1999-02-09 15:35:12 +00:00
|
|
|
if (queue->hEvent)
|
|
|
|
CloseHandle( queue->hEvent );
|
1999-01-28 10:54:11 +00:00
|
|
|
GlobalFree16( queue->self );
|
|
|
|
}
|
|
|
|
|
1999-03-21 08:36:55 +00:00
|
|
|
HeapUnlock( SystemHeap );
|
1999-01-28 10:54:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_DumpQueue
|
|
|
|
*/
|
1996-07-12 19:02:39 +00:00
|
|
|
void QUEUE_DumpQueue( HQUEUE16 hQueue )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *pq;
|
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
if (!(pq = (MESSAGEQUEUE*) QUEUE_Lock( hQueue )) )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
WARN_(msg)("%04x is not a queue handle\n", hQueue );
|
1996-03-14 18:08:34 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
DPRINTF( "next: %12.4x Intertask SendMessage:\n"
|
1999-01-26 09:30:05 +00:00
|
|
|
"thread: %10p ----------------------\n"
|
1999-02-18 17:34:09 +00:00
|
|
|
"firstMsg: %8p smWaiting: %10p\n"
|
|
|
|
"lastMsg: %8p smPending: %10p\n"
|
|
|
|
"msgCount: %8.4x smProcessing: %10p\n"
|
|
|
|
"lockCount: %7.4x\n"
|
|
|
|
"wWinVer: %9.4x\n"
|
|
|
|
"paints: %10.4x\n"
|
|
|
|
"timers: %10.4x\n"
|
1996-03-14 18:08:34 +00:00
|
|
|
"wakeBits: %8.4x\n"
|
|
|
|
"wakeMask: %8.4x\n"
|
|
|
|
"hCurHook: %8.4x\n",
|
1999-02-18 17:34:09 +00:00
|
|
|
pq->next, pq->thdb, pq->firstMsg, pq->smWaiting, pq->lastMsg,
|
|
|
|
pq->smPending, pq->msgCount, pq->smProcessing,
|
|
|
|
(unsigned)pq->lockCount, pq->wWinVersion,
|
|
|
|
pq->wPaintCount, pq->wTimerCount,
|
|
|
|
pq->wakeBits, pq->wakeMask, pq->hCurHook);
|
1999-01-28 10:54:11 +00:00
|
|
|
|
|
|
|
QUEUE_Unlock( pq );
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_WalkQueues
|
|
|
|
*/
|
|
|
|
void QUEUE_WalkQueues(void)
|
|
|
|
{
|
Release 980517
Sun May 17 16:23:56 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [file/profile.c]
Fix the return value of PROFILE_GetSection
* [misc/crtdll.c]
Do _getdrive, fix _chdrive.
* [misc/commdlg.c]
First cut at ChooseColor[WA].
* [misc/network.c]
Do something sensible for WNetGetDirectoryType16.
Sun May 17 10:21:35 1998 Andreas Mohr <100.30936@germany.net>
* [controls/menu.c]
Fixed disabled sub menus with MF_BYPOSITION that were not disabled.
* [misc/crtdll.c] [relay32/crtdll.spec] [include/winerror.h]
Implemented fscanf, fsetpos, _access, _fpreset (thanks to Uwe Bonnes),
and _ltoa.
* [loader/task.c]
MakeProcInstance: must use CURRENT_DS if hInst == NULL.
* [misc/shell.c]
SHELL_GetResourceTable, InternalExtractIcon: fixed broken .ICO handling
* [windows/winpos.c]
DeferWindowPos: removed "same parent" requirement.
Which doc states that this is required ?
Sat May 16 20:08:11 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [loader/module.c] [loader/ne/module.c]
More NE module cleanups.
* [loader/task.c]
Fixed SwitchStackBack().
Fri May 15 10:04:27 1998 Marcus Meissner <marcus@jet.franken.de>
* [configure.in][inlcude/acconfig.h]
Fixed broken OSS check, added check for working sigaltstack,
fixed broken statfs checks on some linux systems.
* [files/directory.c][loader/pe_image.c][relay32/builtin.c]
[loader/module.c]
Added handling of win32 module pathnames.
* [relay32/wnaspi32.spec]
New file.
* [misc/lzexpand.c]
LZCopy auto-decompresses LZ compressed files, even if they are not
specially flagged. Fixes some InstallShield problems.
* [misc/registry.c]
Some fixes for RegQueryInfoKey (reference program monkey.exe
from Win32 SDK works now better). Probably still has faults.
Fri May 15 08:58:58 1998 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [graphics/mapping.c] [include/dc.h] [include/gdi.h] [objects/dc.c]
Reworked the way world transformations and mapping modes are handled
so that both of these transformations can be computed in a single
step.
* [graphics/painting.c] [graphics/path.c] [include/path.h]
More GDI path support.
* [graphics/x11drv/graphics.c]
Fixed the return value of GRAPH_DrawArc for the zero height /
zero width case to reflect Windows' behaviour.
* [include/windows.h] [relay32/gdi32.spec] [objects/dc.c]
Implemented ModifyWorldTransform and CombineTransform.
Tue May 14 18:03:46 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de>
* [controls/commctrl.c][relay32/comctl32.spec]
[controls/*.c][include/*.h]
Implemented InitCommonControlsEx (dll version 4.72 compatible).
InitCommonControls calls ImageCommonControlsEx.
Registering code of the common controls had to be changed
(see XXXX_Register functions).
* [controls/status.c][include/commctrl.h][include/status.h]
Implemented most new features and fixed the look and feel.
* [contols/commctrl.c][include/commctrl.h][relay32/comctl32.spec]
Implemented MenuHelp (incomplete).
* [controls/status.c][controls/progress.c]
Changed allocation strategy for control specific memory.
* [controls/header.c][include/header.h][include/commctrl.h]
First implementation of header control.
* [windows/defwnd.c][windows/syscolors.c]
Fixed default control colors for Win95 look.
* [windows/nonclient.c]
Fixed off by one error for Win95 look. Top border of child windows
should be visible.
* [misc/imagelist.h]
Improved documentation and fixed some bugs.
Thu May 14 15:42:21 1998 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [relay32/crtdll.spec]
Added hypot,j0,j1,jn and ceil.
Wed May 13 19:10:10 1998 Pascal Cuoq <pcuoq@ens-lyon.fr>
* [controls/listbox.c]
Item height is now exactly font height.
Wine listboxes now behave like Windows' when they are
created without WS_VSCROLL but the program subsequently
calls ShowScrollBar or SetScrollInfo.
Wed May 13 18:33:01 1998 Ulrich Weigand <weigand@informatik.uni-erlangen.de>
* [relay32/relay386.c]
Restore ES also in the non-debug case.
* [windows/event.c]
Bugfix: Blocking TSXNextEvent could deadlock Wine.
* [win32/process.c] [windows/message.c]
Silly stubs for MsgWaitForMultipleObjects / PostThreadMessage
that make some programs run better.
* [windows/winproc.c]
WINPROC_MapMsg32Ato16/16To32A: added WM_NOTIFY.
* [win32/kernel32.c]
Added 16->32 thunking and improved 32->16 thunking functions.
* [tools/build.c]
Added new variant of CallFrom16 stub for use with Win95 thunks.
* [if1632/kernel.spec] [if1632/builtin.c] [win32/kernel32.c]
Added a few undocumented KERNEL functions.
* [loader/ne/module.c] [loader/ne/segment.c]
Call DllEntryPoint for 16-bit DLLs with subsystem >= 4.0.
* [win32/kernel32.spec] [win32/wow32.spec] [win32/ordinals.c]
Use names from the Oct 94 beta release for undoc. functions.
Wed May 13 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [misc/registry.c]
Code cleanup.
* [misc/cpu.c]
Commented out the registry puts temporarily.
* [programs/regtest/*]
New registry testing program.
Tue May 12 22:54:03 1998 Michael Mess <michael@kawo2.rwth-aachen.de>
* [multimedia/audio.c]
ioctl's do not commute in /dev/dsp initialization.
Tue May 12 20:11:42 1998 Karl Garrison <karlos@eznet.net>
* [win32/console.c]
Implemented SetConsoleTextAttribute, FillConsoleOutputCharacter.
Improved cursor positioning.
This allows for text colors in an xterm, rxvt, or console.
Tue May 12 17:57:52 1998 Petter Reinholdtsen <pere@td.org.uit.no>
* [Makefile.in]
Create prefix/{bin|lib} directories if missing during install.
Sun May 10 19:37:51 1998 Jan Willamowius <jan@janhh.shnet.org>
* [multimedia/mmio.c]
Have mmioSetBuffer return success (0), so Corel Draw 4
keeps working. (IO is still unbuffered)
Wed May 6 16:57:55 1998 James Juran <jrj120@psu.edu>
* [Makefile.in] [Make.rules.in]
Changed "make clean" to remove `textedit` backup files (*%)
* [controls/menu.c][graphics/x11drv/xfont.c][include/libres.h]
[loader/main.c][loader/ne/module.c][scheduler/synchro.c]
[win32/time.c][windows/winpos.c][include/windows.h]
Fixed miscellaneous compilation warnings.
* [misc/main.c][miscemu/main.c][include/main.h]
Moved prototypes to new include file main.h, various cleanups.
Tue May 5 21:05:06 1998 Morten Welinder <terra@diku.dk>
* [misc/winsock.c]
Don't refer to __FreeBSD__ when HAVE_STRERROR is meant.
* [misc/debugstr.c]
For debug_dumpstrSend, send strings to stderr.
Tue May 5 21:47:40 1998 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [objects/region.c]
Fix for REGION_RegionOp() if newReg is one of the source regions.
Tue May 5 18:27:32 1998 Jim Peterson <jspeter@roanoke.infi.net>
* [misc/main.c]
Add '-h/-help' option and print WINE_RELEASE_INFO with usage message.
* [misc/spy.c]
Realign trace messages.
Tue May 5 15:46:47 1998 Donnie V. Savage <dsavage@cisco.com>
* [graphics/ddraw.c]
Fixed compile warnings
* [misc/winsock.c]
Warnings should not be errors.
Tue May 5 13:40:42 1998 Jim Peterson <jspeter@roanoke.infi.net>
* [*/*]
Remove many warnings through explicit casts, added #include's,
and corrected printf formats.
Tue May 5 05:18:12 1998 Insomnia (Stea Greene) <insomnia@core.binghamton.edu>
* [graphics/ddraw.c]
Kept unchanged portion of old palette when changing only a few
palette entries. Really should only deallocate the changed cells.
This make StarCraft work almost perfectly (sound overflows still
cause static).
Mon May 4 15:04:57 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage: terminate string on %0, undo linefeed strip.
1998-05-17 17:13:43 +00:00
|
|
|
char module[10];
|
1996-08-11 15:49:51 +00:00
|
|
|
HQUEUE16 hQueue = hFirstQueue;
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
DPRINTF( "Queue Msgs Thread Task Module\n" );
|
1996-03-14 18:08:34 +00:00
|
|
|
while (hQueue)
|
|
|
|
{
|
1999-01-28 10:54:11 +00:00
|
|
|
MESSAGEQUEUE *queue = (MESSAGEQUEUE *)QUEUE_Lock( hQueue );
|
1996-03-14 18:08:34 +00:00
|
|
|
if (!queue)
|
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
WARN_(msg)("Bad queue handle %04x\n", hQueue );
|
1996-03-14 18:08:34 +00:00
|
|
|
return;
|
|
|
|
}
|
1999-02-26 11:11:13 +00:00
|
|
|
if (!GetModuleName16( queue->thdb->process->task, module, sizeof(module )))
|
Release 980517
Sun May 17 16:23:56 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [file/profile.c]
Fix the return value of PROFILE_GetSection
* [misc/crtdll.c]
Do _getdrive, fix _chdrive.
* [misc/commdlg.c]
First cut at ChooseColor[WA].
* [misc/network.c]
Do something sensible for WNetGetDirectoryType16.
Sun May 17 10:21:35 1998 Andreas Mohr <100.30936@germany.net>
* [controls/menu.c]
Fixed disabled sub menus with MF_BYPOSITION that were not disabled.
* [misc/crtdll.c] [relay32/crtdll.spec] [include/winerror.h]
Implemented fscanf, fsetpos, _access, _fpreset (thanks to Uwe Bonnes),
and _ltoa.
* [loader/task.c]
MakeProcInstance: must use CURRENT_DS if hInst == NULL.
* [misc/shell.c]
SHELL_GetResourceTable, InternalExtractIcon: fixed broken .ICO handling
* [windows/winpos.c]
DeferWindowPos: removed "same parent" requirement.
Which doc states that this is required ?
Sat May 16 20:08:11 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [loader/module.c] [loader/ne/module.c]
More NE module cleanups.
* [loader/task.c]
Fixed SwitchStackBack().
Fri May 15 10:04:27 1998 Marcus Meissner <marcus@jet.franken.de>
* [configure.in][inlcude/acconfig.h]
Fixed broken OSS check, added check for working sigaltstack,
fixed broken statfs checks on some linux systems.
* [files/directory.c][loader/pe_image.c][relay32/builtin.c]
[loader/module.c]
Added handling of win32 module pathnames.
* [relay32/wnaspi32.spec]
New file.
* [misc/lzexpand.c]
LZCopy auto-decompresses LZ compressed files, even if they are not
specially flagged. Fixes some InstallShield problems.
* [misc/registry.c]
Some fixes for RegQueryInfoKey (reference program monkey.exe
from Win32 SDK works now better). Probably still has faults.
Fri May 15 08:58:58 1998 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [graphics/mapping.c] [include/dc.h] [include/gdi.h] [objects/dc.c]
Reworked the way world transformations and mapping modes are handled
so that both of these transformations can be computed in a single
step.
* [graphics/painting.c] [graphics/path.c] [include/path.h]
More GDI path support.
* [graphics/x11drv/graphics.c]
Fixed the return value of GRAPH_DrawArc for the zero height /
zero width case to reflect Windows' behaviour.
* [include/windows.h] [relay32/gdi32.spec] [objects/dc.c]
Implemented ModifyWorldTransform and CombineTransform.
Tue May 14 18:03:46 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de>
* [controls/commctrl.c][relay32/comctl32.spec]
[controls/*.c][include/*.h]
Implemented InitCommonControlsEx (dll version 4.72 compatible).
InitCommonControls calls ImageCommonControlsEx.
Registering code of the common controls had to be changed
(see XXXX_Register functions).
* [controls/status.c][include/commctrl.h][include/status.h]
Implemented most new features and fixed the look and feel.
* [contols/commctrl.c][include/commctrl.h][relay32/comctl32.spec]
Implemented MenuHelp (incomplete).
* [controls/status.c][controls/progress.c]
Changed allocation strategy for control specific memory.
* [controls/header.c][include/header.h][include/commctrl.h]
First implementation of header control.
* [windows/defwnd.c][windows/syscolors.c]
Fixed default control colors for Win95 look.
* [windows/nonclient.c]
Fixed off by one error for Win95 look. Top border of child windows
should be visible.
* [misc/imagelist.h]
Improved documentation and fixed some bugs.
Thu May 14 15:42:21 1998 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [relay32/crtdll.spec]
Added hypot,j0,j1,jn and ceil.
Wed May 13 19:10:10 1998 Pascal Cuoq <pcuoq@ens-lyon.fr>
* [controls/listbox.c]
Item height is now exactly font height.
Wine listboxes now behave like Windows' when they are
created without WS_VSCROLL but the program subsequently
calls ShowScrollBar or SetScrollInfo.
Wed May 13 18:33:01 1998 Ulrich Weigand <weigand@informatik.uni-erlangen.de>
* [relay32/relay386.c]
Restore ES also in the non-debug case.
* [windows/event.c]
Bugfix: Blocking TSXNextEvent could deadlock Wine.
* [win32/process.c] [windows/message.c]
Silly stubs for MsgWaitForMultipleObjects / PostThreadMessage
that make some programs run better.
* [windows/winproc.c]
WINPROC_MapMsg32Ato16/16To32A: added WM_NOTIFY.
* [win32/kernel32.c]
Added 16->32 thunking and improved 32->16 thunking functions.
* [tools/build.c]
Added new variant of CallFrom16 stub for use with Win95 thunks.
* [if1632/kernel.spec] [if1632/builtin.c] [win32/kernel32.c]
Added a few undocumented KERNEL functions.
* [loader/ne/module.c] [loader/ne/segment.c]
Call DllEntryPoint for 16-bit DLLs with subsystem >= 4.0.
* [win32/kernel32.spec] [win32/wow32.spec] [win32/ordinals.c]
Use names from the Oct 94 beta release for undoc. functions.
Wed May 13 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [misc/registry.c]
Code cleanup.
* [misc/cpu.c]
Commented out the registry puts temporarily.
* [programs/regtest/*]
New registry testing program.
Tue May 12 22:54:03 1998 Michael Mess <michael@kawo2.rwth-aachen.de>
* [multimedia/audio.c]
ioctl's do not commute in /dev/dsp initialization.
Tue May 12 20:11:42 1998 Karl Garrison <karlos@eznet.net>
* [win32/console.c]
Implemented SetConsoleTextAttribute, FillConsoleOutputCharacter.
Improved cursor positioning.
This allows for text colors in an xterm, rxvt, or console.
Tue May 12 17:57:52 1998 Petter Reinholdtsen <pere@td.org.uit.no>
* [Makefile.in]
Create prefix/{bin|lib} directories if missing during install.
Sun May 10 19:37:51 1998 Jan Willamowius <jan@janhh.shnet.org>
* [multimedia/mmio.c]
Have mmioSetBuffer return success (0), so Corel Draw 4
keeps working. (IO is still unbuffered)
Wed May 6 16:57:55 1998 James Juran <jrj120@psu.edu>
* [Makefile.in] [Make.rules.in]
Changed "make clean" to remove `textedit` backup files (*%)
* [controls/menu.c][graphics/x11drv/xfont.c][include/libres.h]
[loader/main.c][loader/ne/module.c][scheduler/synchro.c]
[win32/time.c][windows/winpos.c][include/windows.h]
Fixed miscellaneous compilation warnings.
* [misc/main.c][miscemu/main.c][include/main.h]
Moved prototypes to new include file main.h, various cleanups.
Tue May 5 21:05:06 1998 Morten Welinder <terra@diku.dk>
* [misc/winsock.c]
Don't refer to __FreeBSD__ when HAVE_STRERROR is meant.
* [misc/debugstr.c]
For debug_dumpstrSend, send strings to stderr.
Tue May 5 21:47:40 1998 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [objects/region.c]
Fix for REGION_RegionOp() if newReg is one of the source regions.
Tue May 5 18:27:32 1998 Jim Peterson <jspeter@roanoke.infi.net>
* [misc/main.c]
Add '-h/-help' option and print WINE_RELEASE_INFO with usage message.
* [misc/spy.c]
Realign trace messages.
Tue May 5 15:46:47 1998 Donnie V. Savage <dsavage@cisco.com>
* [graphics/ddraw.c]
Fixed compile warnings
* [misc/winsock.c]
Warnings should not be errors.
Tue May 5 13:40:42 1998 Jim Peterson <jspeter@roanoke.infi.net>
* [*/*]
Remove many warnings through explicit casts, added #include's,
and corrected printf formats.
Tue May 5 05:18:12 1998 Insomnia (Stea Greene) <insomnia@core.binghamton.edu>
* [graphics/ddraw.c]
Kept unchanged portion of old palette when changing only a few
palette entries. Really should only deallocate the changed cells.
This make StarCraft work almost perfectly (sound overflows still
cause static).
Mon May 4 15:04:57 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage: terminate string on %0, undo linefeed strip.
1998-05-17 17:13:43 +00:00
|
|
|
strcpy( module, "???" );
|
1999-05-02 14:32:27 +00:00
|
|
|
DPRINTF( "%04x %4d %p %04x %s\n", hQueue,queue->msgCount,
|
|
|
|
queue->thdb, queue->thdb->process->task, module );
|
1996-03-14 18:08:34 +00:00
|
|
|
hQueue = queue->next;
|
1999-01-28 10:54:11 +00:00
|
|
|
QUEUE_Unlock( queue );
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
1999-05-02 14:32:27 +00:00
|
|
|
DPRINTF( "\n" );
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
1996-08-11 15:49:51 +00:00
|
|
|
/***********************************************************************
|
1997-05-25 13:58:18 +00:00
|
|
|
* QUEUE_IsExitingQueue
|
1996-08-11 15:49:51 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL QUEUE_IsExitingQueue( HQUEUE16 hQueue )
|
1996-08-11 15:49:51 +00:00
|
|
|
{
|
1997-05-25 13:58:18 +00:00
|
|
|
return (hExitingQueue && (hQueue == hExitingQueue));
|
1996-08-11 15:49:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
1997-05-25 13:58:18 +00:00
|
|
|
* QUEUE_SetExitingQueue
|
1996-08-11 15:49:51 +00:00
|
|
|
*/
|
1997-05-25 13:58:18 +00:00
|
|
|
void QUEUE_SetExitingQueue( HQUEUE16 hQueue )
|
1996-08-11 15:49:51 +00:00
|
|
|
{
|
1997-05-25 13:58:18 +00:00
|
|
|
hExitingQueue = hQueue;
|
1996-08-11 15:49:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_CreateMsgQueue
|
|
|
|
*
|
|
|
|
* Creates a message queue. Doesn't link it into queue list!
|
|
|
|
*/
|
1999-02-05 10:37:53 +00:00
|
|
|
static HQUEUE16 QUEUE_CreateMsgQueue( BOOL16 bCreatePerQData )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1996-08-11 15:49:51 +00:00
|
|
|
HQUEUE16 hQueue;
|
1996-03-14 18:08:34 +00:00
|
|
|
MESSAGEQUEUE * msgQueue;
|
1996-05-28 18:54:58 +00:00
|
|
|
TDB *pTask = (TDB *)GlobalLock16( GetCurrentTask() );
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(msg)("(): Creating message queue...\n");
|
Release 960428
Sun Apr 28 14:32:43 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [Makefile.in]
Subdir memory is now also compiled for Winelib, in order to get
the Win32 heap functions.
* [if1632/Makefile.in]
Renamed winprocs and winprocs32 to wprocs and wprocs32 to avoid
DLL names > 8 characters.
* [loader/builtin.c] (New file)
Grouped all built-in DLLs code in a single file.
* [memory/global.c]
Use the Win32 heap code instead of malloc() to allocate linear
memory. This will help test the heap code.
* [memory/local.c]
Fixed FreeSelector() to clear DS and ES correctly for huge blocks.
* [tools/build.c] [if1632/relay.c]
Removed 'id' directive in spec files. For relay debugging, the DLL
entry point is now computed from the CS:IP entry point address.
Added 'heap' directive to specifiy a local heap for the DLL. USER
and GDI heap are now created this way.
* [windows/class.c] [include/class.h]
Changed the class structure to use pointers instead of handles.
Changed Get/SetClassWord/Long to use a switch statement; this
allows changing the layout of the CLASS structure.
* [windows/win.c] [include/win.h]
Use a CLASS * instead of a handle for the window class.
Sat Apr 27 18:10:11 Martin von Loewis <loewis@informatik.hu-berlin.de>
* [if1632/kernel32.spec] [memory/global.c]
[win32/memory.c] [win32/process.c]
GetProcessAffinityMask,GlobalLock,IsBadReadPtr,IsBadWritePtr,
LocalLock,SetThreadAffinityMask: new relays.
* [win32/cursoricon32.c]
Return same handle if a cursor is loaded multiple times.
Sat Apr 27 15:13:37 1996 Bang Jun Young <bangjy@nownuri.nowcom.co.kr>
* [resources/sysres_Ko.rc]
Added support for Korean [Ko] language.
Fri Apr 26 00:49:05 1996 Huw D. M. Davies <h.davies1@physics.oxford.ac.uk>
* [objects/dc.c] [objects/font.c]
Fixed problem with SaveDC()/RestoreDC() and font cache 'used' count.
* [objects/metafile.c] [objects/dcvalues.c]
Fixed broken SetTextAlign() on metafiles.
* [objects/metafile.c]
Delete objects in handle table at end of PlayMetaFile().
Wed Apr 24 19:21:01 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [if1632/ver.spec] [misc/ver.c] [include/ver.h] (New files)
VER.DLL (partially) implemented (VerFindFile,VerInstallFile)
[If it doesn't work for you, use -dll -ver and report it to me]
* [if1632/user32.spec] [if1632/kernel32.spec] [if1632/shell.spec]
[if1632/shell32.spec] [misc/ole2nls.c] [windows/message.c]
[windows/graphics.c]
Simple win32 functions, where we can just use the win16 counterpart.
Misc. stubs.
* [misc/lstr.c]
Someone reported a _lstrlen(NULL). NULL is a valid argument. Fixed.
* [misc/registry.c]
Some alloclens were off by 1, one double fclose() fixed.
Requesting value 0 of a key with no values returns an error
(should we always return a made up value NULL? what does win3.1?)
Tue Apr 23 17:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu>
* [misc/shell.c]
Implemented FindEnvironmentString(), DoEnvironmentSubst(),
ExtractIcon(), InternalExtractIcon() and ExtractAssociatedIcon().
* [misc/user.c]
Do extensive cleanup on application exit.
* [windows/hook.c] [windows/win.c] [windows/class.c]
Added miscellaneous cleanup routines.
* [controls/menu.c]
More efficient popup menu window handling.
Mon Apr 22 21:35:22 1996 Albrecht Kleine <kleine@ak.sax.de>
* [include/windows.h][objects/oembitmap.c][include/bitmaps/obm_trtype]
Added "TT-bitmap" for later usage in a ChooseFont() ownerdraw combobox.
1996-04-28 15:09:19 +00:00
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
if (!(hQueue = GlobalAlloc16( GMEM_FIXED | GMEM_ZEROINIT,
|
|
|
|
sizeof(MESSAGEQUEUE) )))
|
1996-03-14 18:08:34 +00:00
|
|
|
return 0;
|
1999-01-26 09:30:05 +00:00
|
|
|
|
1996-05-06 16:06:24 +00:00
|
|
|
msgQueue = (MESSAGEQUEUE *) GlobalLock16( hQueue );
|
1999-01-28 10:54:11 +00:00
|
|
|
if ( !msgQueue )
|
|
|
|
return 0;
|
|
|
|
|
1996-09-28 18:11:01 +00:00
|
|
|
msgQueue->self = hQueue;
|
1999-02-18 17:34:09 +00:00
|
|
|
msgQueue->wakeBits = msgQueue->changeBits = 0;
|
1996-05-28 18:54:58 +00:00
|
|
|
msgQueue->wWinVersion = pTask ? pTask->version : 0;
|
1999-01-28 10:54:11 +00:00
|
|
|
|
|
|
|
InitializeCriticalSection( &msgQueue->cSection );
|
1999-02-13 12:24:04 +00:00
|
|
|
MakeCriticalSectionGlobal( &msgQueue->cSection );
|
1999-02-09 15:35:12 +00:00
|
|
|
|
|
|
|
/* Create an Event object for waiting on message, used by win32 thread
|
|
|
|
only */
|
|
|
|
if ( !THREAD_IsWin16( THREAD_Current() ) )
|
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
msgQueue->hEvent = CreateEventA( NULL, FALSE, FALSE, NULL);
|
1999-02-09 15:35:12 +00:00
|
|
|
|
|
|
|
if (msgQueue->hEvent == 0)
|
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
WARN_(msg)("CreateEvent32A is not able to create an event object");
|
1999-02-09 15:35:12 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
msgQueue->hEvent = ConvertToGlobalHandle( msgQueue->hEvent );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
msgQueue->hEvent = 0;
|
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
msgQueue->lockCount = 1;
|
|
|
|
msgQueue->magic = QUEUE_MAGIC;
|
|
|
|
|
1999-02-05 10:37:53 +00:00
|
|
|
/* Create and initialize our per queue data */
|
|
|
|
msgQueue->pQData = bCreatePerQData ? PERQDATA_CreateInstance() : NULL;
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
return hQueue;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_FlushMessage
|
|
|
|
*
|
|
|
|
* Try to reply to all pending sent messages on exit.
|
|
|
|
*/
|
|
|
|
void QUEUE_FlushMessages( MESSAGEQUEUE *queue )
|
|
|
|
{
|
|
|
|
SMSG *smsg;
|
|
|
|
MESSAGEQUEUE *senderQ = 0;
|
|
|
|
|
|
|
|
if( queue )
|
|
|
|
{
|
|
|
|
EnterCriticalSection( &queue->cSection );
|
|
|
|
|
|
|
|
/* empty the list of pending SendMessage waiting to be received */
|
|
|
|
while (queue->smPending)
|
|
|
|
{
|
|
|
|
smsg = QUEUE_RemoveSMSG( queue, SM_PENDING_LIST, 0);
|
|
|
|
|
|
|
|
senderQ = (MESSAGEQUEUE*)QUEUE_Lock( smsg->hSrcQueue );
|
|
|
|
if ( !senderQ )
|
|
|
|
continue;
|
|
|
|
|
|
|
|
/* return 0, to unblock other thread */
|
|
|
|
smsg->lResult = 0;
|
|
|
|
smsg->flags |= SMSG_HAVE_RESULT;
|
|
|
|
QUEUE_SetWakeBit( senderQ, QS_SMRESULT);
|
|
|
|
|
|
|
|
QUEUE_Unlock( senderQ );
|
|
|
|
}
|
|
|
|
|
|
|
|
QUEUE_ClearWakeBit( queue, QS_SENDMESSAGE );
|
|
|
|
|
|
|
|
LeaveCriticalSection( &queue->cSection );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_DeleteMsgQueue
|
|
|
|
*
|
|
|
|
* Unlinks and deletes a message queue.
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
*
|
|
|
|
* Note: We need to mask asynchronous events to make sure PostMessage works
|
|
|
|
* even in the signal handler.
|
1996-03-14 18:08:34 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL QUEUE_DeleteMsgQueue( HQUEUE16 hQueue )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1999-01-28 10:54:11 +00:00
|
|
|
MESSAGEQUEUE * msgQueue = (MESSAGEQUEUE*)QUEUE_Lock(hQueue);
|
1996-07-17 20:02:21 +00:00
|
|
|
HQUEUE16 *pPrev;
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(msg)("(): Deleting message queue %04x\n", hQueue);
|
Release 960428
Sun Apr 28 14:32:43 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [Makefile.in]
Subdir memory is now also compiled for Winelib, in order to get
the Win32 heap functions.
* [if1632/Makefile.in]
Renamed winprocs and winprocs32 to wprocs and wprocs32 to avoid
DLL names > 8 characters.
* [loader/builtin.c] (New file)
Grouped all built-in DLLs code in a single file.
* [memory/global.c]
Use the Win32 heap code instead of malloc() to allocate linear
memory. This will help test the heap code.
* [memory/local.c]
Fixed FreeSelector() to clear DS and ES correctly for huge blocks.
* [tools/build.c] [if1632/relay.c]
Removed 'id' directive in spec files. For relay debugging, the DLL
entry point is now computed from the CS:IP entry point address.
Added 'heap' directive to specifiy a local heap for the DLL. USER
and GDI heap are now created this way.
* [windows/class.c] [include/class.h]
Changed the class structure to use pointers instead of handles.
Changed Get/SetClassWord/Long to use a switch statement; this
allows changing the layout of the CLASS structure.
* [windows/win.c] [include/win.h]
Use a CLASS * instead of a handle for the window class.
Sat Apr 27 18:10:11 Martin von Loewis <loewis@informatik.hu-berlin.de>
* [if1632/kernel32.spec] [memory/global.c]
[win32/memory.c] [win32/process.c]
GetProcessAffinityMask,GlobalLock,IsBadReadPtr,IsBadWritePtr,
LocalLock,SetThreadAffinityMask: new relays.
* [win32/cursoricon32.c]
Return same handle if a cursor is loaded multiple times.
Sat Apr 27 15:13:37 1996 Bang Jun Young <bangjy@nownuri.nowcom.co.kr>
* [resources/sysres_Ko.rc]
Added support for Korean [Ko] language.
Fri Apr 26 00:49:05 1996 Huw D. M. Davies <h.davies1@physics.oxford.ac.uk>
* [objects/dc.c] [objects/font.c]
Fixed problem with SaveDC()/RestoreDC() and font cache 'used' count.
* [objects/metafile.c] [objects/dcvalues.c]
Fixed broken SetTextAlign() on metafiles.
* [objects/metafile.c]
Delete objects in handle table at end of PlayMetaFile().
Wed Apr 24 19:21:01 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [if1632/ver.spec] [misc/ver.c] [include/ver.h] (New files)
VER.DLL (partially) implemented (VerFindFile,VerInstallFile)
[If it doesn't work for you, use -dll -ver and report it to me]
* [if1632/user32.spec] [if1632/kernel32.spec] [if1632/shell.spec]
[if1632/shell32.spec] [misc/ole2nls.c] [windows/message.c]
[windows/graphics.c]
Simple win32 functions, where we can just use the win16 counterpart.
Misc. stubs.
* [misc/lstr.c]
Someone reported a _lstrlen(NULL). NULL is a valid argument. Fixed.
* [misc/registry.c]
Some alloclens were off by 1, one double fclose() fixed.
Requesting value 0 of a key with no values returns an error
(should we always return a made up value NULL? what does win3.1?)
Tue Apr 23 17:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu>
* [misc/shell.c]
Implemented FindEnvironmentString(), DoEnvironmentSubst(),
ExtractIcon(), InternalExtractIcon() and ExtractAssociatedIcon().
* [misc/user.c]
Do extensive cleanup on application exit.
* [windows/hook.c] [windows/win.c] [windows/class.c]
Added miscellaneous cleanup routines.
* [controls/menu.c]
More efficient popup menu window handling.
Mon Apr 22 21:35:22 1996 Albrecht Kleine <kleine@ak.sax.de>
* [include/windows.h][objects/oembitmap.c][include/bitmaps/obm_trtype]
Added "TT-bitmap" for later usage in a ChooseFont() ownerdraw combobox.
1996-04-28 15:09:19 +00:00
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
if (!hQueue || !msgQueue)
|
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
WARN_(msg)("invalid argument.\n");
|
1996-03-14 18:08:34 +00:00
|
|
|
return 0;
|
|
|
|
}
|
1999-01-28 10:54:11 +00:00
|
|
|
|
|
|
|
msgQueue->magic = 0;
|
|
|
|
|
|
|
|
if( hCursorQueue == hQueue ) hCursorQueue = 0;
|
|
|
|
if( hActiveQueue == hQueue ) hActiveQueue = 0;
|
1996-09-28 18:11:01 +00:00
|
|
|
|
|
|
|
/* flush sent messages */
|
1999-02-18 17:34:09 +00:00
|
|
|
QUEUE_FlushMessages( msgQueue );
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-03-21 08:36:55 +00:00
|
|
|
HeapLock( SystemHeap ); /* FIXME: a bit overkill */
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
|
1999-02-05 10:37:53 +00:00
|
|
|
/* Release per queue data if present */
|
|
|
|
if ( msgQueue->pQData )
|
|
|
|
{
|
|
|
|
PERQDATA_Release( msgQueue->pQData );
|
|
|
|
msgQueue->pQData = 0;
|
|
|
|
}
|
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
/* remove the message queue from the global link list */
|
1996-03-14 18:08:34 +00:00
|
|
|
pPrev = &hFirstQueue;
|
|
|
|
while (*pPrev && (*pPrev != hQueue))
|
|
|
|
{
|
1996-05-06 16:06:24 +00:00
|
|
|
MESSAGEQUEUE *msgQ = (MESSAGEQUEUE*)GlobalLock16(*pPrev);
|
1999-02-09 14:07:07 +00:00
|
|
|
|
|
|
|
/* sanity check */
|
|
|
|
if ( !msgQ || (msgQ->magic != QUEUE_MAGIC) )
|
|
|
|
{
|
|
|
|
/* HQUEUE link list is corrupted, try to exit gracefully */
|
1999-05-02 14:32:27 +00:00
|
|
|
WARN_(msg)("HQUEUE link list corrupted!\n");
|
1999-02-09 14:07:07 +00:00
|
|
|
pPrev = 0;
|
|
|
|
break;
|
|
|
|
}
|
1996-03-14 18:08:34 +00:00
|
|
|
pPrev = &msgQ->next;
|
|
|
|
}
|
1999-02-09 14:07:07 +00:00
|
|
|
if (pPrev && *pPrev) *pPrev = msgQueue->next;
|
1996-06-16 16:16:05 +00:00
|
|
|
msgQueue->self = 0;
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
|
1999-03-21 08:36:55 +00:00
|
|
|
HeapUnlock( SystemHeap );
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
/* free up resource used by MESSAGEQUEUE strcture */
|
|
|
|
msgQueue->lockCount--;
|
|
|
|
QUEUE_Unlock( msgQueue );
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_CreateSysMsgQueue
|
|
|
|
*
|
|
|
|
* Create the system message queue, and set the double-click speed.
|
|
|
|
* Must be called only once.
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL QUEUE_CreateSysMsgQueue( int size )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1999-02-05 10:37:53 +00:00
|
|
|
/* Note: We dont need perQ data for the system message queue */
|
|
|
|
if (!(hmemSysMsgQueue = QUEUE_CreateMsgQueue( FALSE )))
|
|
|
|
return FALSE;
|
|
|
|
|
1996-05-06 16:06:24 +00:00
|
|
|
sysMsgQueue = (MESSAGEQUEUE *) GlobalLock16( hmemSysMsgQueue );
|
1996-03-14 18:08:34 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_GetSysQueue
|
|
|
|
*/
|
|
|
|
MESSAGEQUEUE *QUEUE_GetSysQueue(void)
|
|
|
|
{
|
|
|
|
return sysMsgQueue;
|
|
|
|
}
|
|
|
|
|
Release 980822
Sat Aug 22 17:46:19 1998 Ulrich Weigand <weigand@informatik.uni-erlangen.de>
* [include/dosexe.h] [include/module.h] [include/pe_image.h]
[include/process.h] [include/windows.h] [loader/dos/module.c]
[loader/module.c] [loader/ne/module.c] [loader/pe_image.c]
[scheduler/process.c] [win32/process.c]
Partially implemented CreateProcess32.
* [win32/device.c] [relay32/kernel32.spec] [scheduler/k32obj.c]
[misc/registry.c] [win32/file.c]
Partially implemented VxDCall (VMM registry services).
* [files/dos_fs.c]
DOSFS_FindNext made thread-safe.
* [include/sig_context.h] [include/syslevel.h] [loader/signal.c]
[scheduler/syslevel.c] [tools/build.c]
Replaced CALLTO16_Current_fs by SYSLEVEL_Win16CurrentTeb.
* [win32/kernel32.c]
Bugfix: QT_Thunk/FT_Thunk should return 'long' in DX:AX, not EAX.
* [if1632/relay.c] [relay32/builtin32.c] [windows/msgbox.c]
[msdos/int20.c] [msdos/int21.c]
Use ExitProcess instead of TASK_KillCurrentTask.
* [include/task.h] [include/thread.h] [loader/task.c]
[scheduler/thread.c] [include/queue.h] [windows/message.c]
[windows/queue.c] [windows/win.c]
Prevent Win32 threads from entering the TASK_Reschedule loop.
(Note: Win32 messaging still doesn't work correctly; this patch
is just preventing the system from crashing when Win32 threads
call messaging functions. Messages will probably still get lost.)
* [scheduler/critsection.c]
Deactivated the use of SEM_UNDO for the SYSTEM_LOCK semaphore;
for some reason, this leads to problems after threads terminate...
Sat Aug 22 15:00:00 1998 Jrgen Schmied <juergen.schmied@metronet.de>
* [include/authors.h]
New file, includes all names of the developer (former shell.c)
* [Makefile.in][configure][configure.in][dlls/Makefile.in]
[dlls/shell32/Makefile.in][shres.rc]
Created dlls/shell32 and moved the shell32 stuff in it.
Started to create internal resources.
* [dlls/shell32/*]
Split the shell32 implementation into smaller files.
New classes: IContextMenu, IExtractIcon, IShellView.
Implemented Shell_GetImageList().
shell32 links to comctl32 now dynamically so it can use
internal/external implementations.
* [documentation/internal-dll] [documentation/shell32]
New, could anybody do a spellcheck?
* [include/commctrl.h]
Many new LV constants, structures, functions.
* [controls/comctl32undoc.c]
Rewrote the DSA* functions.
* [windows/winpos.c]
SetShellWindow32, GetShellWindow32.
Sat Aug 22 14:02:15 1998 Alexander Lukyanov <lav@long.yar.ru>
* [loader/resource.c]
Mark last accelerator as such in LoadAccelerators32W.
* [relay32/shell32.spec] [misc/shell.c]
Add stubs for SHGetSpecialFolderPath[AW].
Sat Aug 22 02:07:42 1998 Adrian Harvey <adrian@select.com.au>
* [include/file.h] [file/file.c] [msdos/int21.c] [msdos/vxd.c]
[misc/lzexpand.c] [win32/kernel32.c] [documentation/filehandles]
Fixed file handle handling. Created universal HFILE16 to HFILE32
translation macro from msdos/int21 code by Ove Kaaven.
Used macro in all Win16 functions so that win32 handles are translated
to avoid DOS/Win16 stdxx handles.
Removed handle translation from int21.c where Win16 functions are
called. Changed remaining calls to use new macro names.
Documented filehandle handling and differences between win 16 & 32.
Fri Aug 21 20:32:49 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [server/process.c] [server/thread.c]
Implemented object wait queues and synchronization.
Fri Aug 21 18:40:02 1998 Huw D M Davies <daviesh@abacus.physics.ox.ac.uk>
* [graphics/psdrv/*]
DEVMODE dmPaper{Width|Length} fields are in 0.1mm.
Select a 100 pixel default font in CreateDC.
Thu Aug 20 22:47:39 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [objects/bitmap.c]
Handle bits=32 in SetBitmapBits32 and GetBitmapBits32.
* [msdos/int21.c]
Add handling of Int21 0A and 37.
* [misc/commdlg.c]
Use MapHModuleLS and MapHModuleSL when translating HINSTANCE16 to
HINSTANCE32 and vice versa.
* [win32/file.c]
CreateFile32A: Abort if filename == NULL.
Thu Aug 20 12:28:31 1998 Marcus Meissner <marcus@jet.franken.de>
* [*/*]
Lots of missing prototypes added, some parameter types adapted to match
SDK.
* [debugger/stabs.c]
Don't loop forever if we don't find wine or one of the libxxx.so.
* [loader/ne/module.c]
Implemented MapHModuleLS,MapHModuleSL,MapHinstLS,MapHinstSL.
* [misc/network.c]
Implemented WNetGetUser32A.
* [misc/shellord.c]
Implemented ILRemoveLastID.
* [multimedia/dsound.c]
Fixed StarCraft memory leak.
* [graphics/ddraw.c]
Removed some unnecessary simple relaying functions, tried polishing
up the Xlib implementation (still doesn't work), temp. removed Xshm
code (to be remerged with working Xlib code).
Tue Aug 18 22:29:17 1998 Ove Kaaven <ovek@arcticnet.no>
* [multimedia/mmio.c] [multimedia/mmsystem.c]
Fixed most mmio bugs, fully implementing mmioSetBuffer
buffering, ability to read memory files, and the
sndPlaySound() SND_MEMORY flag. Most mmio-using programs
now work fine.
* [include/dosexe.h] [include/miscemu.h] [include/module.h]
[loader/module.c] [loader/task.c] [msdos/dosmem.c]
Improved DOS VM flexibility and portability somewhat. (Did
I get the #ifdefs right this time, BSD-ers?)
* [msdos/int21.c]
Made "Get Current PSP address" work as expected in a DOS VM.
* [loader/dos/*]
Began improving flexibility and portability somewhat. It
should be easier to add DPMI RMCB callbacks now. The
DOS VM no longer leaves big files lying around in /tmp
after a crash.
Tue Aug 18 12:38:31 1998 Turchanov Sergey <turchanov@usa.net>
* [relay32/winmm.spec]
This patch allows WinAmp to play WAV files (at least in PCM
format).
Sun Aug 16 05:34:13 1998 Pablo Saratxaga <srtxg@chanae.alphanet.ch>
* [windows/keyboard.c]
Corrected keyboard code to properly handle keys : ? ~ and "
on non US keyboards.
Sat Aug 15 18:47:14 1998 Brian Craft <bcboy@dorothy.wanglab.brandeis.edu>
* [windows/win.c]
Fixed severe bug in EnumChildWindwos().
Thu Aug 13 21:05:35 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de>
* [controls/tooltips.c]
Fixed some bugs. Added subclassing support.
* [controls/toolbar.c]
Improved tooltip integration. Fixed some bugs.
* [controls/commctrl.c]
Changed control registration and added some documentation.
Fixed ShowHideMenuCtl.
* [controls/rebar.c][include/rebar.h][include/commctrl.h]
Improved rebar implementation (still no display).
* [controls/pager.c][include/pager.h][include/commctrl.h]
Improved pager implementation (still no display).
* [misc/imagelist.c]
Fixed a bug.
* [documentation/common_controls]
Updated.
Sun Aug 9 19:50:20 1998 James Juran <jrj120@psu.edu>
* [Makefile.in] [documentation/Makefile.in]
[programs/Makefile.in] [programs/*/Makefile.in]
Added uninstall rules, cleaned up install rules a little bit.
Sun Aug 9 13:21:35 1998 Andreas Mohr <100.30936@germany.net>
* [loader/ne/module.c] [if1632/kernel.spec]
Added the undocumented HIWORD of GetModuleHandle (hFirstModule).
* [loader/ne/segment.c]
Wine forgot to set some NE_SEGFLAGS_*.
Combined with another loader change, this fixed the
"BLINKER -- error in loading module" or ghost MessageBox problem
that about 1% of all Windows programs have.
Some BLINKER programs still don't work, though.
But I'm working on it, with great help from Blinkinc.
* [loader/task.c]
InitTask needs to decrement the SP register by two as Win95 does.
Sun Aug 9 02:41:28 1998 Ulrich Weigand <weigand@informatik.uni-erlangen.de>
* [if1632/kernel.spec] [relay32/kernel32.spec] [scheduler/syslevel.c]
[loader/main.c] [win32/ordinals.c] [include/syslevel.h]
[scheduler/Makefile.in]
Implemented Win95 'syslevel' routines (including Win16Lock).
* [if1632/relay.c] [if1632/thunk.c] [tools/build.c] [loader/task.c]
[loader/ne/segment.c] [win32/kernel32.c] [memory/selector.c]
[include/stackframe.h] [include/thread.h]
16-bit %fs handling revised. Use Win16Lock where appropriate.
* [include/thread.h] [scheduler/synchro.c] [windows/message.c]
[windows/queue.c] [win32/process.c]
Implemented MsgWaitForMultipleObjects.
* [files/change.c] [files/Makefile.in] [scheduler/k32obj.c]
[win32/newfns.c]
Implemented (dummy) file change notification objects.
* [debugger/dbg.y] [scheduler/process.c] [scheduler/thread.c]
[include/process.h] [include/thread.h]
Suspend all threads except current when hitting debugger break point.
* [objects/dib.c]
Bugfix for CreateDIBSection.
1998-08-22 19:03:56 +00:00
|
|
|
|
1996-05-28 18:54:58 +00:00
|
|
|
/***********************************************************************
|
1999-02-09 14:07:07 +00:00
|
|
|
* QUEUE_SetWakeBit
|
1996-05-28 18:54:58 +00:00
|
|
|
*
|
|
|
|
* See "Windows Internals", p.449
|
|
|
|
*/
|
|
|
|
void QUEUE_SetWakeBit( MESSAGEQUEUE *queue, WORD bit )
|
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(msg)("queue = %04x (wm=%04x), bit = %04x\n",
|
1996-09-28 18:11:01 +00:00
|
|
|
queue->self, queue->wakeMask, bit );
|
|
|
|
|
1996-06-16 16:16:05 +00:00
|
|
|
if (bit & QS_MOUSE) pMouseQueue = queue;
|
|
|
|
if (bit & QS_KEY) pKbdQueue = queue;
|
1996-05-28 18:54:58 +00:00
|
|
|
queue->changeBits |= bit;
|
|
|
|
queue->wakeBits |= bit;
|
|
|
|
if (queue->wakeMask & bit)
|
|
|
|
{
|
|
|
|
queue->wakeMask = 0;
|
1999-02-09 15:35:12 +00:00
|
|
|
|
|
|
|
/* Wake up thread waiting for message */
|
|
|
|
if ( THREAD_IsWin16( queue->thdb ) )
|
1999-02-26 11:11:13 +00:00
|
|
|
PostEvent16( queue->thdb->process->task );
|
1999-02-09 15:35:12 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
SetEvent( queue->hEvent );
|
|
|
|
}
|
1996-05-28 18:54:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1996-06-16 16:16:05 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_ClearWakeBit
|
|
|
|
*/
|
|
|
|
void QUEUE_ClearWakeBit( MESSAGEQUEUE *queue, WORD bit )
|
|
|
|
{
|
|
|
|
queue->changeBits &= ~bit;
|
|
|
|
queue->wakeBits &= ~bit;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1996-05-28 18:54:58 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_WaitBits
|
|
|
|
*
|
|
|
|
* See "Windows Internals", p.447
|
1999-03-10 16:21:12 +00:00
|
|
|
*
|
|
|
|
* return values:
|
|
|
|
* 0 if exit with timeout
|
|
|
|
* 1 otherwise
|
1996-05-28 18:54:58 +00:00
|
|
|
*/
|
1999-03-10 16:21:12 +00:00
|
|
|
int QUEUE_WaitBits( WORD bits, DWORD timeout )
|
1996-05-28 18:54:58 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
1999-03-10 16:21:12 +00:00
|
|
|
DWORD curTime = 0;
|
1996-05-28 18:54:58 +00:00
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(msg)("q %04x waiting for %04x\n", GetFastQueue16(), bits);
|
1996-09-28 18:11:01 +00:00
|
|
|
|
1999-03-10 16:21:12 +00:00
|
|
|
if ( THREAD_IsWin16( THREAD_Current() ) && (timeout != INFINITE) )
|
|
|
|
curTime = GetTickCount();
|
|
|
|
|
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() ))) return 0;
|
|
|
|
|
1996-05-28 18:54:58 +00:00
|
|
|
for (;;)
|
|
|
|
{
|
|
|
|
if (queue->changeBits & bits)
|
|
|
|
{
|
|
|
|
/* One of the bits is set; we can return */
|
|
|
|
queue->wakeMask = 0;
|
1999-01-28 10:54:11 +00:00
|
|
|
QUEUE_Unlock( queue );
|
1999-03-10 16:21:12 +00:00
|
|
|
return 1;
|
1996-05-28 18:54:58 +00:00
|
|
|
}
|
|
|
|
if (queue->wakeBits & QS_SENDMESSAGE)
|
|
|
|
{
|
|
|
|
/* Process the sent message immediately */
|
1996-09-28 18:11:01 +00:00
|
|
|
|
|
|
|
queue->wakeMask = 0;
|
1996-05-28 18:54:58 +00:00
|
|
|
QUEUE_ReceiveMessage( queue );
|
1996-09-28 18:11:01 +00:00
|
|
|
continue; /* nested sm crux */
|
1996-05-28 18:54:58 +00:00
|
|
|
}
|
1996-09-28 18:11:01 +00:00
|
|
|
|
1996-05-28 18:54:58 +00:00
|
|
|
queue->wakeMask = bits | QS_SENDMESSAGE;
|
1999-01-28 10:54:11 +00:00
|
|
|
if(queue->changeBits & bits)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
1996-09-28 18:11:01 +00:00
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(msg)("%04x) wakeMask is %04x, waiting\n", queue->self, queue->wakeMask);
|
1996-09-28 18:11:01 +00:00
|
|
|
|
1999-03-10 16:21:12 +00:00
|
|
|
if ( !THREAD_IsWin16( THREAD_Current() ) )
|
|
|
|
{
|
|
|
|
/* win32 thread, use WaitForMultipleObjects */
|
|
|
|
MsgWaitForMultipleObjects( 0, NULL, FALSE, timeout, queue->wakeMask );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if ( timeout == INFINITE )
|
|
|
|
WaitEvent16( 0 ); /* win 16 thread, use WaitEvent */
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/* check for timeout, then give control to other tasks */
|
|
|
|
if (GetTickCount() - curTime > timeout)
|
|
|
|
{
|
1999-01-28 10:54:11 +00:00
|
|
|
|
|
|
|
QUEUE_Unlock( queue );
|
1999-03-10 16:21:12 +00:00
|
|
|
return 0; /* exit with timeout */
|
|
|
|
}
|
|
|
|
Yield16();
|
|
|
|
}
|
1996-05-28 18:54:58 +00:00
|
|
|
}
|
|
|
|
}
|
1999-03-10 16:21:12 +00:00
|
|
|
}
|
1996-05-28 18:54:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
1999-02-18 17:34:09 +00:00
|
|
|
* QUEUE_AddSMSG
|
1996-05-28 18:54:58 +00:00
|
|
|
*
|
1999-02-18 17:34:09 +00:00
|
|
|
* This routine is called when a SMSG need to be added to one of the three
|
|
|
|
* SM list. (SM_PROCESSING_LIST, SM_PENDING_LIST, SM_WAITING_LIST)
|
1996-05-28 18:54:58 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL QUEUE_AddSMSG( MESSAGEQUEUE *queue, int list, SMSG *smsg )
|
1996-05-28 18:54:58 +00:00
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(sendmsg)("queue=%x, list=%d, smsg=%p msg=%s\n", queue->self, list,
|
1999-02-18 17:34:09 +00:00
|
|
|
smsg, SPY_GetMsgName(smsg->msg));
|
|
|
|
|
|
|
|
switch (list)
|
|
|
|
{
|
|
|
|
case SM_PROCESSING_LIST:
|
|
|
|
/* don't need to be thread safe, only accessed by the
|
|
|
|
thread associated with the sender queue */
|
|
|
|
smsg->nextProcessing = queue->smProcessing;
|
|
|
|
queue->smProcessing = smsg;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SM_WAITING_LIST:
|
|
|
|
/* don't need to be thread safe, only accessed by the
|
|
|
|
thread associated with the receiver queue */
|
|
|
|
smsg->nextWaiting = queue->smWaiting;
|
|
|
|
queue->smWaiting = smsg;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SM_PENDING_LIST:
|
1999-03-17 15:14:31 +00:00
|
|
|
{
|
1999-02-18 17:34:09 +00:00
|
|
|
/* make it thread safe, could be accessed by the sender and
|
|
|
|
receiver thread */
|
1999-03-17 15:14:31 +00:00
|
|
|
SMSG **prev;
|
1999-02-18 17:34:09 +00:00
|
|
|
|
|
|
|
EnterCriticalSection( &queue->cSection );
|
1999-03-17 15:14:31 +00:00
|
|
|
smsg->nextPending = NULL;
|
|
|
|
prev = &queue->smPending;
|
|
|
|
while ( *prev )
|
|
|
|
prev = &(*prev)->nextPending;
|
|
|
|
*prev = smsg;
|
1999-02-18 17:34:09 +00:00
|
|
|
LeaveCriticalSection( &queue->cSection );
|
1999-03-17 15:14:31 +00:00
|
|
|
|
|
|
|
QUEUE_SetWakeBit( queue, QS_SENDMESSAGE );
|
1999-02-18 17:34:09 +00:00
|
|
|
break;
|
1999-03-17 15:14:31 +00:00
|
|
|
}
|
1996-05-28 18:54:58 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
default:
|
1999-05-02 14:32:27 +00:00
|
|
|
WARN_(sendmsg)("Invalid list: %d", list);
|
1999-02-18 17:34:09 +00:00
|
|
|
break;
|
|
|
|
}
|
1997-02-15 14:29:56 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
1996-09-28 18:11:01 +00:00
|
|
|
|
1996-05-28 18:54:58 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_RemoveSMSG
|
|
|
|
*
|
|
|
|
* This routine is called when a SMSG need to be remove from one of the three
|
|
|
|
* SM list. (SM_PROCESSING_LIST, SM_PENDING_LIST, SM_WAITING_LIST)
|
|
|
|
* If smsg == 0, remove the first smsg from the specified list
|
|
|
|
*/
|
|
|
|
SMSG *QUEUE_RemoveSMSG( MESSAGEQUEUE *queue, int list, SMSG *smsg )
|
|
|
|
{
|
1996-05-28 18:54:58 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
switch (list)
|
1996-06-16 16:16:05 +00:00
|
|
|
{
|
1999-02-18 17:34:09 +00:00
|
|
|
case SM_PROCESSING_LIST:
|
|
|
|
/* don't need to be thread safe, only accessed by the
|
|
|
|
thread associated with the sender queue */
|
|
|
|
|
|
|
|
/* if smsg is equal to null, it means the first in the list */
|
|
|
|
if (!smsg)
|
|
|
|
smsg = queue->smProcessing;
|
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(sendmsg)("queue=%x, list=%d, smsg=%p msg=%s\n", queue->self, list,
|
1999-02-18 17:34:09 +00:00
|
|
|
smsg, SPY_GetMsgName(smsg->msg));
|
|
|
|
/* In fact SM_PROCESSING_LIST is a stack, and smsg
|
|
|
|
should be always at the top of the list */
|
|
|
|
if ( (smsg != queue->smProcessing) || !queue->smProcessing )
|
1997-07-20 16:23:21 +00:00
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
ERR_(sendmsg)("smsg not at the top of Processing list, smsg=0x%p queue=0x%p", smsg, queue);
|
1999-02-18 17:34:09 +00:00
|
|
|
return 0;
|
|
|
|
}
|
1997-07-20 16:23:21 +00:00
|
|
|
else
|
1999-02-18 17:34:09 +00:00
|
|
|
{
|
|
|
|
queue->smProcessing = smsg->nextProcessing;
|
|
|
|
smsg->nextProcessing = 0;
|
1997-07-20 16:23:21 +00:00
|
|
|
}
|
1999-02-18 17:34:09 +00:00
|
|
|
return smsg;
|
1996-09-28 18:11:01 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
case SM_WAITING_LIST:
|
|
|
|
/* don't need to be thread safe, only accessed by the
|
|
|
|
thread associated with the receiver queue */
|
|
|
|
|
|
|
|
/* if smsg is equal to null, it means the first in the list */
|
|
|
|
if (!smsg)
|
|
|
|
smsg = queue->smWaiting;
|
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(sendmsg)("queue=%x, list=%d, smsg=%p msg=%s\n", queue->self, list,
|
1999-02-18 17:34:09 +00:00
|
|
|
smsg, SPY_GetMsgName(smsg->msg));
|
|
|
|
/* In fact SM_WAITING_LIST is a stack, and smsg
|
|
|
|
should be always at the top of the list */
|
|
|
|
if ( (smsg != queue->smWaiting) || !queue->smWaiting )
|
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
ERR_(sendmsg)("smsg not at the top of Waiting list, smsg=0x%p queue=0x%p", smsg, queue);
|
1999-02-18 17:34:09 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
queue->smWaiting = smsg->nextWaiting;
|
|
|
|
smsg->nextWaiting = 0;
|
1996-06-16 16:16:05 +00:00
|
|
|
}
|
1999-02-18 17:34:09 +00:00
|
|
|
return smsg;
|
1996-05-28 18:54:58 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
case SM_PENDING_LIST:
|
|
|
|
/* make it thread safe, could be accessed by the sender and
|
|
|
|
receiver thread */
|
|
|
|
EnterCriticalSection( &queue->cSection );
|
1999-01-28 10:54:11 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
if (!smsg || !queue->smPending)
|
|
|
|
smsg = queue->smPending;
|
|
|
|
else
|
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
ERR_(sendmsg)("should always remove the top one in Pending list, smsg=0x%p queue=0x%p", smsg, queue);
|
1999-05-01 10:20:18 +00:00
|
|
|
LeaveCriticalSection( &queue->cSection );
|
1999-02-18 17:34:09 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(sendmsg)("queue=%x, list=%d, smsg=%p msg=%s\n", queue->self, list,
|
1999-02-18 17:34:09 +00:00
|
|
|
smsg, SPY_GetMsgName(smsg->msg));
|
1996-06-16 16:16:05 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
queue->smPending = smsg->nextPending;
|
|
|
|
smsg->nextPending = 0;
|
1996-09-28 18:11:01 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
/* if no more SMSG in Pending list, clear QS_SENDMESSAGE flag */
|
|
|
|
if (!queue->smPending)
|
|
|
|
QUEUE_ClearWakeBit( queue, QS_SENDMESSAGE );
|
|
|
|
|
|
|
|
LeaveCriticalSection( &queue->cSection );
|
|
|
|
return smsg;
|
|
|
|
|
|
|
|
default:
|
1999-05-02 14:32:27 +00:00
|
|
|
WARN_(sendmsg)("Invalid list: %d", list);
|
1999-02-18 17:34:09 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
1996-05-28 18:54:58 +00:00
|
|
|
}
|
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
/***********************************************************************
|
1999-02-18 17:34:09 +00:00
|
|
|
* QUEUE_ReceiveMessage
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
*
|
1999-02-18 17:34:09 +00:00
|
|
|
* This routine is called when a sent message is waiting for the queue.
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
*/
|
1999-02-18 17:34:09 +00:00
|
|
|
void QUEUE_ReceiveMessage( MESSAGEQUEUE *queue )
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
{
|
1999-02-18 17:34:09 +00:00
|
|
|
LRESULT result = 0;
|
|
|
|
SMSG *smsg;
|
|
|
|
MESSAGEQUEUE *senderQ;
|
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(sendmsg)("queue %04x\n", queue->self );
|
1999-02-18 17:34:09 +00:00
|
|
|
|
|
|
|
if ( !(queue->wakeBits & QS_SENDMESSAGE) && queue->smPending )
|
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(sendmsg)("\trcm: nothing to do\n");
|
1999-02-18 17:34:09 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* remove smsg on the top of the pending list and put it in the processing list */
|
|
|
|
smsg = QUEUE_RemoveSMSG(queue, SM_PENDING_LIST, 0);
|
|
|
|
QUEUE_AddSMSG(queue, SM_WAITING_LIST, smsg);
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(sendmsg)("RM: %s [%04x] (%04x -> %04x)\n",
|
1999-02-18 17:34:09 +00:00
|
|
|
SPY_GetMsgName(smsg->msg), smsg->msg, smsg->hSrcQueue, smsg->hDstQueue );
|
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
if (IsWindow( smsg->hWnd ))
|
1999-02-18 17:34:09 +00:00
|
|
|
{
|
|
|
|
WND *wndPtr = WIN_FindWndPtr( smsg->hWnd );
|
|
|
|
DWORD extraInfo = queue->GetMessageExtraInfoVal; /* save ExtraInfo */
|
|
|
|
|
|
|
|
/* use sender queue extra info value while calling the window proc */
|
|
|
|
senderQ = (MESSAGEQUEUE*)QUEUE_Lock( smsg->hSrcQueue );
|
|
|
|
if (senderQ)
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
{
|
1999-02-18 17:34:09 +00:00
|
|
|
queue->GetMessageExtraInfoVal = senderQ->GetMessageExtraInfoVal;
|
|
|
|
QUEUE_Unlock( senderQ );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* call the right version of CallWindowProcXX */
|
|
|
|
if (smsg->flags & SMSG_WIN32)
|
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(sendmsg)("\trcm: msg is Win32\n" );
|
1999-02-18 17:34:09 +00:00
|
|
|
if (smsg->flags & SMSG_UNICODE)
|
1999-02-26 11:11:13 +00:00
|
|
|
result = CallWindowProcW( wndPtr->winproc,
|
1999-02-18 17:34:09 +00:00
|
|
|
smsg->hWnd, smsg->msg,
|
|
|
|
smsg->wParam, smsg->lParam );
|
|
|
|
else
|
1999-02-26 11:11:13 +00:00
|
|
|
result = CallWindowProcA( wndPtr->winproc,
|
1999-02-18 17:34:09 +00:00
|
|
|
smsg->hWnd, smsg->msg,
|
|
|
|
smsg->wParam, smsg->lParam );
|
|
|
|
}
|
|
|
|
else /* Win16 message */
|
|
|
|
result = CallWindowProc16( (WNDPROC16)wndPtr->winproc,
|
|
|
|
(HWND16) smsg->hWnd,
|
|
|
|
(UINT16) smsg->msg,
|
|
|
|
LOWORD (smsg->wParam),
|
|
|
|
smsg->lParam );
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
queue->GetMessageExtraInfoVal = extraInfo; /* Restore extra info */
|
1999-03-14 17:25:32 +00:00
|
|
|
WIN_ReleaseWndPtr(wndPtr);
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(sendmsg)("result = %08x\n", (unsigned)result );
|
1999-02-18 17:34:09 +00:00
|
|
|
}
|
1999-05-02 14:32:27 +00:00
|
|
|
else WARN_(sendmsg)("\trcm: bad hWnd\n");
|
1998-10-14 18:38:22 +00:00
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
/* set SMSG_SENDING_REPLY flag to tell ReplyMessage16, it's not
|
|
|
|
an early reply */
|
|
|
|
smsg->flags |= SMSG_SENDING_REPLY;
|
1999-02-26 11:11:13 +00:00
|
|
|
ReplyMessage( result );
|
1999-01-28 10:54:11 +00:00
|
|
|
|
1999-05-02 14:32:27 +00:00
|
|
|
TRACE_(sendmsg)("done! \n" );
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
}
|
1996-05-28 18:54:58 +00:00
|
|
|
|
1999-02-18 17:34:09 +00:00
|
|
|
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_AddMsg
|
|
|
|
*
|
|
|
|
* Add a message to the queue. Return FALSE if queue is full.
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL QUEUE_AddMsg( HQUEUE16 hQueue, MSG *msg, DWORD extraInfo )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *msgQueue;
|
1999-01-26 09:30:05 +00:00
|
|
|
QMSG *qmsg;
|
1996-03-14 18:08:34 +00:00
|
|
|
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
if (!(msgQueue = (MESSAGEQUEUE *)QUEUE_Lock( hQueue ))) return FALSE;
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
/* allocate new message in global heap for now */
|
|
|
|
if (!(qmsg = (QMSG *) HeapAlloc( SystemHeap, 0, sizeof(QMSG) ) ))
|
1999-01-28 10:54:11 +00:00
|
|
|
{
|
|
|
|
QUEUE_Unlock( msgQueue );
|
1999-01-26 09:30:05 +00:00
|
|
|
return 0;
|
1999-01-28 10:54:11 +00:00
|
|
|
}
|
1999-01-26 09:30:05 +00:00
|
|
|
|
|
|
|
EnterCriticalSection( &msgQueue->cSection );
|
1996-03-14 18:08:34 +00:00
|
|
|
|
|
|
|
/* Store message */
|
1999-01-26 09:30:05 +00:00
|
|
|
qmsg->msg = *msg;
|
|
|
|
qmsg->extraInfo = extraInfo;
|
|
|
|
|
|
|
|
/* insert the message in the link list */
|
|
|
|
qmsg->nextMsg = 0;
|
|
|
|
qmsg->prevMsg = msgQueue->lastMsg;
|
|
|
|
|
|
|
|
if (msgQueue->lastMsg)
|
|
|
|
msgQueue->lastMsg->nextMsg = qmsg;
|
|
|
|
|
|
|
|
/* update first and last anchor in message queue */
|
|
|
|
msgQueue->lastMsg = qmsg;
|
|
|
|
if (!msgQueue->firstMsg)
|
|
|
|
msgQueue->firstMsg = qmsg;
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
msgQueue->msgCount++;
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
LeaveCriticalSection( &msgQueue->cSection );
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
|
1996-05-28 18:54:58 +00:00
|
|
|
QUEUE_SetWakeBit( msgQueue, QS_POSTMESSAGE );
|
1999-01-28 10:54:11 +00:00
|
|
|
QUEUE_Unlock( msgQueue );
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_FindMsg
|
|
|
|
*
|
|
|
|
* Find a message matching the given parameters. Return -1 if none available.
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
QMSG* QUEUE_FindMsg( MESSAGEQUEUE * msgQueue, HWND hwnd, int first, int last )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1999-01-26 09:30:05 +00:00
|
|
|
QMSG* qmsg;
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
EnterCriticalSection( &msgQueue->cSection );
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
if (!msgQueue->msgCount)
|
|
|
|
qmsg = 0;
|
|
|
|
else if (!hwnd && !first && !last)
|
|
|
|
qmsg = msgQueue->firstMsg;
|
|
|
|
else
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1999-01-26 09:30:05 +00:00
|
|
|
/* look in linked list for message matching first and last criteria */
|
|
|
|
for (qmsg = msgQueue->firstMsg; qmsg; qmsg = qmsg->nextMsg)
|
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
MSG *msg = &(qmsg->msg);
|
1996-03-14 18:08:34 +00:00
|
|
|
|
|
|
|
if (!hwnd || (msg->hwnd == hwnd))
|
|
|
|
{
|
1999-01-26 09:30:05 +00:00
|
|
|
if (!first && !last)
|
|
|
|
break; /* found it */
|
|
|
|
|
1999-02-19 16:50:24 +00:00
|
|
|
if ((msg->message >= first) && (!last || (msg->message <= last)))
|
1999-01-26 09:30:05 +00:00
|
|
|
break; /* found it */
|
|
|
|
}
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
}
|
1999-01-26 09:30:05 +00:00
|
|
|
|
|
|
|
LeaveCriticalSection( &msgQueue->cSection );
|
|
|
|
|
|
|
|
return qmsg;
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_RemoveMsg
|
|
|
|
*
|
|
|
|
* Remove a message from the queue (pos must be a valid position).
|
|
|
|
*/
|
1999-01-26 09:30:05 +00:00
|
|
|
void QUEUE_RemoveMsg( MESSAGEQUEUE * msgQueue, QMSG *qmsg )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1999-01-26 09:30:05 +00:00
|
|
|
EnterCriticalSection( &msgQueue->cSection );
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
/* set the linked list */
|
|
|
|
if (qmsg->prevMsg)
|
|
|
|
qmsg->prevMsg->nextMsg = qmsg->nextMsg;
|
|
|
|
|
|
|
|
if (qmsg->nextMsg)
|
|
|
|
qmsg->nextMsg->prevMsg = qmsg->prevMsg;
|
|
|
|
|
|
|
|
if (msgQueue->firstMsg == qmsg)
|
|
|
|
msgQueue->firstMsg = qmsg->nextMsg;
|
|
|
|
|
|
|
|
if (msgQueue->lastMsg == qmsg)
|
|
|
|
msgQueue->lastMsg = qmsg->prevMsg;
|
|
|
|
|
|
|
|
/* deallocate the memory for the message */
|
|
|
|
HeapFree( SystemHeap, 0, qmsg );
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
msgQueue->msgCount--;
|
1996-05-28 18:54:58 +00:00
|
|
|
if (!msgQueue->msgCount) msgQueue->wakeBits &= ~QS_POSTMESSAGE;
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
LeaveCriticalSection( &msgQueue->cSection );
|
1996-05-28 18:54:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_WakeSomeone
|
|
|
|
*
|
|
|
|
* Wake a queue upon reception of a hardware event.
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
static void QUEUE_WakeSomeone( UINT message )
|
1996-05-28 18:54:58 +00:00
|
|
|
{
|
1996-09-28 18:11:01 +00:00
|
|
|
WND* wndPtr = NULL;
|
|
|
|
WORD wakeBit;
|
1999-02-26 11:11:13 +00:00
|
|
|
HWND hwnd;
|
1999-01-28 10:54:11 +00:00
|
|
|
HQUEUE16 hQueue = 0;
|
|
|
|
MESSAGEQUEUE *queue = NULL;
|
|
|
|
|
|
|
|
if (hCursorQueue)
|
|
|
|
hQueue = hCursorQueue;
|
1996-05-28 18:54:58 +00:00
|
|
|
|
1996-09-28 18:11:01 +00:00
|
|
|
if( (message >= WM_KEYFIRST) && (message <= WM_KEYLAST) )
|
1996-05-28 18:54:58 +00:00
|
|
|
{
|
1996-09-28 18:11:01 +00:00
|
|
|
wakeBit = QS_KEY;
|
1999-01-28 10:54:11 +00:00
|
|
|
if( hActiveQueue )
|
|
|
|
hQueue = hActiveQueue;
|
1996-05-28 18:54:58 +00:00
|
|
|
}
|
1996-09-28 18:11:01 +00:00
|
|
|
else
|
1996-05-28 18:54:58 +00:00
|
|
|
{
|
1996-09-28 18:11:01 +00:00
|
|
|
wakeBit = (message == WM_MOUSEMOVE) ? QS_MOUSEMOVE : QS_MOUSEBUTTON;
|
1999-02-26 11:11:13 +00:00
|
|
|
if( (hwnd = GetCapture()) )
|
1996-09-28 18:11:01 +00:00
|
|
|
if( (wndPtr = WIN_FindWndPtr( hwnd )) )
|
1999-01-28 10:54:11 +00:00
|
|
|
{
|
|
|
|
hQueue = wndPtr->hmemTaskQ;
|
1999-03-14 17:25:32 +00:00
|
|
|
WIN_ReleaseWndPtr(wndPtr);
|
1999-01-28 10:54:11 +00:00
|
|
|
}
|
1996-05-28 18:54:58 +00:00
|
|
|
}
|
1996-09-28 18:11:01 +00:00
|
|
|
|
|
|
|
if( (hwnd = GetSysModalWindow16()) )
|
1999-01-28 10:54:11 +00:00
|
|
|
{
|
1996-09-28 18:11:01 +00:00
|
|
|
if( (wndPtr = WIN_FindWndPtr( hwnd )) )
|
1999-03-14 17:25:32 +00:00
|
|
|
{
|
1999-01-28 10:54:11 +00:00
|
|
|
hQueue = wndPtr->hmemTaskQ;
|
1999-03-14 17:25:32 +00:00
|
|
|
WIN_ReleaseWndPtr(wndPtr);
|
|
|
|
}
|
1999-01-28 10:54:11 +00:00
|
|
|
}
|
1996-09-28 18:11:01 +00:00
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
if (hQueue)
|
|
|
|
queue = QUEUE_Lock( hQueue );
|
|
|
|
|
1996-09-28 18:11:01 +00:00
|
|
|
if( !queue )
|
1996-05-28 18:54:58 +00:00
|
|
|
{
|
1999-01-28 10:54:11 +00:00
|
|
|
queue = QUEUE_Lock( hFirstQueue );
|
1996-09-28 18:11:01 +00:00
|
|
|
while( queue )
|
|
|
|
{
|
|
|
|
if (queue->wakeMask & wakeBit) break;
|
1999-01-28 10:54:11 +00:00
|
|
|
|
|
|
|
QUEUE_Unlock(queue);
|
|
|
|
queue = QUEUE_Lock( queue->next );
|
1996-09-28 18:11:01 +00:00
|
|
|
}
|
|
|
|
if( !queue )
|
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
WARN_(msg)("couldn't find queue\n");
|
1996-09-28 18:11:01 +00:00
|
|
|
return;
|
|
|
|
}
|
1996-05-28 18:54:58 +00:00
|
|
|
}
|
1996-09-28 18:11:01 +00:00
|
|
|
|
|
|
|
QUEUE_SetWakeBit( queue, wakeBit );
|
1999-01-28 10:54:11 +00:00
|
|
|
|
|
|
|
QUEUE_Unlock( queue );
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* hardware_event
|
|
|
|
*
|
|
|
|
* Add an event to the system message queue.
|
|
|
|
* Note: the position is relative to the desktop window.
|
|
|
|
*/
|
|
|
|
void hardware_event( WORD message, WORD wParam, LONG lParam,
|
|
|
|
int xPos, int yPos, DWORD time, DWORD extraInfo )
|
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
MSG *msg;
|
1999-03-28 13:10:54 +00:00
|
|
|
QMSG *qmsg;
|
1999-01-26 09:30:05 +00:00
|
|
|
int mergeMsg = 0;
|
1996-05-28 18:54:58 +00:00
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
if (!sysMsgQueue) return;
|
|
|
|
|
1999-03-28 13:10:54 +00:00
|
|
|
EnterCriticalSection( &sysMsgQueue->cSection );
|
|
|
|
|
|
|
|
/* Merge with previous event if possible */
|
|
|
|
qmsg = sysMsgQueue->lastMsg;
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
if ((message == WM_MOUSEMOVE) && sysMsgQueue->lastMsg)
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1999-01-26 09:30:05 +00:00
|
|
|
msg = &(sysMsgQueue->lastMsg->msg);
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
if ((msg->message == message) && (msg->wParam == wParam))
|
1999-01-26 09:30:05 +00:00
|
|
|
{
|
|
|
|
/* Merge events */
|
|
|
|
qmsg = sysMsgQueue->lastMsg;
|
|
|
|
mergeMsg = 1;
|
|
|
|
}
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
if (!mergeMsg)
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1999-01-26 09:30:05 +00:00
|
|
|
/* Should I limit the number of message in
|
|
|
|
the system message queue??? */
|
|
|
|
|
|
|
|
/* Don't merge allocate a new msg in the global heap */
|
|
|
|
|
|
|
|
if (!(qmsg = (QMSG *) HeapAlloc( SystemHeap, 0, sizeof(QMSG) ) ))
|
1999-03-28 13:10:54 +00:00
|
|
|
{
|
|
|
|
LeaveCriticalSection( &sysMsgQueue->cSection );
|
|
|
|
return;
|
|
|
|
}
|
1999-01-26 09:30:05 +00:00
|
|
|
|
|
|
|
/* put message at the end of the linked list */
|
|
|
|
qmsg->nextMsg = 0;
|
|
|
|
qmsg->prevMsg = sysMsgQueue->lastMsg;
|
|
|
|
|
|
|
|
if (sysMsgQueue->lastMsg)
|
|
|
|
sysMsgQueue->lastMsg->nextMsg = qmsg;
|
|
|
|
|
|
|
|
/* set last and first anchor index in system message queue */
|
|
|
|
sysMsgQueue->lastMsg = qmsg;
|
|
|
|
if (!sysMsgQueue->firstMsg)
|
|
|
|
sysMsgQueue->firstMsg = qmsg;
|
|
|
|
|
|
|
|
sysMsgQueue->msgCount++;
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Store message */
|
1999-01-26 09:30:05 +00:00
|
|
|
msg = &(qmsg->msg);
|
1996-03-14 18:08:34 +00:00
|
|
|
msg->hwnd = 0;
|
|
|
|
msg->message = message;
|
|
|
|
msg->wParam = wParam;
|
|
|
|
msg->lParam = lParam;
|
|
|
|
msg->time = time;
|
1999-01-26 09:30:05 +00:00
|
|
|
msg->pt.x = xPos;
|
|
|
|
msg->pt.y = yPos;
|
|
|
|
qmsg->extraInfo = extraInfo;
|
|
|
|
|
1999-03-28 13:10:54 +00:00
|
|
|
LeaveCriticalSection( &sysMsgQueue->cSection );
|
|
|
|
|
1996-05-28 18:54:58 +00:00
|
|
|
QUEUE_WakeSomeone( message );
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_GetQueueTask
|
|
|
|
*/
|
1996-07-12 19:02:39 +00:00
|
|
|
HTASK16 QUEUE_GetQueueTask( HQUEUE16 hQueue )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1999-01-28 10:54:11 +00:00
|
|
|
HTASK16 hTask = 0;
|
|
|
|
|
|
|
|
MESSAGEQUEUE *queue = QUEUE_Lock( hQueue );
|
|
|
|
|
|
|
|
if (queue)
|
|
|
|
{
|
|
|
|
hTask = queue->thdb->process->task;
|
|
|
|
QUEUE_Unlock( queue );
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
return hTask;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_IncPaintCount
|
|
|
|
*/
|
1996-07-12 19:02:39 +00:00
|
|
|
void QUEUE_IncPaintCount( HQUEUE16 hQueue )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( hQueue ))) return;
|
1996-03-14 18:08:34 +00:00
|
|
|
queue->wPaintCount++;
|
1996-05-28 18:54:58 +00:00
|
|
|
QUEUE_SetWakeBit( queue, QS_PAINT );
|
1999-01-28 10:54:11 +00:00
|
|
|
QUEUE_Unlock( queue );
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_DecPaintCount
|
|
|
|
*/
|
1996-07-12 19:02:39 +00:00
|
|
|
void QUEUE_DecPaintCount( HQUEUE16 hQueue )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( hQueue ))) return;
|
1996-03-14 18:08:34 +00:00
|
|
|
queue->wPaintCount--;
|
1996-05-28 18:54:58 +00:00
|
|
|
if (!queue->wPaintCount) queue->wakeBits &= ~QS_PAINT;
|
1999-01-28 10:54:11 +00:00
|
|
|
QUEUE_Unlock( queue );
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_IncTimerCount
|
|
|
|
*/
|
1996-07-12 19:02:39 +00:00
|
|
|
void QUEUE_IncTimerCount( HQUEUE16 hQueue )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( hQueue ))) return;
|
1996-03-14 18:08:34 +00:00
|
|
|
queue->wTimerCount++;
|
1996-05-28 18:54:58 +00:00
|
|
|
QUEUE_SetWakeBit( queue, QS_TIMER );
|
1999-01-28 10:54:11 +00:00
|
|
|
QUEUE_Unlock( queue );
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* QUEUE_DecTimerCount
|
|
|
|
*/
|
1996-07-12 19:02:39 +00:00
|
|
|
void QUEUE_DecTimerCount( HQUEUE16 hQueue )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( hQueue ))) return;
|
1996-03-14 18:08:34 +00:00
|
|
|
queue->wTimerCount--;
|
1996-05-28 18:54:58 +00:00
|
|
|
if (!queue->wTimerCount) queue->wakeBits &= ~QS_TIMER;
|
1999-01-28 10:54:11 +00:00
|
|
|
QUEUE_Unlock( queue );
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
1997-02-15 14:29:56 +00:00
|
|
|
* PostQuitMessage16 (USER.6)
|
1996-03-14 18:08:34 +00:00
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
void WINAPI PostQuitMessage16( INT16 exitCode )
|
1997-02-15 14:29:56 +00:00
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
PostQuitMessage( exitCode );
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
1998-04-13 12:21:30 +00:00
|
|
|
* PostQuitMessage32 (USER32.421)
|
1998-10-25 09:20:30 +00:00
|
|
|
*
|
|
|
|
* PostQuitMessage() posts a message to the system requesting an
|
|
|
|
* application to terminate execution. As a result of this function,
|
|
|
|
* the WM_QUIT message is posted to the application, and
|
|
|
|
* PostQuitMessage() returns immediately. The exitCode parameter
|
|
|
|
* specifies an application-defined exit code, which appears in the
|
|
|
|
* _wParam_ parameter of the WM_QUIT message posted to the application.
|
|
|
|
*
|
|
|
|
* CONFORMANCE
|
|
|
|
*
|
|
|
|
* ECMA-234, Win32
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
void WINAPI PostQuitMessage( INT exitCode )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() ))) return;
|
1996-03-14 18:08:34 +00:00
|
|
|
queue->wPostQMsg = TRUE;
|
|
|
|
queue->wExitCode = (WORD)exitCode;
|
1999-01-28 10:54:11 +00:00
|
|
|
QUEUE_Unlock( queue );
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
1996-07-12 19:02:39 +00:00
|
|
|
* GetWindowTask16 (USER.224)
|
1996-03-14 18:08:34 +00:00
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
HTASK16 WINAPI GetWindowTask16( HWND16 hwnd )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1999-03-14 17:25:32 +00:00
|
|
|
HTASK16 retvalue;
|
1996-03-14 18:08:34 +00:00
|
|
|
WND *wndPtr = WIN_FindWndPtr( hwnd );
|
|
|
|
|
|
|
|
if (!wndPtr) return 0;
|
1999-03-14 17:25:32 +00:00
|
|
|
retvalue = QUEUE_GetQueueTask( wndPtr->hmemTaskQ );
|
|
|
|
WIN_ReleaseWndPtr(wndPtr);
|
|
|
|
return retvalue;
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
1997-02-02 19:01:52 +00:00
|
|
|
/***********************************************************************
|
1998-04-13 12:21:30 +00:00
|
|
|
* GetWindowThreadProcessId (USER32.313)
|
1997-02-02 19:01:52 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
DWORD WINAPI GetWindowThreadProcessId( HWND hwnd, LPDWORD process )
|
1997-02-15 14:29:56 +00:00
|
|
|
{
|
1997-02-02 19:01:52 +00:00
|
|
|
HTASK16 htask;
|
|
|
|
TDB *tdb;
|
|
|
|
|
|
|
|
WND *wndPtr = WIN_FindWndPtr( hwnd );
|
|
|
|
|
|
|
|
if (!wndPtr) return 0;
|
|
|
|
htask=QUEUE_GetQueueTask( wndPtr->hmemTaskQ );
|
1999-03-14 17:25:32 +00:00
|
|
|
WIN_ReleaseWndPtr(wndPtr);
|
1997-02-02 19:01:52 +00:00
|
|
|
tdb = (TDB*)GlobalLock16(htask);
|
Release 980201
Sun Feb 1 13:24:54 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [files/drive.c]
Added Device= parameter to drive configuration.
* [if1632/relay.c]
Throw() and Catch() now use the correct CATCHBUF layout (untested).
* [tools/build.c] [include/stackframe.h] [loader/task.c]
Moved 16-bit stack pointer into thread database.
Save current %fs while running 16-bit code.
Fri Jan 30 09:25:49 1998 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [graphics/mapping.c]
Made DPtoLP32 and LPtoDP32 respect world transforms.
* [graphics/path.c] [graphics/painting.c] [if1632/gdi.spec]
[include/path.h]
More path support.
* [include/gdi.h] [include/windows.h] [objects/dc.c]
[relay/gdi32.spec]
Support for Get/SetArcDirection and Get/SetWorldTransform
* [windows/hook.c]
Fixed a bug in HOOK_Map16To32Common.
Thu Jan 29 23:43:18 1998 Douglas Ridgway <ridgway@taiga.gmcl.com>
* [graphics/metafiledrv/init.c] [objects/metafile.c]
Documentation for metafile related API calls. Fixed a bug to avoid
documenting it.
* [include/windows.h]
Declaration for LoadImage.
Thu Jan 29 21:44:45 1998 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/win16drv/*]
Changes to printing code to enable use of printer fonts with the
win3.1 postscript driver. Remember to add printer=on to [wine]
section of wine.conf . You will also need to disable truetype
fonts from control panel. Winword 6.0 and Write seem to be happy
with this...
* [include/bitmap.h]
Fix Widthbytes for 15bpp displays.
Tue Jan 27 20:54:08 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [tsx11/*] [include/ts*] [tools/make_X11wrappers]
Implemented thread-safe X11 wrappers.
Tue Jan 27 13:54:09 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [windows/queue.c]
Forgot to convert thdb to thread_id.
* [misc/registry.c]
Sped up Windows 95 registry reading. Changed code to traverse
registry as a tree rather than read in all possible keys
(including dead ones).
Tue Jan 27 12:46:09 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [loader/pe_image.c][Makefile.in][scheduler/thread.c]
[libtest/hello5.c]
Don't exit() on failed to load referenced dlls.
Fixed static tls allocation for multiple threads.
WINELIB should now be able to load PE dlls. A sample
winelib program, that dynamically loads a internal dll
is included.
* [graphics/ddraw.c][include/ddraw.h][include/d3d.h]
Cleaned up and enhanced further. Added several DirectX5
interface definitions and DirectSurface3 implementation.
Stubs for D3D (NOT coming soon, just there so it fails safely).
* [multimedia/dsound.c][include/dsound.h]
Actually works now for a lot of cases. Some DirectX5 stuff
added. Still lacking several features.
* [windows/dinput.c][include/dinput.h]
Started implementing DirectInput. Doesn't work yet, don't
know why.
* [if1632/thunk.c][misc/callbacks.c]
[win32/kernel.c][include/callbacks.h]
Added WOWCallback16Ex, WOWHandle32.
* [misc/cpu.c]
Fixed GetSystemInfo, IsProcessorFeaturePresent.
* [multimedia/joystick.c][multimedia/time.c]
Several fixes. Small hack to get timerevents in timeGetTime() loops.
Tue Jan 20 11:26:27 1998 Slaven Rezic <eserte@cs.tu-berlin.de>
* [configure.in]
Fixed check for union semun on FreeBSD systems.
Sun Jan 18 23:05:04 1998 Karl Backstrm <karl_b@geocities.com>
* [misc/ole2nls.c] [programs/progman/Sw.rc] [programs/winhelp/Sw.rc]
[resources/sysres_Sw.rc]
Added/updated Swedish language support.
Sun Jan 18 18:49:01 1998 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [misc/winsock.c] [misc/winsock_dns.c] [windows/event.c]
[windows/win.c] [windows/dce.c] [windows/winpos.c]
Bug fixes.
Sun Jan 18 12:45:23 1997 Andreas Mohr <100.30936@germany.net>
* [msdos/int25.c] [msdos/int26.c]
Implemented "native" absolute disk read/write access.
* [msdos/int13.c] [msdos/ioports.c]
Enhanced GET DRIVE PARAMETERS (int13 AH=08).
* [graphics/win16drv/prtdrv.c] [if1632/gdi.spec]
Fixed typos, implemented dmEnumDFonts,
Started implementation of dmRealizeObject.
* [if1632/compobj.spec] [ole/compobj.c] [relay32/ole32.spec]
Stubs CoCreateInstance, CoFreeUnusedLibraries, implemented
CoFileTimeNow.
* [if1632/kernel.spec] [include/windows.h] [memory/global.c]
[memory/string.c] [misc/kernel.c] [misc/Makefile.in]
[misc/toolhelp.c] [msdos/int21.c]
Implemented GlobalHandleNoRIP, GetFreeMemInfo, DebugFillBuffer,
stubs GetSetKernelDOSProc, DiagQuery, DiagOutput, ToolHelpHook
(Undocumented Windows).
* [if1632/user.spec] [if1632/win32s16.spec] [misc/win32s16.c]
Misc stubs.
* [if1632/winaspi.spec] [misc/aspi.c]
Implemented GetASPIDLLVersion.
* [if1632/wprocs.spec] [msdos/int20.c] [msdos/Makefile.in]
Added handler for Int 0x20 (terminate program, _very_ old-fashioned).
* [misc/w32scomb.c]
Implemented Get16DLLAddress() partially
(big thanks to Marcus and Alexandre).
* [relay32/Makefile.in] [relay32/builtin32.c] [relay32/dplay.spec]
Added built-in DPLAY.DLL.
* [relay32/winmm.spec] [multimedia/joystick.c]
Added joySetThreshold.
* [misc/windebug.c]
Added WinNotify.
* [win32/console.c]
Stubs CreateConsoleScreenBuffer, SetConsoleActiveScreenBuffer,
WriteConsoleOutput32A.
* [windows/user.c]
Stub SetEventHook.
Sat Jan 17 19:30:35 1998 Matthew Toseland <Paul.Toseland@btinternet.com>
* [windows/painting.c]
Fixed broken restore-to-maximized.
Mon Jan 12 21:25:32 1998 Perceval - Marc Huguet Puig <mhp@tinet.fut.es>
* [documentation/wine.man] [include/options.h]
[misc/main.c] [ole/ole2nls.c] [resources/sysres.c]
[resources/sysres_Ca.rc] [resources/Makefile.in]
Added language catalan. (Afegit l'idioma catal).
1998-02-01 18:33:27 +00:00
|
|
|
if (!tdb || !tdb->thdb) return 0;
|
1999-02-28 12:25:03 +00:00
|
|
|
if (process) *process = (DWORD)tdb->thdb->process->server_pid;
|
1999-03-13 18:20:26 +00:00
|
|
|
return (DWORD)tdb->thdb->server_tid;
|
1997-02-02 19:01:52 +00:00
|
|
|
}
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
1997-02-15 14:29:56 +00:00
|
|
|
* SetMessageQueue16 (USER.266)
|
1996-03-14 18:08:34 +00:00
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
BOOL16 WINAPI SetMessageQueue16( INT16 size )
|
1997-02-15 14:29:56 +00:00
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
return SetMessageQueue( size );
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
1998-04-13 12:21:30 +00:00
|
|
|
* SetMessageQueue32 (USER32.494)
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI SetMessageQueue( INT size )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
1999-01-26 09:30:05 +00:00
|
|
|
/* now obsolete the message queue will be expanded dynamically
|
|
|
|
as necessary */
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-01-26 09:30:05 +00:00
|
|
|
/* access the queue to create it if it's not existing */
|
1999-02-26 11:11:13 +00:00
|
|
|
GetFastQueue16();
|
Release 961201
Sat Nov 30 19:21:17 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [configure]
Re-generated with autoconf 2.11. Let me know if you have
problems.
* [controls/listbox.c] [controls/oldlbox.c]
Listboxes rewritten from scratch. Moved old code still used by
comboboxes to oldlbox.c
* [misc/registry.c]
Use temporary file when saving registry.
* [windows/dialog.c]
Implemented Win32 version of DlgDirList() and DlgDirListComboBox().
* [windows/winproc.c]
Added translation for listbox Win32 messages.
Sat Nov 30 21:00:00 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [controls/widgets.c] [controls/button.c]
Fixed some incompatibilities with CTL3D DLL.
* [windows/dialog.c]
Made dialog windows fit into the desktop.
* [misc/winsock.c] [misc/winsock_async.c]
New Winsock engine.
* [windows/message.c]
GetMessage() fixes.
* [windows/queue.c] [windows/hook.c] [windows/win.c]
SetMessageQueue() fixes.
Fri Nov 29 10:25:12 1996 Slaven Rezic <eserte@cs.tu-berlin.de>
* [objects/text.c]
DrawText16(): Fixed return value.
Tue Nov 26 14:47:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/profile.c] [*/*]
Added Win32 profile functions, updated to new naming standard.
* [objects/font.c] [if1632/thunk.c] [include/windows.h]
Added EnumFonts32*, EnumFontFamiliesEx*, changed prototypes and
structures.
* [misc/ole2nls.c] [if1632/thunk.c]
Added EnumSystemLocales() (winhelp.exe).
* [misc/registry.c]
Added Windows 3.1 registry loader supplied by Tor Sjxwall, tor@sn.no
* [win32/file.c]
Partially fixed CreateFileMapping(), added UnmapViewOfFile().
Sat Nov 23 23:36:05 1996 Ronan Waide <waider@waider.ie>
* [misc/shell.c]
Fixed some FIXMEs relating to ShellExec() and FindExecutable().
* [misc/main.c]
Implemented a few more of the SystemParametersInfo() cases.
Tue Nov 19 01:24:34 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* [include/keyboard.h]
New file, new macro WINE_VKEY_MAPPINGS (using code taken from event.c).
* [include/windows.h]
New [VK_A, VK_Z] and [VK_0, VK9] macros.
* [misc/keyboard.c]
Fixes in KeyTable and ToAscii.
* [objects/font.c]
FONT_init : Give default value for MSWIN "system" font.
FONT_MatchFont : Do not try every size of a font family if the
family does not exist.
* [windows/event.c]
lastEventChar hack removed.
KeyStateTable replaced by InputKeyStateTable (maintained in event.c)
and QueueKeyStateTable (maintained in message.c).
EVENT_key : Corrections to the extended bit setting.
* [windows/message.c] [windows/keyboard.c]
Implementation of a new QueueKeyStateTable : table of key states
valid when messages are retrieved by GetMessage or PeekMessage,
and valid for TranslateMessage.
TranslateMessage : Convert WM*KEY messages using QueueKeyStateTable
and ToAscii.
Mon Nov 18 16:59:01 1996 Robert Pouliot <krynos@clic.net>
* [graphics/Makefile.in] [graphics/wing.c]
[if1632/wing.spec]
Some functions for WinG support, mostly empty stubs.
* [misc/crtdll.c] [if1632/crtdll.spec]
Many functions added to CRTDLL, mostly calls to Unix C library.
1996-12-01 17:17:47 +00:00
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
1998-12-24 15:15:00 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* InitThreadInput (USER.409)
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HQUEUE16 WINAPI InitThreadInput16( WORD unknown, WORD flags )
|
1998-12-24 15:15:00 +00:00
|
|
|
{
|
1999-01-26 09:30:05 +00:00
|
|
|
HQUEUE16 hQueue;
|
|
|
|
MESSAGEQUEUE *queuePtr;
|
|
|
|
|
|
|
|
THDB *thdb = THREAD_Current();
|
|
|
|
|
|
|
|
if (!thdb)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
hQueue = thdb->teb.queue;
|
|
|
|
|
1999-01-17 16:32:32 +00:00
|
|
|
if ( !hQueue )
|
|
|
|
{
|
1999-01-26 09:30:05 +00:00
|
|
|
/* Create thread message queue */
|
1999-02-05 10:37:53 +00:00
|
|
|
if( !(hQueue = QUEUE_CreateMsgQueue( TRUE )))
|
1999-01-26 09:30:05 +00:00
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
WARN_(msg)("failed!\n");
|
1999-01-26 09:30:05 +00:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Link new queue into list */
|
1999-01-28 10:54:11 +00:00
|
|
|
queuePtr = (MESSAGEQUEUE *)QUEUE_Lock( hQueue );
|
1999-01-26 09:30:05 +00:00
|
|
|
queuePtr->thdb = THREAD_Current();
|
|
|
|
|
1999-03-21 08:36:55 +00:00
|
|
|
HeapLock( SystemHeap ); /* FIXME: a bit overkill */
|
1999-02-26 11:11:13 +00:00
|
|
|
SetThreadQueue16( 0, hQueue );
|
1999-01-26 09:30:05 +00:00
|
|
|
thdb->teb.queue = hQueue;
|
|
|
|
|
|
|
|
queuePtr->next = hFirstQueue;
|
|
|
|
hFirstQueue = hQueue;
|
1999-03-21 08:36:55 +00:00
|
|
|
HeapUnlock( SystemHeap );
|
1999-01-28 10:54:11 +00:00
|
|
|
|
|
|
|
QUEUE_Unlock( queuePtr );
|
1999-01-17 16:32:32 +00:00
|
|
|
}
|
1998-12-24 15:15:00 +00:00
|
|
|
|
|
|
|
return hQueue;
|
|
|
|
}
|
1996-03-14 18:08:34 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
1997-03-05 08:22:35 +00:00
|
|
|
* GetQueueStatus16 (USER.334)
|
1996-03-14 18:08:34 +00:00
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
DWORD WINAPI GetQueueStatus16( UINT16 flags )
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
|
|
|
DWORD ret;
|
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() ))) return 0;
|
1996-05-28 18:54:58 +00:00
|
|
|
ret = MAKELONG( queue->changeBits, queue->wakeBits );
|
|
|
|
queue->changeBits = 0;
|
1999-01-28 10:54:11 +00:00
|
|
|
QUEUE_Unlock( queue );
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
return ret & MAKELONG( flags, flags );
|
|
|
|
}
|
|
|
|
|
1997-11-30 17:45:40 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* GetQueueStatus32 (USER32.283)
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
DWORD WINAPI GetQueueStatus( UINT flags )
|
1997-11-30 17:45:40 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
|
|
|
DWORD ret;
|
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() ))) return 0;
|
1997-11-30 17:45:40 +00:00
|
|
|
ret = MAKELONG( queue->changeBits, queue->wakeBits );
|
|
|
|
queue->changeBits = 0;
|
1999-01-28 10:54:11 +00:00
|
|
|
QUEUE_Unlock( queue );
|
|
|
|
|
1997-11-30 17:45:40 +00:00
|
|
|
return ret & MAKELONG( flags, flags );
|
|
|
|
}
|
|
|
|
|
1996-03-14 18:08:34 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
1997-02-15 14:29:56 +00:00
|
|
|
* GetInputState16 (USER.335)
|
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
BOOL16 WINAPI GetInputState16(void)
|
1997-02-15 14:29:56 +00:00
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
return GetInputState();
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
1998-03-29 19:44:57 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* WaitForInputIdle (USER32.577)
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
DWORD WINAPI WaitForInputIdle (HANDLE hProcess, DWORD dwTimeOut)
|
1998-03-29 19:44:57 +00:00
|
|
|
{
|
1999-05-02 14:32:27 +00:00
|
|
|
FIXME_(msg)("(hProcess=%d, dwTimeOut=%ld): stub\n", hProcess, dwTimeOut);
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 19:01:20 +00:00
|
|
|
|
1998-03-29 19:44:57 +00:00
|
|
|
return WAIT_TIMEOUT;
|
|
|
|
}
|
|
|
|
|
1997-02-15 14:29:56 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
1998-04-13 12:21:30 +00:00
|
|
|
* GetInputState32 (USER32.244)
|
1996-03-14 18:08:34 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI GetInputState(void)
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL ret;
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() )))
|
1997-02-15 14:29:56 +00:00
|
|
|
return FALSE;
|
1999-01-28 10:54:11 +00:00
|
|
|
ret = queue->wakeBits & (QS_KEY | QS_MOUSEBUTTON);
|
|
|
|
QUEUE_Unlock( queue );
|
|
|
|
|
|
|
|
return ret;
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
1998-12-24 15:15:00 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* UserYield (USER.332)
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
void WINAPI UserYield16(void)
|
1998-12-24 15:15:00 +00:00
|
|
|
{
|
1999-03-27 16:10:52 +00:00
|
|
|
MESSAGEQUEUE *queue;
|
1998-12-24 15:15:00 +00:00
|
|
|
|
|
|
|
/* Handle sent messages */
|
1999-03-27 16:10:52 +00:00
|
|
|
queue = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() );
|
|
|
|
|
1998-12-24 15:15:00 +00:00
|
|
|
while (queue && (queue->wakeBits & QS_SENDMESSAGE))
|
|
|
|
QUEUE_ReceiveMessage( queue );
|
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
QUEUE_Unlock( queue );
|
|
|
|
|
1999-03-27 16:10:52 +00:00
|
|
|
/* Yield */
|
|
|
|
if ( THREAD_IsWin16( THREAD_Current() ) )
|
|
|
|
OldYield16();
|
|
|
|
else
|
|
|
|
{
|
1999-04-01 09:58:53 +00:00
|
|
|
DWORD count;
|
|
|
|
|
|
|
|
ReleaseThunkLock(&count);
|
|
|
|
RestoreThunkLock(count);
|
1999-03-27 16:10:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Handle sent messages again */
|
|
|
|
queue = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() );
|
1998-12-24 15:15:00 +00:00
|
|
|
|
|
|
|
while (queue && (queue->wakeBits & QS_SENDMESSAGE))
|
|
|
|
QUEUE_ReceiveMessage( queue );
|
1999-01-28 10:54:11 +00:00
|
|
|
|
|
|
|
QUEUE_Unlock( queue );
|
1998-12-24 15:15:00 +00:00
|
|
|
}
|
1996-03-14 18:08:34 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
1998-04-13 12:21:30 +00:00
|
|
|
* GetMessagePos (USER.119) (USER32.272)
|
1998-10-25 09:20:30 +00:00
|
|
|
*
|
|
|
|
* The GetMessagePos() function returns a long value representing a
|
|
|
|
* cursor position, in screen coordinates, when the last message
|
|
|
|
* retrieved by the GetMessage() function occurs. The x-coordinate is
|
|
|
|
* in the low-order word of the return value, the y-coordinate is in
|
|
|
|
* the high-order word. The application can use the MAKEPOINT()
|
|
|
|
* macro to obtain a POINT structure from the return value.
|
|
|
|
*
|
|
|
|
* For the current cursor position, use GetCursorPos().
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
*
|
|
|
|
* Cursor position of last message on success, zero on failure.
|
|
|
|
*
|
|
|
|
* CONFORMANCE
|
|
|
|
*
|
|
|
|
* ECMA-234, Win32
|
|
|
|
*
|
1996-03-14 18:08:34 +00:00
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
DWORD WINAPI GetMessagePos(void)
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
1999-01-28 10:54:11 +00:00
|
|
|
DWORD ret;
|
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() ))) return 0;
|
1999-01-28 10:54:11 +00:00
|
|
|
ret = queue->GetMessagePosVal;
|
|
|
|
QUEUE_Unlock( queue );
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
return ret;
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
1998-04-13 12:21:30 +00:00
|
|
|
* GetMessageTime (USER.120) (USER32.273)
|
1998-10-25 09:20:30 +00:00
|
|
|
*
|
|
|
|
* GetMessageTime() returns the message time for the last message
|
|
|
|
* retrieved by the function. The time is measured in milliseconds with
|
|
|
|
* the same offset as GetTickCount().
|
|
|
|
*
|
|
|
|
* Since the tick count wraps, this is only useful for moderately short
|
|
|
|
* relative time comparisons.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
*
|
|
|
|
* Time of last message on success, zero on failure.
|
|
|
|
*
|
|
|
|
* CONFORMANCE
|
|
|
|
*
|
|
|
|
* ECMA-234, Win32
|
|
|
|
*
|
1996-03-14 18:08:34 +00:00
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
LONG WINAPI GetMessageTime(void)
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
1999-01-28 10:54:11 +00:00
|
|
|
LONG ret;
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() ))) return 0;
|
1999-01-28 10:54:11 +00:00
|
|
|
ret = queue->GetMessageTimeVal;
|
|
|
|
QUEUE_Unlock( queue );
|
|
|
|
|
|
|
|
return ret;
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
1998-04-13 12:21:30 +00:00
|
|
|
* GetMessageExtraInfo (USER.288) (USER32.271)
|
1996-03-14 18:08:34 +00:00
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
LONG WINAPI GetMessageExtraInfo(void)
|
1996-03-14 18:08:34 +00:00
|
|
|
{
|
|
|
|
MESSAGEQUEUE *queue;
|
1999-01-28 10:54:11 +00:00
|
|
|
LONG ret;
|
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
if (!(queue = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() ))) return 0;
|
1999-01-28 10:54:11 +00:00
|
|
|
ret = queue->GetMessageExtraInfoVal;
|
|
|
|
QUEUE_Unlock( queue );
|
1996-03-14 18:08:34 +00:00
|
|
|
|
1999-01-28 10:54:11 +00:00
|
|
|
return ret;
|
1996-03-14 18:08:34 +00:00
|
|
|
}
|