Commit graph

39099 commits

Author SHA1 Message Date
Aleksey Bragin 4ff9e0a85e [powrprof]
- Implement some powrprof.dll according to regression tests committed in r43368, by Alexander Wurzinger <lohnegrim@gmx.net>.
- Minor bugfix by me.
See issue #3381 for more details.

svn path=/trunk/; revision=43370
2009-10-11 09:54:41 +00:00
Johannes Anderwald aacb520dac - Store KSPROPERTY_SET in Irp when using KsPropertyHandler
- Fix a bug in KsPinDataIntersection

svn path=/trunk/; revision=43369
2009-10-11 09:49:10 +00:00
Aleksey Bragin 8512a881b0 [powrprof]
- Add more powrprof.dll tests, by Alexander Wurzinger <lohnegrim@gmx.net>.
- Some cleanup and code typo fixes by me.
See issue #3381 for more details.

svn path=/trunk/; revision=43368
2009-10-11 09:49:09 +00:00
Dmitry Gorbachev 8f4f21679d Fix English resource file. Patch by Joshua Rice, bug #4763.
svn path=/trunk/; revision=43367
2009-10-11 00:09:41 +00:00
James Tabor 25d4d83e6b - Fix exception. Spotted by Stefan Ginsberg.
svn path=/trunk/; revision=43366
2009-10-10 21:51:24 +00:00
Stefan Ginsberg ca6fbc0be9 KD64 Compatibility Bringup:
- Add some missing control set structures to windbgkd.h from Singularity and fix some x86 assumptions.
- Use CopyExceptionRecord instead of ExceptionRecord32To64 as we can just copy directly on 64-bit.
- Add KeGetTrapFrameInterruptState macro to retrieve the interrupt state (ON/OFF) from a trap frame.
- Use macros for retrieving certain parameters from CONTEXT in KdpTrap instead of hardcoding x86.
- Add kdsup.c for x86/AMD64/ARM and move certain architecture dependent routines in here.
- Stub out MSR, Bus and I/O Space read/write support and use KdpSys* for Control Space as it is architecture dependent. Also stub out low memory check (for x86 PAE).
- Fix assumptions in the break point code that a breakpoint is 1 byte long (it is 4 byte on ARM, for example). Define the type required to contain a breakpoint per architecture and use KD_BREAKPOINT_SIZE when copying.
- KD supports 32 breakpoints, not 20.
- Be portable when initializing members of the KD version and debugger data block.
- Pointers in the debugger data block should not be sign extended as done in the version block -- fix KdInitSystem and KdUpdateDataBlock that did this.
- Fix some comments that were x86 specific and use more generic terms instead.
- Fix a cast in KeBugCheckWithTf.

svn path=/trunk/; revision=43365
2009-10-10 19:27:54 +00:00
Aleksey Bragin 3f7bed2eae [ntoskrnl]
- Reimplement HalpCalibrateStallExecution which was removed in r24964. Real Windows uses a different algorithm, however existing one seems to work acceptably. This patch is critical for devices support on real hardware. The only downside is that uniata initialization takes a substantial amount of time now, this is going to be investigated. Patch by Daniel Zimmermann.
See issue #4600 for more details.

svn path=/trunk/; revision=43364
2009-10-10 18:22:56 +00:00
Aleksey Bragin fcd17ff4fb - Implement RtlpDidUnicodeToOemWork to check for unmapped characters. Based on a patch by Daniel Zimmerman.
See issue #4548 for more details.

svn path=/trunk/; revision=43363
2009-10-10 13:22:41 +00:00
Aleksey Bragin 1ac07cde09 [freeldr]
Andrew Steinborn <asteinborn78@gmail.com>
- Display error message when boot sector reading fails.
See issue #4641 for more details.

svn path=/trunk/; revision=43362
2009-10-10 13:05:02 +00:00
Aleksey Bragin e93efe68d0 - Mark wtsapi32 as forked.
svn path=/trunk/; revision=43361
2009-10-10 12:56:02 +00:00
Aleksey Bragin dfa73d9163 [wtsapi32]
Andrey Ivanov <andrey.v.ivanov@gmail.com>
- Implement WTSEnumerateProcessesA and WTSEnumerateProcessesW.
See issue #4658 for more details.

svn path=/trunk/; revision=43360
2009-10-10 12:55:34 +00:00
Aleksey Bragin d605c0c30a [fastfat_new]
- Actually add short and long names to splay tree when setting up FCB's names.

svn path=/trunk/; revision=43359
2009-10-10 12:40:20 +00:00
Aleksey Bragin 0bf0c0acf7 [fastfat_new]
- Add two functions for adding/removing name links from splay trees.
- Cleanup Fati8dot3ToString function from testing code.
- Add FCB states, so far just two: has names, and has unicode name.

svn path=/trunk/; revision=43358
2009-10-10 12:34:02 +00:00
Aleksey Bragin c6895f22d4 Alexander Yastrebov <menone7@gmail.com>
- SetDllDirectory should add a directory to the search path used to locate DLLs for the application.

See issue #4820 for more details.

svn path=/trunk/; revision=43357
2009-10-10 09:16:34 +00:00
Aleksey Bragin 2e0924d6af [fastfat_new]
- Manually fetch a short name entry in FatSetFcbNames and process it.
- Get a long name and process it too (though right now there is problem, FullFAT returns a short name instead of a true long name).
- Silence debug prints in FatiRead.

svn path=/trunk/; revision=43356
2009-10-10 09:13:39 +00:00
Cameron Gutman 25b4b890e3 - Small fix for 43354
- Only pass the physical address if we have it

svn path=/trunk/; revision=43355
2009-10-10 08:26:20 +00:00
Cameron Gutman 05c582bcbd - Fix timeout values
- Don't reply to ARP requests unless they are address to us
 - We now reset the NCE timeout if we receive a packet from the neighbor
 - Fixes ARP flooding (bug 4879)

svn path=/trunk/; revision=43354
2009-10-10 07:43:39 +00:00
James Tabor 6e2700c9e9 - Do not test for IMM start up from client info, instead do not attach to system threads. Thanks Tommy Ward.
svn path=/trunk/; revision=43353
2009-10-10 05:15:43 +00:00
James Tabor 2a76c1a5a0 - [Win32k] Implement AttachThreadInput, not yet connected to the thread message queue, update related.
- See http://www.codeproject.com/KB/cpp/onscreenkeyboard.aspx for test program.

svn path=/trunk/; revision=43352
2009-10-10 04:40:36 +00:00
Johannes Anderwald 2be81fb4fb - Map STATUS_NOT_FOUND to ERROR_NOT_FOUND
svn path=/trunk/; revision=43351
2009-10-10 03:45:57 +00:00
Cameron Gutman 85a6f2a081 - Specify the interface index so the route won't get added to interface 0 (loopback)
- Warn if something tries to add a route to the loopback adapter
 - Fixes routing issues some people were having

svn path=/trunk/; revision=43350
2009-10-10 02:04:13 +00:00
Michael Martin 3ff3c916b3 - KeyboardThreadMain: Set RepeatRate to 1 vice 0. Fixes text input in OpenOffice Writer.
svn path=/trunk/; revision=43349
2009-10-10 01:13:17 +00:00
Timo Kreuzer 543c259ae7 Fix SECURITY_DESCRIPTOR_RELATIVE that I broke, spotted by Stefan
svn path=/trunk/; revision=43348
2009-10-09 22:52:39 +00:00
Gregor Schneider ce47d4b62f - Various resource fixes (unclosed files, unchecked memory allocations, missing destructor, not freed memory)
- Patch by Russell with some modifications by myself
See issue #4662 for more details.

svn path=/trunk/; revision=43347
2009-10-09 21:02:44 +00:00
Stefan Ginsberg ef0f96e223 - Hey, you know what? Dbg/NtQueryDebugFilterState returns TRUE/FALSE after all.
svn path=/trunk/; revision=43346
2009-10-09 19:54:07 +00:00
Gregor Schneider 386bd6ace8 Correct MPEG1/2 video decoder filename, patch by Russell
See issue #4878 for more details.

svn path=/trunk/; revision=43345
2009-10-09 18:45:24 +00:00
Johannes Anderwald 0a8a0cd78d [KS]
- Fix a bug when canceling irps

svn path=/trunk/; revision=43344
2009-10-09 16:48:41 +00:00
Aleksey Bragin d64568f5ff [fastfat_new]
- Add two names to an FCB - a short name, and a long name.
- Start implementing FatSetFcbNames, currently deals with short names only.
- Implement Fati8dot3ToString, with most of the code actually #if0ed, because FullFAT already does this conversion.

svn path=/trunk/; revision=43343
2009-10-09 14:20:33 +00:00
Johannes Anderwald 415b1f1591 [PORTLCS]
- KSCATEGORY_AUDIO should be the first device category so that wdmaud can correctly assign virtual device ids

svn path=/trunk/; revision=43342
2009-10-09 12:36:26 +00:00
Stefan Ginsberg de4df47aec - Fix DbgLoadImageSymbols -- it doesn't return anything.
- Fix DbgQueryDebugFilterState -- it returns NTSTATUS, not BOOLEAN! Also fix the callers that depended on this.

svn path=/trunk/; revision=43341
2009-10-09 11:51:07 +00:00
Stefan Ginsberg d3d2be7aa1 Actually define STATUS_ASSERTION_FAILURE (missed in 43291).
svn path=/trunk/; revision=43340
2009-10-09 11:27:41 +00:00
Cameron Gutman 1f7271bf91 - Fix some typos from my last commit
- Remove more hacks from iphlpapi

svn path=/trunk/; revision=43339
2009-10-09 05:18:35 +00:00
Cameron Gutman a3ab545150 - Rewrite IOCTL_TCP_QUERY_INFORMATION_EX/IOCTL_TCP_SET_INFORMATION_EX handling
- Remove duplicate defines for the same IOCTL
 - Remove unneeded code
 - Fix a completely wrong implementation of ENTITY_TYPE_ID
 - Perform parameter checking
 - Remove several hacks in iphlpapi that worked around bugs in the previous implementation
 - We now support retrieving interface-specific routing tables and ARP tables

svn path=/trunk/; revision=43338
2009-10-09 02:40:38 +00:00
Stefan Ginsberg 8a1b2b51be - Stub out ExpSystemErrorHandler more properly.
svn path=/trunk/; revision=43337
2009-10-08 20:06:37 +00:00
Dmitry Chapyshev 7ae4b30b8e - Partially revert r42993 for imagelist
See issue #4304 for more details.

svn path=/trunk/; revision=43336
2009-10-08 11:18:34 +00:00
Johannes Anderwald e7e971167b - When enumerating controls, cControls *tells* the number of controls not *cConnections*. Fix a crash in XP sndvol32
- Clear the entire struct, not just part of it
- WdmAudMixerCapabilities just provides the index of a device, not its handle. Fixes displaying of duplicate mixer name in sndvol32
- Verify that a mixer line exists

svn path=/trunk/; revision=43335
2009-10-08 07:25:26 +00:00
Stefan Ginsberg 60a2ad65bb MiReserveSystemPtes: Don't assert that allocation succeeded, just warn if we failed. All callers of the function handle allocation failure properly.
svn path=/trunk/; revision=43334
2009-10-07 20:14:01 +00:00
Dmitry Gorbachev c64b032e93 Fix GCC 4.1.3 warning.
svn path=/trunk/; revision=43333
2009-10-07 20:04:17 +00:00
Dmitry Gorbachev 9ac33d6fbe Happy testing.
svn path=/trunk/; revision=43332
2009-10-07 19:58:15 +00:00
Dmitry Gorbachev 07dc415f89 Fix logging to a file.
In spite of limitations, it remains the only way to obtain desired logs for some people.

svn path=/trunk/; revision=43331
2009-10-07 19:57:40 +00:00
Dmitry Gorbachev ffbb3fd184 Delete unused copy of GPL.
svn path=/trunk/; revision=43330
2009-10-07 19:56:35 +00:00
Dmitry Gorbachev 3da2eea23c Fix FreeLDR bug #4877. Patch by Gabriel.
svn path=/trunk/; revision=43329
2009-10-07 19:55:44 +00:00
Matthias Kupfer 85a206d9b2 - replace dropshadow from mouse settings by cursor shadow
- bind cursor shadow to registry via sysparams
- rename variable names and identifiers

svn path=/trunk/; revision=43328
2009-10-07 19:42:02 +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
Timo Kreuzer cfff690aae Add test for NtUserSystemParametersInfo case SPI_SETMOUSECLICKLOCK
svn path=/trunk/; revision=43326
2009-10-07 16:58:53 +00:00
Matthias Kupfer 4da1dafa69 - some preparation for ClickLock implementation
svn path=/trunk/; revision=43325
2009-10-07 14:25:52 +00:00
Aleksey Bragin f637e66227 [fastfat_new]
- Implement FatiQueryNameInformation. It doesn't work right now due to missing file names in the FCB record.
- Make a stub for FatSetFcbNames.

svn path=/trunk/; revision=43324
2009-10-07 12:21:13 +00:00
Matthias Kupfer 0b89e7b0eb - load UserPreferencesMask from registry
svn path=/trunk/; revision=43323
2009-10-07 11:17:11 +00:00
Aleksey Bragin c66ee08233 [fastfat_new]
- Lower importance of some debug messages.
- Add FCB locking routines.
- Lock VCB and FCB in QueryInformation.

svn path=/trunk/; revision=43322
2009-10-07 10:45:45 +00:00
Johannes Anderwald 5cb9dffd80 [WDMAUD]
- Use KsProbeStreamIrp in wdmaud to probe user buffers
- Remove a few hacks which were required to pass down irps to portcls
[PORTCLS]
- Check if there is an automation table
[SYSAUDIO]
- Release file object of pin to prevent reference leak
--
- Audio stack now reacts faster as it now longer copies audio buffers in kernel mode and instead locks down the user buffers. In addition it uses less memory to do the same work.


svn path=/trunk/; revision=43321
2009-10-07 10:41:34 +00:00