Commit graph

42 commits

Author SHA1 Message Date
Timo Kreuzer
9ea495ba33 Create a branch for header work.
svn path=/branches/header-work/; revision=45691
2010-02-26 22:57:55 +00:00
James Tabor
1e2a5d67cd [Win32k]
- Updated headers and related files.

svn path=/trunk/; revision=45070
2010-01-14 02:52:12 +00:00
James Tabor
24533102e6 [Win32k]
- More movement to WND with updates to related files. Added new scroll and get/post message routines. In the mix we did moved to the MONITOR structure.

svn path=/trunk/; revision=45042
2010-01-11 07:36:48 +00:00
Timo Kreuzer
b473a12aff [WIN32k]
Fix some 64 bit issues.

svn path=/trunk/; revision=44958
2010-01-05 20:06:33 +00:00
Giannis Adamopoulos
5416a90f26 [win32k]
- Don't store SYSTEM_CURSORINFO inside WINSTATION_OBJECT. Use a global variable instead
- Remove IntGetCursorLocation. Use directly gpsi->ptCursor

svn path=/trunk/; revision=44655
2009-12-19 16:23:05 +00:00
James Tabor
f755214f06 [Win32k]
- Continuing the moving into WND structure with minor desktop structure changes.
- Tested: wine user32 tests, AbiWord 2.6.8, FF 3.5, OOo 2.4.3 and Seamonkey 2.0.

svn path=/trunk/; revision=44576
2009-12-14 06:48:40 +00:00
James Tabor
d51b4d5202 [Win32k]
- Michael Martin found a create window and crash exit issue by testing programs from http://www.magma.ca/~wjr/ PEview. Fixed by replacing UserFreeWindowInfo with co_UserDestroyWindow at cleanup exit.
- Added more window death and thread checks.
- Started the morphing into WND structure from window object.
- Tested: wine user32 tests, AbiWord 2.6.8, Seamonkey 2.0, FF 3.5 and OOo 2.4.3.

svn path=/trunk/; revision=44575
2009-12-14 05:02:56 +00:00
Dmitry Gorbachev
145fbbd116 - Update address of Free Software Foundation.
- Update obsolete LGPL v2 to LGPL v2.1.

svn path=/trunk/; revision=43790
2009-10-27 10:34:16 +00:00
Matthias Kupfer
d5a7f4b694 experimental mouse click lock feature
svn path=/trunk/; revision=43420
2009-10-12 21:08:35 +00:00
Matthias Kupfer
f894aea679 - revert SPI_SETCLICKLOCK
- small optimization in mgsqueue

svn path=/trunk/; revision=43327
2009-10-07 18:22:25 +00:00
Matthias Kupfer
fca0dabc2d - add new desktop and mouse property keys to registry
- disable global settings from _SYSTEM_CURSORINFO and change files accordingly
- bind and load added registry keys for SystemParametersInfo
- TODO: read and set via SystemParametersInfo still incomplete

svn path=/trunk/; revision=43307
2009-10-05 19:53:15 +00:00
Aleksey Bragin
dacdbb5e50 [win32k]
- Giannis Adamopoulos: Don't do callbacks to usermode when holding the lock. Fixes the famous "VMWare video driver installer 2nd stage hang" bug. Signed off by James Tabor.
See issue #2666 for more details.

svn path=/trunk/; revision=43119
2009-09-22 21:50:33 +00:00
James Tabor
e0b7b058c3 - [Win32k] More Class work. Moved to use thread and process information structures.
- Tested wine, Firefox 1.15.xx and AbiWord 2.6.8.

svn path=/trunk/; revision=42234
2009-07-26 16:17:50 +00:00
Dmitry Chapyshev
09f8aa06a9 - Use PWINDOW_OBJECT instead HWND in PostTimerMessages, IntGetPaintMessage, co_MsqTranslateMouseMessage, co_MsqPeekHardwareMessage, co_MsqFindMessage, co_MsqWaitForNewMessages, MsqGetTimerMessage, MsqGetFirstTimerExpiry, co_IntPeekMessage
- Allow hWnd equal -1, 0x0000ffff, 0xffffffff
- Fixes 3 winetests for PeekMessageA/W

svn path=/trunk/; revision=41754
2009-07-03 09:37:44 +00:00
Stefan Ginsberg
5bd2bdcaec - PnpInit: Allocate IopBusTypeGuidList from nonpaged pool as it contains a fast mutex.
- MsqCreateMessageQueue: Allocate the message queue from nonpaged pool as it contains a mutex.

svn path=/trunk/; revision=41386
2009-06-11 23:36:51 +00:00
James Tabor
c993561d5d - Migration changes from PPROCESSINFO and PTHREADINFO to use ClientInfo from TEB. I moved kpi to ci->ppi, we still depend on it as a reference pointer.
- Added and changed structure types.
- Tested with old AbiWord, FireFox and explorer.
- Comment out TestWindowProcess until the rest is ready.

svn path=/trunk/; revision=40333
2009-04-02 18:52:34 +00:00
James Tabor
ad5d6611f9 - Add more thread info types and remove a set mask clear bit.
svn path=/trunk/; revision=38868
2009-01-18 04:36:43 +00:00
James Tabor
d80bf3ef94 - It is shameful, hacks like this.
svn path=/trunk/; revision=38807
2009-01-17 07:07:36 +00:00
Dmitry Gorbachev
92d6cc1154 In co_MsqPostKeyboardMessage(), do not forget to release lock - this should cure the "blue death" and the "black death" diseases (bug #3995, bug #3997).
svn path=/trunk/; revision=38667
2009-01-09 15:39:28 +00:00
Dmitry Gorbachev
b3597def85 Silence compiler warnings (9/11).
svn path=/trunk/; revision=37831
2008-12-03 17:36:23 +00:00
Stefan Ginsberg
ef394b196f - Less STDCALL, more WINAPI/NTAPI/APIENTRY
svn path=/trunk/; revision=37752
2008-11-29 22:48:58 +00:00
James Tabor
b70d5a56a4 - Implemented: GetFontLanguageInfo based on wine. GetLanguageID, it reads the registry for default language type.
- Move more function in and out of freetype.c. Minor code fixes too.


svn path=/trunk/; revision=37090
2008-10-30 10:46:27 +00:00
Stefan Ginsberg
922bd47d8d - More 64-bit fixes
svn path=/trunk/; revision=36912
2008-10-23 17:05:40 +00:00
Timo Kreuzer
65e82782c9 Win32 structure cleanup part 3 / x:
- rename DESKTOP_OBJECT to DESKTOP

svn path=/trunk/; revision=36789
2008-10-17 13:09:56 +00:00
Timo Kreuzer
9c8b2fd447 Win32 structure cleanup part 2 / x:
- rename DESKTOP to DESKTOPINFO

svn path=/trunk/; revision=36786
2008-10-17 10:40:04 +00:00
Timo Kreuzer
d13301ae65 Win32 structure cleanup part 1 / x:
- replace W32THREAD with THREADINFO, define W32THREAD like it's on Windows and make it part of THREADINFO.

svn path=/trunk/; revision=36769
2008-10-16 17:52:38 +00:00
Hervé Poussineau
c1f3e0fa1c win32k: Add tags when allocating memory
ntoskrnl: Relax checks when freeing a string

svn path=/trunk/; revision=35769
2008-08-29 21:19:41 +00:00
James Tabor
3e6656c48c - Preliminary implementation of SetWinEventHook and UnhookWinEvent.
- Only wine cross test uses this and testing is not stable.
- Patches are welcome but all code is subject to change.
- All Hook code should be ready by Aug 4th.

svn path=/trunk/; revision=34988
2008-07-31 23:48:35 +00:00
James Tabor
f123580aa0 - Add support for SMTO_NOTIMEOUTIFNOTHUNG.
- Fix WH_CALLWNDPROC/RET for multi thread.
- Fix foreground idle.

svn path=/trunk/; revision=34776
2008-07-25 12:31:59 +00:00
James Tabor
e928cd52fd - Added more hook points. Setup WH_MOUSE with callbacks, seems to be preloaded. Started BroadcastSystemMessage.
- Tested with Opera 9.51, FF, Seamonkey, Abiword, Miranda and the rest of our applications.

svn path=/trunk/; revision=34736
2008-07-24 11:38:08 +00:00
James Tabor
f7a34846ba - Christoph von Wittich spotted a condition when co_MsqPostKeyboardMessage was called from KeyboardThreadMain, the thread was unlocked when waiting in co_MsqSendMessage. The problem; UserLeave was called before waiting on an event. I added checks to verify locking and if not, lock the thread. I'm not sure ATM if co_MsqPostKeyboardMessage should have full locking since it is only used by input.c.
- Added IdlePing to wakeup process threads before waiting on events, it look like the right place to put them.

svn path=/trunk/; revision=34430
2008-07-11 23:07:31 +00:00
Timo Kreuzer
56d318331b co_MsqTranslateMouseMessage:
- add a comment about who removes a message from a queue
- fix filter handling (typo)
- correct the callers next list entry, if it might have been deleted. Yes, it's ugly, but the only way I could currently think of without rewriting everything and it was already ugly before. This fixes bug 2317 and some random crashes with FF.
See issue #2317 for more details.

svn path=/trunk/; revision=33860
2008-06-05 16:57:27 +00:00
Timo Kreuzer
8f56b70c8b fix build, sorry
svn path=/trunk/; revision=33489
2008-05-13 04:30:00 +00:00
Timo Kreuzer
27ff35dcc8 - fix a pointer to INT cast
- use InterlockedExchangePointer instead of InterlockedExchange for a pointer

svn path=/trunk/; revision=33488
2008-05-13 04:18:07 +00:00
Timo Kreuzer
a8c044b6cb Big ntuser fix:
- rename ObmXxx functions to UserXxx functions
- remove some macros
- move prototypes to object.h
- implement UserreferenceObjectByHandle creating a reference to the object, used for cursoricon stuff so far
- rewrite object manager functions to reasonably handle references
- dereference cursoricons correctly, so they will really get deleted -> fixes a cursoricon leak
- destroy submenus in NtUserDestroyMenu -> fixes a big menu leak
- free the buffer of the menu text -> fixes a mem leak
- delete old bitmaps in NtUserSetCursorContent -> fixes a bitmap leak
- delete monitor object on failure
Now taskmgr doesn't leak memory anymore. we still leak some user handles here and there even after terminating a process, but it's much better now.

svn path=/trunk/; revision=32336
2008-02-13 00:46:23 +00:00
Thomas Bluemel
d77503dadb Implement WM_QUERYUISTATE, WM_CHANGEUISTATE and WM_UPDATEUISTATE
svn path=/trunk/; revision=30611
2007-11-21 08:32:45 +00:00
Daniel Reimer
ae7da04787 Delete all Trailing spaces in code.
svn path=/trunk/; revision=29690
2007-10-19 23:21:45 +00:00
Thomas Bluemel
f00ee22138 Correctly calculate message time. Fixes slow clicks being interpreted as double clicks.
See issue #2238 for more details.

svn path=/trunk/; revision=27952
2007-07-28 17:16:51 +00:00
Dmitry Gorbachev
6c337b4d51 Commit a patch (attachment #1135)
svn path=/trunk/; revision=26115
2007-03-16 16:52:36 +00:00
Alex Ionescu
6951a4887c - Bootvid rewrite by Filip Navara (with some fixes by myself)
- HAL DMA enhancements by Filip Navara.
- CSRSS Console enhancements by Filip Navara.
- Win32k Primitive Queue/Input/Painting/Focus enhancements by Filip Navara.
- Other misc win32k/CSR bug fixes by Filip Navara.
- The new bootvid code has some bugs, but try out a GUI Boot!

svn path=/trunk/; revision=24464
2006-10-09 04:00:34 +00:00
Alex Ionescu
502215cb1c - Simplify PsGetNextProcess so it works like PsGetNextProcessThread.
- Reformat and annotate parts of process.c
- Remove PsGetWin32Process, PsGetWin32Thread and implement/export the real functions PsGetCurrentProcessWin32Process, PsGetCurrentThreadWin32Thread, change win32k to use them.
- Initailize and use process rundown.
- Set corrent GrantedAccess.
- Remove an extra incorrect reference we were adding to processes.
- Implement PsIsProcessBeingDebugged.
- Make the same changes to NtOpenProcess that we did previously to NtOpenThread.

svn path=/trunk/; revision=23192
2006-07-20 14:53:47 +00:00
Maarten Bosma
e1f7c6d561 Moved win32k
svn path=/trunk/; revision=21063
2006-02-17 12:22:36 +00:00
Renamed from reactos/subsys/win32k/ntuser/msgqueue.c (Browse further)