Commit graph

44143 commits

Author SHA1 Message Date
Johannes Anderwald dc4a3fbbe2 [DDK]
- Add dmusprop header
- Add IMP_PowerNotify macro to portcls.h
- Add IID_IMusicTechnology guid to portcls.h
- Add GTI_XXX macros to portcls.h
- Remove broken definitions of KSPROPSETID_Synth, KSPROPSETID_Synth_Dls. They are defined in dmusprop.h
- Add KSDATARANGE_MUSIC to ksmedia.h
- Add KSMUSIC_TECHNOLOGY, KSDATAFORMAT_SUBTYPE_MIDI_BUS, KSAUDFNAME_MIDI, KSNODETYPE_SYNTHESIZER to ksmedia.h

svn path=/trunk/; revision=49388
2010-11-01 00:17:07 +00:00
James Tabor 93b73bb489 [Win32k] - Lock thread when removing hooks.
svn path=/trunk/; revision=49386
2010-10-31 23:42:37 +00:00
Johannes Anderwald bafe662783 [MMIXER]
- Enumerate MIDI devices and provide all necessary functions to deal with them
[WDMAUD_KERNEL]
- Implement support functions which call the provided functions of mmixer library
- Fix a bug in device interface request ioctl handler
- Midi devices should now be visible, capabilities be retrieved and opened / close
- Writing data is not yet supported

svn path=/trunk/; revision=49376
2010-10-31 14:34:41 +00:00
Johannes Anderwald 5dd7b0178c [MMEBUDDY]
- Getting device capabilities requires the unicode version of the structure
- Implement MIDM_OPEN, MIDM_CLOSE, MIDM_START, MIDM_STOP
- Implement MODM_OPEN, MODM_CLOSE
- Refactor MmeOpenWaveDevice into MmeOpenDevice add add support MIXER_DEVICE_TYPE, MIDI_IN_DEVICE_TYPE, MIDI_OUT_DEVICE_TYPE
- Refactor MmeCloseWaveDeivce into MmeCloseDevice and add support MIXER_DEVICE_TYPE, MIDI_IN_DEVICE_TYPE, MIDI_OUT_DEVICE_TYPE

svn path=/trunk/; revision=49374
2010-10-31 13:20:11 +00:00
Johannes Anderwald c2e15397cc [SHELL32]
- Enable code as we support now IOCTL_DISK_GET_LENGTH_INFO
- IOCTL_DISK_GET_LENGTH_INFO implemented in 49369

svn path=/trunk/; revision=49372
2010-10-31 10:09:55 +00:00
Eric Kohl 18ab208eeb [SERVICES]
Revert r49366.

svn path=/trunk/; revision=49371
2010-10-31 10:00:21 +00:00
Pierre Schweitzer 3b08424abb [DISK]
Implemented support for IOCTL_DISK_GET_LENGTH_INFO

svn path=/trunk/; revision=49369
2010-10-31 08:13:33 +00:00
Johannes Anderwald 0fefcc022b [PORTCLS]
- Revert 49356
- This change breaks portcls on WinXP

svn path=/trunk/; revision=49368
2010-10-30 23:17:34 +00:00
Eric Kohl 1917d1c595 Merge ScmControlService() and ScmSendStartCommand() into ScmSendServiceCommand().
svn path=/trunk/; revision=49366
2010-10-30 19:25:23 +00:00
Cameron Gutman d4bd38df22 [REGEDIT]
- Fix a bug causing registry entries with names containing a backslash to be displayed incorrectly

svn path=/trunk/; revision=49364
2010-10-30 17:41:51 +00:00
Timo Kreuzer a4b48e3576 [WIN32K]
Fix a bug in InitVideo: when looping through the adapters, reinitialize the cbValue before querying the registry.
Also handle failure.

svn path=/trunk/; revision=49360
2010-10-30 16:34:52 +00:00
Johannes Anderwald 951c6f7fa3 [PORTCLS]
- Do not leak KSSTREAM_HEADER (48 bytes) for each IOCTL_KS_WRITE_STREAM / IOCTL_KS_READ_STREAM request
- Audio stack should now leak less memory

svn path=/trunk/; revision=49356
2010-10-30 15:40:54 +00:00
Johannes Anderwald 92563c84b9 [WDMAUD_KERNEL]
- Unlock locked pages before freeing the mdl
- Fixes assertion hit 'Assertion 'OldRefCount < 2500' failed at ARM³::MDLSUP line 1008'
- Fixes playback / recording of longer audio files

svn path=/trunk/; revision=49355
2010-10-30 15:15:22 +00:00
Sylvain Petreolle 988a0bb06f [TIMEDATE]
Fix French translation.

svn path=/trunk/; revision=49343
2010-10-29 21:16:05 +00:00
Gregor Schneider 2b2307cae4 [CRT] Remove empty file
svn path=/trunk/; revision=49342
2010-10-29 18:18:54 +00:00
Johannes Anderwald 8de36e1611 - Remove obsolete code
- Thanks to Amine

svn path=/trunk/; revision=49340
2010-10-29 13:47:19 +00:00
Timo Kreuzer 788c89ca8b [WIN32K]
Fix possible use of uninitialized variable. Spotted by Amine.


svn path=/trunk/; revision=49338
2010-10-29 09:31:54 +00:00
Johannes Anderwald 363873b407 [PORTCLS]
- Fix stupid bug which lead to access an invalid buffer.
- dedicated to igorko

svn path=/trunk/; revision=49337
2010-10-29 01:09:13 +00:00
Johannes Anderwald 4995df02c5 - Fix mdl probe access rights
svn path=/trunk/; revision=49336
2010-10-29 00:41:06 +00:00
Johannes Anderwald ed04f3bb51 - remove rtl dependency
- thanks to mephisto!

svn path=/trunk/; revision=49335
2010-10-28 23:33:50 +00:00
Aleksey Bragin 0b6aeda1ed Roel Messiant:
- Heap corruption fixes.

svn path=/trunk/; revision=49332
2010-10-28 22:08:18 +00:00
Giannis Adamopoulos 7f008d8e60 [win32k]
message.c:
- Don't use RETURN macro
- Correctly use SEH. Use _SEH2_YIELD

svn path=/trunk/; revision=49331
2010-10-28 17:14:29 +00:00
Timo Kreuzer a84fd28122 [FORMATTING]
- Replace big file header with small header
- apply consistent indentation of 4 spaces

svn path=/trunk/; revision=49324
2010-10-28 08:15:41 +00:00
Timo Kreuzer f69973e1e6 [NTOSKRNL]
- Add IoWMIDeviceObjectToProviderId and IoIs32bitProcess stubs for 64bit builds
- Comment out some deprecated amd64 code
- Add MmProtectToValue
- Fix a typo

svn path=/trunk/; revision=49322
2010-10-27 22:58:23 +00:00
Johannes Anderwald 28b8adb2ee - remove debug prints
- dedicated to christoph

svn path=/trunk/; revision=49316
2010-10-27 21:12:44 +00:00
Timo Kreuzer 6e7b4722d6 [CLASSPNP]
Fix a typo in the spec file

svn path=/trunk/; revision=49314
2010-10-27 20:40:59 +00:00
Giannis Adamopoulos 97a11cb468 [FORMATTING]
- Fix formatting in message.c

svn path=/trunk/; revision=49313
2010-10-27 20:31:17 +00:00
Timo Kreuzer 8e45fe3079 [basetsd.h]
add POINTER_SIGNED, POINTER_UNSIGNED, SPOINTER_32, UPOINTER_32

svn path=/trunk/; revision=49312
2010-10-27 20:14:15 +00:00
Timo Kreuzer 41d4321928 [CLASSPNP]
Convert to spec

svn path=/trunk/; revision=49311
2010-10-27 20:13:06 +00:00
Timo Kreuzer 1c363f5fbe [WIN32K]
Improve the code to enumerate monitors.
- Don't use custom MIN / MAX / ABS macros
- Calculate distance by r^2 = x^2 + y^2
- Use RECTL_bIntersectRect instead of code duplication
- Fix possible NULL pointer dereference
- pass bottom-right exclusive rect to IntGetMonitorsFromRect from NtUserMonitorFromPoint
- Don't handle MONITOR_DEFAULTTOPRIMARY and MONITOR_DEFAULTTONEAREST twice
- Use unsigned variables for unsigned values
- Don't check the result of a UINT returning function for < 0
- Improve readability

svn path=/trunk/; revision=49310
2010-10-27 17:16:11 +00:00
Timo Kreuzer 72f80d0c80 [WIN32K]
Fix possible NULL pointer dereferences. Spotted by Amine Khaldi.

svn path=/trunk/; revision=49309
2010-10-27 17:08:40 +00:00
Timo Kreuzer 7dbcf100d3 [FORMATTING]
- Apply consistent indentation of 4 spaces and ansi style formatting.
- Remove the long GPL header

svn path=/trunk/; revision=49308
2010-10-27 15:59:48 +00:00
Timo Kreuzer 08810169e7 [WIN32K]
Fix possible NULL pointer dereference. Spotted by Amine Khaldi.

svn path=/trunk/; revision=49303
2010-10-27 12:51:32 +00:00
Aleksey Bragin 58781041d7 [NTOS/MM]
- Don't access pfn database directly, there is a function for this. Thanks sir_richard.

svn path=/trunk/; revision=49302
2010-10-27 09:58:18 +00:00
James Tabor f605d2c596 [Win32k|User32]
- Fix for DosBOX. See bug 5670 for more details. Added more data copies in user32 hook.c.

svn path=/trunk/; revision=49301
2010-10-27 01:56:56 +00:00
James Tabor 851c1c1742 [User32] - Fix an over site and copy the return data back to the kernel.
svn path=/trunk/; revision=49300
2010-10-27 00:03:41 +00:00
Aleksey Bragin 07cd3fc8d0 [NTOS/MM]
- Don't lie about page protection in MiQueryAddressState. Fixes PDFCreator-alike bugs.
See issue #5627 for more details.

svn path=/trunk/; revision=49296
2010-10-26 21:34:52 +00:00
Johannes Anderwald 4434b6bf69 [PORTCLS]
- Disable driver specific filter / pin / node property handlers until bug leading to crashes has been found

svn path=/trunk/; revision=49280
2010-10-26 15:19:14 +00:00
James Tabor 4588fc7dc5 [Win32k|User32]
- Add fix for KsStudio for Olaf Siejka and debug prints for WH_KEYBOARD_LL. See bug 5670 for more details.

svn path=/trunk/; revision=49278
2010-10-26 06:24:50 +00:00
Aleksey Bragin f46ca6e613 [NTOS/MM]
- Handle various special cases in NtQueryVirtualMemory (e.g. querying illegal virtual addresses, shared memory area, etc). Example of an app doing this - OllyDbg.

svn path=/trunk/; revision=49277
2010-10-25 20:50:45 +00:00
Daniel Reimer 71ab4ed50f Update rapps database.
svn path=/trunk/; revision=49276
2010-10-25 20:08:50 +00:00
Timo Kreuzer 684c3d3791 [YAROTOWS] Reintegrate the branch. For a brighter future.
Main features:
- Implement LDEVOBJ api. Responsible for loading dlls (display drivers, font drivers, keyboard layout, etc), replacing code in different locations.
- Implement PDEVOBJ api. A PDEVOBJ represents a physical device and is the core component for handling multiple display devices.
- Rewrite device locking. The new method was neccessary to allow dynamic mode switching.
- Implement support for enumerating display devices and settings.
- Implement dynamic mode switching.
- Implement a number of Eng mapping functions.
- Rewrite Eng level surface handling for cleaner code and better compatability.
- Rewrite parts of the DIB handling code.
- Rewrite DC creation and deletion. Deletion and cleanup is now completely callback based. Now we don't leak the DC objects when terminating a process, like we did before.
- Improve the XLATE and BRUSH code, removing several old hacks.
- Improve icon code.

Thanks to Jerome Gardou, Kamil Hornicek and everyone helping.

svn path=/trunk/; revision=49275
2010-10-25 17:36:27 +00:00
Timo Kreuzer 7a2f3e30fc Merge trunk head (r49270)
svn path=/branches/reactos-yarotows/; revision=49272
2010-10-25 15:26:06 +00:00
Timo Kreuzer 8a28b85f48 [WIN32K]
Silence and improve a DPRINT

svn path=/branches/reactos-yarotows/; revision=49271
2010-10-25 15:05:33 +00:00
James Tabor f5258132f4 [Win32k]
- Do not override WH_JOURNALPLAYBACK results if zero.

svn path=/trunk/; revision=49270
2010-10-25 02:51:09 +00:00
James Tabor 4f65bd047d [Win32k]
- Fix typos found by Mephisto on IRC, also add some debug prints in SetWindowsHookEx to see what hooks are installed. 

svn path=/trunk/; revision=49269
2010-10-25 01:37:14 +00:00
James Tabor ba351010ec [User32]
- One more leftover to add. Now we test for both Local and Global hooks in user32. This will force any message sent to win32k if there are any Global hookers so we loose in performance. We need to rethink our usage of these Global hookers in our code.

svn path=/trunk/; revision=49268
2010-10-25 00:15:35 +00:00
Kamil Hornicek a5a3c1563c [WIN32K]
Simplify the RLE hack and avoid code duplication.
Bail out of UserEnumDisplaySettings early in case invalid ModeNum was requested.
Use default BPP value in UserChangeDisplaySettings if DM_BITSPERPEL is not set. Partially fixes "fullscreen issue" as described on the yarotows wiki page.
Remove some unused variables + misc cleanup.

svn path=/branches/reactos-yarotows/; revision=49267
2010-10-24 23:40:23 +00:00
Timo Kreuzer c5880b6a1c [WIN32K]
- Rewrite InitVideo
- Move registry functions to the appropriate file
- Silence some DPRINTs

svn path=/branches/reactos-yarotows/; revision=49266
2010-10-24 23:32:18 +00:00
Kamil Hornicek a2e78394d2 [WIN32K]
Set proper flags and masks in BuildDIBPalette. Set PAL_BGR for 24/32 BPP in AllocPalette. Rename Mode to Flags to better reflect its usage. Fixes "red icons" and dibtest.

svn path=/branches/reactos-yarotows/; revision=49265
2010-10-24 22:52:50 +00:00