Commit graph

37420 commits

Author SHA1 Message Date
Timo Kreuzer 1fc4b3e8ca [FORMATTING] Fix indentation, no code change
svn path=/trunk/; revision=41653
2009-06-27 23:54:02 +00:00
Timo Kreuzer 36526f9157 Update SERVERINFO, PFNCLIENT, PFNCLIENTWORKER to Windows 7 version, add OEMBITMAPINFO, DPISERVERINFO, PERUSERSERVERINFO
Add -fms-extensions compilerflag to user32, win32k, csrss, win32csr.

svn path=/trunk/; revision=41652
2009-06-27 23:33:57 +00:00
Timo Kreuzer 8af77479df Don't save/change/restore the DC pen in IntDrawScrollInterior, where it's not used at all.
svn path=/trunk/; revision=41651
2009-06-27 23:12:22 +00:00
ReactOS Portable Systems Group 39374c3ad4 - Copying from destination to destination isn't very smart.
- Fix bug when creating the physical memory descriptor block.


svn path=/trunk/; revision=41650
2009-06-27 22:51:23 +00:00
ReactOS Portable Systems Group e52bb6e5ac - Actually it seems MmGetPhysicalMemoryRanges uses the MmPhysicalMemoryBlock, so go ahead and implement that function.
- Thanks to Matthieu Suiche (http://www.msuiche.net/2008/09/17/retrieving-mmphysicalmemoryblock-regardless-of-the-nt-version/).
  - Move physical.c into ARM3 and call it dynamic.c since these functions are for Dynamic Memory (Hotplug) for Server 2003.
  - Remove the old copyright header, as copy-pasting 5 DDK function definitions and rewriting them to say UNIMPLEMENTED isn't much of a copyright.


svn path=/trunk/; revision=41649
2009-06-27 22:39:03 +00:00
ReactOS Portable Systems Group b254273e3b - Call MmArmInitSystem for a second time, this time in Phase 1.
- This will call MmInitializeMemoryLimits (now implemented) which will go ahead and create the MmPhysicalMemoryBlock.
    - This block contains the physical memory "runs" that are valid on the system, allowing the PFN database to differentiate between valid and non-valid RAM (instead of marking things as "BIOS").
  - Also this will come in handy later for various utilities.


svn path=/trunk/; revision=41648
2009-06-27 22:16:47 +00:00
Sylvain Petreolle d7a781de82 Taskmgr didn't build without compilation units,
moving PerfDataGet to perfdata functions fixes it.

svn path=/trunk/; revision=41647
2009-06-27 22:05:53 +00:00
James Tabor 5c0c60f056 - Fix callback set and changed data. Process hooks if we are hooked.
svn path=/trunk/; revision=41646
2009-06-27 20:52:33 +00:00
KJK::Hyperion dd218680c6 Allow sorting the list of processes in Task Manager by any column. Patch by Maxime Vernier <maximevernier@gmail.com> with fixes by Sylvain Petreolle <spetreolle@yahoo.fr> and KJK::Hyperion <hackbunny@reactos.org>
See issue #4608 for more details.

svn path=/trunk/; revision=41645
2009-06-27 19:16:29 +00:00
Stefan Ginsberg ad91dd3fcd - Add some defines in preparation for _WINE.
- Add missing ExtDeviceMode and PrivateExtractIconsA/W to PSDK and remove from Wine-only headers, as these are defined in the official PSDK.

svn path=/trunk/; revision=41644
2009-06-27 19:06:00 +00:00
Christoph von Wittich 29572196b7 fix two kernel32 locale winetests
svn path=/trunk/; revision=41643
2009-06-27 18:46:10 +00:00
James Tabor dc74ea0bbe - Implement the rest of the HCBT_ support.
svn path=/trunk/; revision=41642
2009-06-27 18:36:29 +00:00
Sylvain Petreolle 4c329721d8 Add MIXERCONTROL_CONTROLTYPE_BASS_BOOST and KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
svn path=/trunk/; revision=41641
2009-06-27 14:41:56 +00:00
Stefan Ginsberg 74ddcbe68d - KeDetachProcess & KeUnstackDetachProcess: Fix a typo when swapping back to the original process that would switch _from_ the original process to itself. We now properly swap from the _current_ process.
svn path=/trunk/; revision=41640
2009-06-27 11:07:58 +00:00
ReactOS Portable Systems Group fea1ac4782 - This patch is lets you visually dump the entire ReactOS PFN database, useful for debugging. Surprising nobody had done in this in the past, since it wasn't too hard (but it took a bit long to figure out how to get it in there).
- That's what she said.


svn path=/trunk/; revision=41639
2009-06-27 09:54:56 +00:00
Cameron Gutman a932210bfa - Always call the completion handler so we don't leak packet descriptors
- Don't remove the NCE if we fail because it may not be ours
 - Mark the IRPs pending before we insert them into our queue
 - Check that the addresses match so we don't receive somebody else's packets
 - Part 1 of 2

svn path=/trunk/; revision=41638
2009-06-27 08:48:58 +00:00
ReactOS Portable Systems Group ad9f3a761f - Remove leftover performance tracing code.
svn path=/trunk/; revision=41637
2009-06-27 08:43:56 +00:00
ReactOS Portable Systems Group ddedfd132a - Reimplement kernel stack allocation (MmCreateKernelStack, MmDeleteKernelStack, MmGrowKernelStack, MmGrowKernelStackEx):
- Use System PTEs.
  - Allocate 12KB stacks with a 4KB guard page, and expand them up to 60KB as required.
    - Previous implementation always allocated 60KB, without any guard page.
  - The result is that on a minimal ReactOS install, simply booting up now requires an average of 0.5MB less of physical memory than before.
  - And once again, optimizations to the system PTE allocation code should significantly improve performance.
  - Should also analyze benefits of using a dead stack slist as done on Windows. (Assembla Ticket #39).


svn path=/trunk/; revision=41636
2009-06-27 08:41:45 +00:00
Christoph von Wittich 5a526879a4 tabs -> spaces
use more consistent indentation

svn path=/trunk/; revision=41635
2009-06-27 07:38:02 +00:00
ReactOS Portable Systems Group fdf4fe9afa - Allocate enough space for the ARM3 PFN database, and fixup the calculation of the initial nonpaged pool.
- The ARM3 PFN database is more of a "shadow" database not to interfere with the real ReactOS PFN database. It starts at 0xB0000000, which is where the initial nonpaged pool started (which now starts somewhere after the ARM3 PFN database).
- No new behavior has been introduced other than additional physical memory consumption for the PFN DB pages, and updated memory layout in the ARM3 world.


svn path=/trunk/; revision=41634
2009-06-27 07:14:52 +00:00
Cameron Gutman 2d20864907 - Use the timeout that the caller gives us if it is nonzero so we don't block forever if nobody wakes us
svn path=/trunk/; revision=41633
2009-06-27 07:03:45 +00:00
Cameron Gutman 9722b61095 - The timeout value passed to tsleep is in milliseconds and so_linger is in seconds so convert to milliseconds
svn path=/trunk/; revision=41632
2009-06-27 06:59:22 +00:00
ReactOS Portable Systems Group 689615967e - Blow away the bottom 2GB of virtual address space in the ARM^3 initializer. Previously this was kind of done with MmUnmapPageTable in MmInit1, but this code (And the function, which had only been used for this purpose, are gone)
- Also set the Page Directory for the system/idle process in a slightly more correct way, instead of depending on the CR3 value. Do this in ARM^3 now, and remove the older code (and the MmGetPageDirectory function, which was only used by this).


svn path=/trunk/; revision=41631
2009-06-27 05:32:53 +00:00
Cameron Gutman dabb3e9f98 - Don't leave the listen IRP in the queue when cancelling the listen request
- Kill all the requests before closing the socket
 - Notify oskittcp when we are cancelling requests so it can properly close the socket

svn path=/trunk/; revision=41630
2009-06-27 03:23:10 +00:00
Cameron Gutman 97d8658da9 - Acquire the cancel spin lock before calling IoSetCancelRoutine
- Remove some extra junk

svn path=/trunk/; revision=41629
2009-06-27 03:14:06 +00:00
ReactOS Portable Systems Group 128aefcd63 - Rewrite MmMapIoSpace and MmUnmapIoSpace to use System PTEs instead.
- Much faster and cleaner (will be even faster when System PTE allocation is optimized).
- Better handling of esoteric caching options, especially relevant for ARM.
  - Handled through the MiPlatformCacheAttributes, which should be defined differently for each platform (TODO).
    - Handles both I/O (device) and RAM physical memory.
- Correct flushing of CPU caches (not a big deal on x86, but matters on ARM).


svn path=/trunk/; revision=41628
2009-06-27 03:03:24 +00:00
ReactOS Portable Systems Group 6e8a0cf662 - ARM3-ify hypermap.c
svn path=/trunk/; revision=41627
2009-06-27 03:00:35 +00:00
ReactOS Portable Systems Group a39c949acf - Implement MiReleaseSystemPtes which is the function to deallocate System PTE allocations.
- We do some minor optimizations to combine chunks if possible after a free, similar to MD Block algorithms in freeldr.c.

svn path=/trunk/; revision=41626
2009-06-27 02:56:58 +00:00
Johannes Anderwald a0803f70c2 - Add STREAM_DEBUG_LEVEL
svn path=/trunk/; revision=41625
2009-06-26 16:30:44 +00:00
Johannes Anderwald 8b461b7616 - Write strmini.h for stream class driver
svn path=/trunk/; revision=41624
2009-06-26 15:51:14 +00:00
Johannes Anderwald af23e9415c - Callback routine expects fdo
- Fix boot

svn path=/trunk/; revision=41623
2009-06-26 14:17:12 +00:00
Johannes Anderwald a74571e0a9 - fix build broken in rev 41621
svn path=/trunk/; revision=41622
2009-06-26 13:08:09 +00:00
Johannes Anderwald 28685db4e4 - Rewrite PcRegisterIoTimeout, PcUnregisterIoTimeout to support more than one PIO_TIMER_ROUTINE per device object
svn path=/trunk/; revision=41621
2009-06-26 12:05:13 +00:00
Aleksey Bragin d6d058ab49 - Implement NtSetThreadExecutionState (in place of what has been committed in r41599 and reverted in 41619).
svn path=/trunk/; revision=41620
2009-06-26 09:39:00 +00:00
Christoph von Wittich c98e73cfce revert 41599
svn path=/trunk/; revision=41619
2009-06-26 07:22:34 +00:00
Christoph von Wittich 4e67d94e81 fix formatting
svn path=/trunk/; revision=41618
2009-06-26 06:34:25 +00:00
James Tabor f69cbf46cc - Fix breakage when in HCBT_CREATEWND callback.
svn path=/trunk/; revision=41617
2009-06-26 02:10:52 +00:00
James Tabor 336fb5e2d6 - Turn off callback for HCBT_CREATEWND.
svn path=/trunk/; revision=41616
2009-06-26 00:30:54 +00:00
James Tabor 576c4e61fe - Fix ATOM check for HCBT_CREATEWND callback.
svn path=/trunk/; revision=41615
2009-06-25 21:00:16 +00:00
James Tabor f1ab1a2cae - Implement HCBT_CREATEWND support. Tested with user32 cross wine tests, still hangs on win test. For Christoph.
svn path=/trunk/; revision=41614
2009-06-25 20:39:32 +00:00
Sylvain Petreolle 8ce3178f05 Add accessibility keys.
svn path=/trunk/; revision=41613
2009-06-25 19:58:12 +00:00
Johannes Anderwald 7480a839ca - revert 41605 as its incorrect
svn path=/trunk/; revision=41612
2009-06-25 18:48:46 +00:00
Christoph von Wittich c1b0f80304 sync shell32 with wine 1.1.24
svn path=/trunk/; revision=41611
2009-06-25 14:39:01 +00:00
Dmitry Gorbachev ff37974bba Remove a hack from NtAccessCheck(). Bug #4169.
svn path=/trunk/; revision=41610
2009-06-25 13:29:58 +00:00
KJK::Hyperion d53c35b02b No reason to compile PSEH2 with other compilers than GCC
svn path=/trunk/; revision=41607
2009-06-25 10:27:57 +00:00
Johannes Anderwald f760f8c906 - Don't modify access status when function fails
- reduces advapi32_winetest security failures by 3

svn path=/trunk/; revision=41605
2009-06-25 07:16:26 +00:00
Timo Kreuzer 68ccd5f6e4 Rewrite (NtUser)SystemParametersInfo and related.
- Instead of getting the data from the window station and other strange places, the values are now mostly stored in a global variable. This is possible because NtUserSystemParametersInfo should fail anyway when being called from a non-interactive windowstation (tested on windows XP).
- WM_SETTINGCHANGE is now properly sent not posted to all toplevel Windows also passing the registry string as the lParam value (strings could need some testing).
- SystemMetrics are now set and updated from system parameters.
- Most values are now properly loaded from registry and also saved.
- user32_winetest sysparams: before: 634 executed / 235 failures, after: 1093 executed, 11 failures
- Fixes the non-bold caption font in 2nd stage.
- Implements a number SPI codes.
- Implements helper functions for registry and file access
Thanks to all testers for all the regression testing :)


See issue #4595 for more details.

svn path=/trunk/; revision=41604
2009-06-25 02:43:38 +00:00
Dmitry Gorbachev 8101b8e12f Hack: partially undo r38510 changes to overcome regression (bug #4169).
svn path=/trunk/; revision=41603
2009-06-24 22:23:29 +00:00
Christoph von Wittich 1ef5fa35af fix typo
svn path=/trunk/; revision=41602
2009-06-24 22:12:48 +00:00
Christoph von Wittich d01aa9d736 fix formatting
svn path=/trunk/; revision=41601
2009-06-24 22:07:50 +00:00