Commit graph

53 commits

Author SHA1 Message Date
James Tabor
b5c759cceb Fix regression in RealizePalette. Send broadcast message if palette was changed.
svn path=/trunk/; revision=31621
2008-01-06 06:57:57 +00:00
James Tabor
b38a8a2d4c Fixed regression in RealizePalette, found by Stefan100.
svn path=/trunk/; revision=31614
2008-01-05 19:35:03 +00:00
Ged Murphy
6d9378a1fd - Add a new routine to NtUSerCallOneParam which returns newly created handles for icons and cursors
- Fix the NtUserGetIconSize prototype

svn path=/trunk/; revision=31289
2007-12-17 09:40:48 +00:00
Aleksey Bragin
729df301cd Andrey Korotaev <unc0rr@mail.ru>:
- Never trust MaximumLength passed from usermode when copying a unicode string (fixes a wide amount of crashes, tested with CdrLabel 4.1).

svn path=/trunk/; revision=31010
2007-12-04 22:52:05 +00:00
Thomas Bluemel
55e7ab53a2 Add a hack for SPI_GETKEYBOARDCUES
svn path=/trunk/; revision=30661
2007-11-22 05:36:01 +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
Thomas Bluemel
2bc07496f3 Store the internal window placement directly inside the WINDOW structure
svn path=/trunk/; revision=30610
2007-11-21 05:35:33 +00:00
James Tabor
48a2026e7a Removing old syscalls and updated related files. Old syscalls will be renamed for internal use.
svn path=/trunk/; revision=30603
2007-11-20 19:56:57 +00:00
Thomas Bluemel
232b9edcf0 Optimize SendMessageA/W to allow certain messages be sent without calling win32k
svn path=/trunk/; revision=30514
2007-11-17 00:40:22 +00:00
Thomas Bluemel
a61d6e83df Optimize IsWindow() and IsWindowUnicode()
svn path=/trunk/; revision=30497
2007-11-16 09:03:51 +00:00
Thomas Bluemel
bc74f1df6f Make registration of system window classes a bit more robust
svn path=/trunk/; revision=30492
2007-11-16 07:12:59 +00:00
Thomas Bluemel
4fae2f5e49 Implement GetWindowLongA/W without having to call win32k for most cases
svn path=/trunk/; revision=30477
2007-11-15 22:08:13 +00:00
Thomas Bluemel
23c877364c - Fix desktop heaps handling and various bugs
- Begin superseding the WINDOW_OBJECT structure by WINDOW which is located on the desktop heap
- Implement GetClientRect() and GetWindowRect() to read the information from the desktop heap

svn path=/trunk/; revision=30467
2007-11-15 19:42:41 +00:00
Thomas Bluemel
98bcda510c Expose the pointer to the shared heap and the delta to the user mode mapping
svn path=/trunk/; revision=30452
2007-11-15 02:23:41 +00:00
Daniel Reimer
ae7da04787 Delete all Trailing spaces in code.
svn path=/trunk/; revision=29690
2007-10-19 23:21:45 +00:00
Aleksey Bragin
d3048bf9fd - Silence badly placed debug message. DPRINT1 equals FIXME and ERR, but not TRACE!
svn path=/trunk/; revision=29374
2007-10-03 12:01:13 +00:00
Aleksey Bragin
fe7669dea4 - KeRosCaptureUserStackBackTrace is now created, which calls RtlWalkFrameChain with the user-mode flag, meaning that bugchecks finally show the user-mode stack again!
- KeRosDumpStackFrames is fixed so that if the EIP can't be found in a module list, it's still displayed (just without the module name). Previously the EIP would not be shown, resulting in code running on the heap/stack/somewhere else not being shown as part of the trace.

svn path=/trunk/; revision=29332
2007-10-01 17:58:49 +00:00
James Tabor
90c3978be9 - Win32k: Removed NtUserCreateMenu replacing it with NtUserCallNoParam.
svn path=/trunk/; revision=29092
2007-09-18 13:06:27 +00:00
James Tabor
33c9fa8993 Removed NtUserReleaseDC, replaced it with CallOneParam.
svn path=/trunk/; revision=28452
2007-08-22 14:12:55 +00:00
Magnus Olsen
336c8d7905 partly implement animations GET/SET spi, the value are store, but win32k ignore them
svn path=/trunk/; revision=28010
2007-07-29 15:55:09 +00:00
Thomas Bluemel
2a672fc18c - Search for user32 window classes before searching for system classes
- Register the user32 base address with win32k. Technically this is not really neccessary because user32's base address is fixed

svn path=/trunk/; revision=27935
2007-07-27 19:23:22 +00:00
Magnus Olsen
b2272ba67c adding SPI_SETSCREENSAVEACTIVE now, it can be set to false or true
false for no screen saver and true for screensaver. 

svn path=/trunk/; revision=27657
2007-07-14 14:17:54 +00:00
Magnus Olsen
b63aeeb74d fixing the limit of hover maxium time for SPI_SETMOUSEHOVERTIME
see msdn : http://msdn2.microsoft.com/en-us/library/ms724947.aspx

svn path=/trunk/; revision=27656
2007-07-14 13:56:24 +00:00
Magnus Olsen
4baff3cd38 Patch by David Lenon <DavidL@126.com>:
fixing some spi that was retutring using wrong param in retutin and setting spi
-------------------------------------------------------------------------------
1. I did add formating of the code and two debug msg. so it getting easy debug
waxdragon crashs

svn path=/trunk/; revision=27654
2007-07-14 13:18:25 +00:00
Magnus Olsen
e8c11f0d71 patch from Yaroslav Ponomarenko yarryp at gmail dot com
-------------------------------------------------------
This is a small hack, instead send invaild data we are sending 
a hardcode value for few unimplement spi, This solv some problem 
with firefox, like icon is not longer gray out, frist time u start 
firefox, it also fix some other werid problem, 




svn path=/trunk/; revision=27620
2007-07-12 22:14:40 +00:00
Magnus Olsen
b660147329 patch from Yaroslav Ponomarenko yarryp at gmail dot com
revert 27521, bugfix the regress in second boot with this patch
-----------------------------------------------------------------
I GreatLord hope it is no more regress, if any one found any werid
with this change, please let me known direcly.



svn path=/trunk/; revision=27531
2007-07-09 05:44:59 +00:00
Hervé Poussineau
4a614a2899 Revert half of revision 27465, as it breaks 2nd stage setup ("Failure rendering glyph")
svn path=/trunk/; revision=27521
2007-07-08 21:23:47 +00:00
Magnus Olsen
15355ab9a9 patch from Yaroslav Ponomarenko yarryp at gmail dot com
Implement so spi_ msg works now with swamp mouse buttun, but it seam our msg quare does not support it yet or must 
we send a msg from spi msg we change the mouse buttun to notify the program. either way it is now partly supported 
by his patch

svn path=/trunk/; revision=27484
2007-07-08 15:58:47 +00:00
Magnus Olsen
aba2e5a942 patch from Yaroslav Ponomarenko yarryp at gmail dot com
adding almost all spi msg can be resive/send to win32k and 
some are stub and will not work yet, but win32k will accpect them 

svn path=/trunk/; revision=27465
2007-07-08 11:16:42 +00:00
Magnus Olsen
52dc4e8d79 patch from Yaroslav Ponomarenko yarryp at gmail dot com
implement pointers 
MouseSpeed, CursorAccelerationInfo.FirstThreshold , 
CursorAccelerationInfo.SecondThreshold, CursorAccelerationInfo.Acceleration, 
MouseHoverTime, MouseHoverWidth, MouseHoverHeight
for SPI_SETMOUSEHOVERTIME, SPI_SETMOUSEHOVERWIDTH, SPI_SETMOUSEHOVERHEIGHT, SPI_SETMOUSE, SPI_SETMOUSESPEED.
WARING : 
Some of them are not 100% support in win32k for they are need be fill in from the mouse drv and 
send them to the mouse drv as well, this part are not done yet.


svn path=/trunk/; revision=27454
2007-07-07 18:17:03 +00:00
Christoph von Wittich
9b77e5185f implemented SPI_GETKEYBOARDCUES (hardcoded to TRUE)
svn path=/trunk/; revision=26400
2007-04-18 16:45:09 +00:00
Saveliy Tretiakov
59736af42b Merge clipboard branch to trunk
svn path=/trunk/; revision=26029
2007-03-08 13:31:33 +00:00
Timo Kreuzer
dc8aa9ffd7 - Make IntSystemParametersInfo send a WM_SETTINGCHANGE message when needed.
- Some code cleanup

svn path=/trunk/; revision=25423
2007-01-10 23:55:53 +00:00
Timo Kreuzer
adf72c70d0 Clean up tabs / spaces mix (no code change)
svn path=/trunk/; revision=25386
2007-01-08 20:01:04 +00:00
Timo Kreuzer
29e164cf19 - implement SPI_GETMINIMIZEDMETRICS and SPI_SETMINIMIZEDMETRICS in IntSystemParametersInfo and UserSystemParametersInfo
- add both to SystemParametersInfoA
See issue #1668 for more details.

svn path=/trunk/; revision=25361
2007-01-08 02:18:58 +00:00
Timo Kreuzer
15b82d28e7 implement SPI_SETNONCLIENTMETRICS in IntSystemParametersInfo and UserSystemParametersInfo
svn path=/trunk/; revision=25360
2007-01-08 00:23:15 +00:00
Alex Ionescu
c39989df1b - Fix SleepEx.
- Put volatile statements in EX_RUNDOWN_REF, IRP, DEVICE_OBJECT, ERESOURCE, FILE_OBJECT, IO_REMOVE_LOCK, WORK_QUEUE_ITEM where required (thanks to Microsoft's changes in the WDK to mark the fields properly).
- Update FILE_OBJECT definition.
- Add some asserts to some I/O functions.
- Add stub support for File Objects created by XP+ Drivers which have File Object Extensions.
- Add some fixes to IopDeleteFile, including proper reference counting for the DO and VPB, as well as cleanup when the file is closed without a handle.
- Fix a bug in IopSecurityFile.
- Queue and unqueue IRPs in all I/O functions.
- Fully support IRP cancellation now.
- Fix critical bugs in NtDeviceIoControlFile and NtDeviceFsControlFile which were causing double queueing of IRPs and freeing of invalid memory, as well as invalid paramter checking for user-mode buffers.
- Add exhaustive validation checks to IoCreateFile, add more failure cases, and validate the EA buffer. Also support IO_ATTACH_DEVICE_API flag.
- Implement IoCreateStreamFileObjectEx and IoCreateStreamFileObjectLite and fix several bugs in the original implementation of IoCreateStreamFileObject.
- Fix a bug in RtlRaiseException.
- Update Io*ShareAccess routines to support XP+ style semantics related to special File Object flags which disable their use.
- Add validation to all Query/Set routines so that information clasess, lengths, buffers and alignment are properly checked.
- Also add an array for the proper acess rights that each query/set operation requires.
- Check backup/restore privileges during I/O File operations.
- Check traverse access during I/O File Operations.
- Check access privileges to the device during I/O file operations.
- Rename IopReferenceDeviceObject and also verify if an exclusive DO is trying to be invalidly opened.
- Support various extra security checks during I/O File/Device Parse Routine.
- Fix a bug during IopCleanupIrp so that we don't dereference the File OBject if this was a create operation.
- Fix some bogus asserts in IofCompleteRequest, and save the IRP Flags before signalling it's event, since the driver might've freed it behind our back.
- Fix a large bug in ObInsertObject which affected the insert of unnamed objects with forced security options (Such as process/threads).
- Fix the creation of the Process/Thread/Job Obejct Types to that security information is forced.
- Remove "Fix PS!!!" messages since the bug is now fixed and these objects now get proper security descriptors.
- Fix another bug in ObInsertObjet which wasn't properly validating user-mode objects and always assumed kernel mode.
- Silence multiple trace/checkpoint messages that have accumulated throughout time for various debugging purposes.

svn path=/trunk/; revision=25118
2006-12-10 18:40:30 +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
Hervé Poussineau
96bb2d5365 Add stub for SPI_GETSCREENSAVEACTIVE (which always return TRUE at the moment...)
svn path=/trunk/; revision=24012
2006-09-10 02:20:29 +00:00
Magnus Olsen
1a375085e9 reapplay rev 23614, it we have now russain letters and other contrus special letters.
The bug I experis before was reletate to ntoslnrl and is complete gone. I have now reboot and boot around 10-20 times
and run same program. But we see all unicode -> ansi problem with this change if u select russan in reactos 

svn path=/trunk/; revision=23749
2006-08-27 16:51:11 +00:00
Magnus Olsen
038473fdfd revers 23614 it cause unexped regress in some api, the code need be goto thung pretty hard even try remove hardcode font in win32k, and it cause regress there and there. and cause regreess on boot time to time. sorry it took me most night figout out why. But I do not yet how to solv it.
svn path=/trunk/; revision=23640
2006-08-21 05:14:22 +00:00
Magnus Olsen
35b13e8bb0 Fixed some hard code font name
1. Bitstream Vera Sans to MS Sans Serif
2. Bitstream Vera Sans Mono to Courier New
This fixed some problem that bug 1191 mentor but not all. 
I tested this change in ReactOS 
1. using BootCD install whole process and run some ros own program
   and tested cmd. No problem was found with this change. 

svn path=/trunk/; revision=23614
2006-08-20 12:42:30 +00:00
Brandon Turner
25b81049eb Partially implement:
NtUserCallHwndOpt
NtUserGetThreadState
Implement
GetProgmanWindow
GetTaskmanWindow
This is (kinda)part of bug 1668

svn path=/trunk/; revision=23227
2006-07-22 16:50:23 +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
Magnus Olsen
20ce435a3b 1. Fixing so the screensaver only start one time when ReactOS starting.
2. Fixing so the screensaver do not restart it self. 
Alesky here is the bugfix I promies, it will not longer see alot start screen msg. 
One bug remains before the reg key will be adding as defualt for matrix.scr so it 
can run from livecd as well



svn path=/trunk/; revision=23047
2006-07-13 21:21:30 +00:00
Magnus Olsen
ebb0cc9c2b Fixing a small bug, value where never devliver from SPI and that did make screensaver start direcky and start mulitetimes.
svn path=/trunk/; revision=22998
2006-07-10 15:02:43 +00:00
Magnus Olsen
7ad01239f2 Implement SPI_GETFLATMENU and SPI_SETFLATMENU after jimtabor request not tested if it work
svn path=/trunk/; revision=22988
2006-07-10 01:48:46 +00:00
Magnus Olsen
52c172d21e Changes for Screen saver And implement
1. Time value can be changes use SPI_SETSCREENSAVETIMEOUT to set the new value, current insate value are set to 30sec
2. SPI_GETSCREENSAVETIMEOUT Get the screen saver timeout value.
3. Dectect if screen saver is running with SPI_GETSCREENSAVERRUNNING
4. Set the state of screen saver with  SPI_SETSCREENSAVERRUNNING <- this is internal api see msdn 
 
Implement for mouse
1. SPI_GETWHEELSCROLLLINES I am but unsure if win32k need more changes it seam like it is only a counter that should be set/get a value and user apps take care of the rest. Implement it for jimtabor did request it. 
2. SPI_GETWHEELSCROLLCHARS  I am but unsure if win32k need more changes it seam like it is only a counter that should be set/get a value and user apps take care of the rest.

svn path=/trunk/; revision=22985
2006-07-10 00:26:56 +00:00
James Tabor
7436b68377 Fix functionality in TWOPARAM_ROUTINE_ROS_SHOWWINDOW. Use one PWINDOW_OBJECT Window in NtUserCallTwoParam to help with cleanup.
svn path=/trunk/; revision=22353
2006-06-15 07:07:54 +00:00
Aleksey Bragin
13df4844a7 - Update text-outputting routines in user32.dll to Wine's trunk (22052006). May fix some layout and text-placement issues.
- "user32_winetest.exe text" gives only 1 failure now
- Silence debug messages in win32k.sys

svn path=/trunk/; revision=21985
2006-05-22 22:05:40 +00:00