Commit graph

47087 commits

Author SHA1 Message Date
Amine Khaldi 02d8321d44 * Update spec2def.
svn path=/branches/GSoC_2011/ThemesSupport/; revision=52671
2011-07-13 12:00:42 +00:00
Amine Khaldi add30b1c69 * Sync with recent trunk (r52669).
svn path=/branches/GSoC_2011/ThemesSupport/; revision=52670
2011-07-13 11:58:32 +00:00
Giannis Adamopoulos 3a7d41318a remove test command
svn path=/branches/GSoC_2011/ThemesSupport/; revision=52666
2011-07-12 21:27:46 +00:00
Giannis Adamopoulos eb23bde458 [apihooksrv]
- Commit a test utility that can install user api hooks and give for the first time real themes support. This is a temporary test program till the same functionality is integrated to winlogon. To use it someone has to activate themes with themecfg and then run "apihook uxtheme.dll". Also note that it is possible to use this tool in windows for testing purposes

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52665
2011-07-12 21:25:51 +00:00
Giannis Adamopoulos ab880775f5 [themecfg]
- Add a test utility called themecfg that can configure themes. This is a small part of winecfg from wine. With this utility we can test themes support now. In the future this functionality will become part of desk.cpl

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52664
2011-07-12 21:09:43 +00:00
Giannis Adamopoulos 901481628b [uxtheme]
- Fix build

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52662
2011-07-12 19:45:49 +00:00
Giannis Adamopoulos cf8d09b13c [win32k]
- Call UserUnregisterUserApiHook from the process cleanup routine if the process has registered the user api hook

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52652
2011-07-12 09:24:16 +00:00
Giannis Adamopoulos aeebfa7e0e [user32]
- Implement UnregisterUserApiHook
- Fix a warning

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52651
2011-07-12 09:14:24 +00:00
Giannis Adamopoulos 7950b8eb63 [win32k]
- Implement NtUserRegisterUserApiHook and NtUserUnregisterUserApiHook

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52650
2011-07-12 08:43:43 +00:00
Giannis Adamopoulos 723267ac2a [win32k]
- Implement co_IntClientLoadLibrary that calls ClientLoadLibrary in user32

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52649
2011-07-12 08:37:40 +00:00
Giannis Adamopoulos 54ac0f497c [user32]
- Convert LOADUSERAPIHOOK macro to an inline function
- Implement ClientLoadLibrary callback from win32k 

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52648
2011-07-12 08:34:00 +00:00
Giannis Adamopoulos 628b870071 [uxtheme]
- Implement drawing non client scrollbars. This code is heavily based on code from wine and modified properly to use themes

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52645
2011-07-11 22:29:33 +00:00
Amine Khaldi 9fa710c813 * Sync with recent trunk (r52637).
svn path=/branches/GSoC_2011/ThemesSupport/; revision=52643
2011-07-11 19:40:43 +00:00
Giannis Adamopoulos 7c84d922e5 [uxtheme]
- Fix build

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52640
2011-07-11 18:23:44 +00:00
Giannis Adamopoulos 012c87272c [uxtheme]
- After doing any drawing operation for the non client area, restore the previously opened theme. Fixes GetWindowTheme

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52639
2011-07-11 18:17:11 +00:00
Giannis Adamopoulos 832f3db5a1 [uxtheme]
- Really fix a comment

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52636
2011-07-11 14:18:36 +00:00
Giannis Adamopoulos b2f3b73e33 [uxtheme]
- Fix some comments

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52635
2011-07-11 13:53:58 +00:00
Giannis Adamopoulos 1e6bee248a [uxtheme]
- Do not close hKey in query_reg_path. Noticed while testing our uxtheme in windows. Should be sent to wine

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52634
2011-07-11 13:38:05 +00:00
Giannis Adamopoulos 535a684169 [uxtheme]
- Call UXTHEME_InitSystem when user api hooks are installed

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52633
2011-07-11 13:28:20 +00:00
Giannis Adamopoulos 17344c6dc6 [uxtheme]
- Move some definitions to a header file

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52632
2011-07-11 13:17:39 +00:00
Giannis Adamopoulos 7d376ed435 [win32k]
-Add a hack to GreStretchBltMask to return TRUE when a dimension is 0. After some investigation it seems that windows returns TRUE in such a case but couldn't investigate more if this change is really correct. This hack is needed because a drawing operation in uxtheme is aborted when StretchBlt returns FALSE

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52631
2011-07-11 12:59:21 +00:00
Art Yerkes 2ebb206d88 [CMAKE] Fix my mistake returning the original space, rather than the mapped area.
svn path=/trunk/; revision=52629
2011-07-11 07:11:12 +00:00
Timo Kreuzer 93a416ddfd [NTOSKRNL]
Implement the "SLIST hack". It checks whether the access to the Next member of the first list item of an iSList caused the exception, this can happen, when a concurrent thread pops the first entry and frees its memory between the point where the address of the entry is loaded and the access to it. This is done before the call to MmAccessFault to handle the theoretical scenario of a guard page exception being triggered by the fault, which we don't want to be handled.
Currently only kernel mode is handled.

svn path=/trunk/; revision=52628
2011-07-11 03:36:29 +00:00
Cameron Gutman 8aa496d875 [OSKITTCP]
- Fix a crash that occurs during BitTorrent downloads
- The official BitTorrent client works now

svn path=/trunk/; revision=52627
2011-07-11 02:44:32 +00:00
Alex Ionescu 7ef2dcbe22 [NTDLL]: Always compile your code before comitting, like my cat used to say.
svn path=/trunk/; revision=52626
2011-07-11 01:22:01 +00:00
Alex Ionescu 043ba4e228 [NTDLL]: Reimplement RtlGetCurrentDirectory_U... I couldn't even understand what the old version was doing. This one is at least commented and makes more sense.
svn path=/trunk/; revision=52625
2011-07-11 01:13:34 +00:00
Alex Ionescu 67f44266b0 [RTL]: RtlDetermineDosPathNameType_U Path is not optional. Checked build ASSERTs if not present. Also, \\? is valid, not only \\., so this should fix a bunch of incorrect path determinations. Aren't there supposed to be unit tests for these things?!
svn path=/trunk/; revision=52624
2011-07-11 00:47:44 +00:00
Alex Ionescu 2507c181d0 [RTL]: Clarify what RtlGetLongestNtPathLength returns instead of using "+9" as a magic constant.
svn path=/trunk/; revision=52623
2011-07-11 00:38:34 +00:00
Alex Ionescu 642d0d6141 [NTDLL] Merge LdrpResolveFullName and LdrpSearchPath and LdrpAllocateUnicodeString from the LDR Rewrite branch. Not actually used yet since they use Rtl APIs that ReactOS does not implement. Guess what the next commits are going to be about.
svn path=/trunk/; revision=52622
2011-07-11 00:25:26 +00:00
Alex Ionescu 1b775b8d8a [NTDLL]: Cleanup and half-fix LdrpCheckForLoadedDll, including adding comments for where it's broken. This uses RtlImageNtHeaderEx with much stringent checks as well.
svn path=/trunk/; revision=52621
2011-07-11 00:12:33 +00:00
Alex Ionescu f1c4df527e [RTL]: One day, Microsoft is going to stop using flags that are negatives. Fix boot/etc.
svn path=/trunk/; revision=52620
2011-07-11 00:10:27 +00:00
Rafal Harabien f9f36696f9 [WIN32CSR]
- Fix CSR hard error messages. Parameters are now converted to ANSI string which are expected by message format string.

svn path=/trunk/; revision=52619
2011-07-10 22:40:43 +00:00
Alex Ionescu c93b41ab3f [NDK]: Add missing RtlImageNtHeaderEx flags.
[RTL]: Implement RtlImageNtHeaderEx and make RtlImageNtHeader call it. This will result in much stricter (and correct) PE loading by default, and enable a flag which can do even stricter checks.
[NTDLL]: Export RtlImageNtHeaderEx (maybe NTOS should export it too, not sure).

svn path=/trunk/; revision=52618
2011-07-10 21:55:55 +00:00
Rafal Harabien d730393e07 - Add more NT status messages. Few of them are used by new LDR. Contains patch by Thomas Faber.
svn path=/trunk/; revision=52617
2011-07-10 19:47:45 +00:00
Jérôme Gardou c34fe70bfe [NTOSKRNL/MM]
- The initial region does not necessarily begins with the asked address, calculate remaining space acccordingly.

svn path=/trunk/; revision=52616
2011-07-10 19:24:49 +00:00
Cameron Gutman a149b1c33b [RTL]
- Revert r52612
- It came before its time ;)

svn path=/trunk/; revision=52615
2011-07-10 17:46:27 +00:00
Jérôme Gardou 0cb80213de [NTOSKRNL/MM]
- fix broken logic
- simplify calculation of remainig space to alter
- call ExFreePoolWithTag instead of ExFreePool
- return error on failure

svn path=/trunk/; revision=52614
2011-07-10 17:21:38 +00:00
Timo Kreuzer d28438f515 [NTDLL]
add some stubs for amd64

svn path=/trunk/; revision=52613
2011-07-10 16:43:03 +00:00
Cameron Gutman bee9140898 [RTL]
- Enable the proper implementation of RtlActivateActivationContextUnsafeFast

svn path=/trunk/; revision=52612
2011-07-10 16:33:23 +00:00
Cameron Gutman 6ef48aa4b4 [NTDLL]
- Fix memory corruption by reverting part of r52603

svn path=/trunk/; revision=52611
2011-07-10 16:25:42 +00:00
Rafal Harabien ce8c949828 [EVENTLOG]
- Fix MSVC warnings

svn path=/trunk/; revision=52610
2011-07-10 15:39:32 +00:00
Sylvain Petreolle 0685c73a53 [SFC_OS]
Implement SfcFileException, required by VBox Guest additions to install 3D support.

svn path=/trunk/; revision=52609
2011-07-10 15:05:14 +00:00
Rafal Harabien b509f3318b [NTDLL/LDR] - Fix one more USHORT and -1 comparison. Patch by Thomas Faber
svn path=/trunk/; revision=52608
2011-07-10 15:02:00 +00:00
Alex Ionescu ca4263fbf8 [NTDLL]: Fix parsing and buffer overflow in LdrpLoadDll. Add more debug prints, and add some missing code (commented out) for later.
svn path=/trunk/; revision=52607
2011-07-10 13:51:40 +00:00
Rafal Harabien 12bc8ad634 [NTDLL/LDR]
- Fix CMake build
- Minor improvements
Path by Thomas Faber

svn path=/trunk/; revision=52606
2011-07-10 13:44:19 +00:00
Jérôme Gardou ef65e8cc09 [AFD]
- fix MSVC build

svn path=/trunk/; revision=52605
2011-07-10 13:28:47 +00:00
Alex Ionescu f23c2d83be [NTDLL]: Actually delete the file.
svn path=/trunk/; revision=52604
2011-07-10 13:23:54 +00:00
Alex Ionescu 5a7963b7ba [NTDLL]: More fixes to the PE parsing code.
[NTDLL]: Move and fix LdrUnloadDll to ldrapi.c
[NTDLL]: Remove yet another cruft file. 

svn path=/trunk/; revision=52603
2011-07-10 13:23:19 +00:00
Rafal Harabien cc5bf5ecd5 [NTDLL/LDR]
- Don't use -1 for USHORT LDR_DATA_TABLE_ENTRY::LoadCount. When comparing ((USHORT)-1) == 0xFFFF vs (int)-1 it ends in comparison 0xFFFF vs 0xFFFFFFFF with is wrong. Fixes shutdown from shell
See issue #6345 for more details.

svn path=/trunk/; revision=52601
2011-07-10 11:49:52 +00:00
Cameron Gutman 38990db5fd [AFD]
- Fix broken TDI address functions which were causing subtle memory corruptions, wasted memory, and incorrect or uninitialized values of the address length field
- Remove some buggy code that wasn't used anywhere
- General refactoring to reduce code duplication
- Handle an invalid address type properly

svn path=/trunk/; revision=52600
2011-07-10 08:25:31 +00:00