reactos.git
9 years ago[WIN32K]
Hermès Bélusca-Maïto [Tue, 23 Dec 2014 21:17:24 +0000 (21:17 +0000)]
[WIN32K]
Reintroduce CSR support for kernel mode, based on code from Ge that was wiped out in revision 58770, and by ntdll CSR code. Is needed for kernel to user-mode CSR callbacks.

For readers, I remind you the big callback picture in the Win32 subsystem:
- In Windows NT 3.1 and 3.51, USER and GDI was modeled against client/server model (USER32.DLL and WINSRV.DLL, and GDI32.DLL and GDISRV.DLL), all running in user mode (using the CSR API).
- Starting Windows NT 4.0 (and up), some USER and GDI parts were moved into kernel mode (in the WIN32K.SYS driver) to speedup communication. We get:
  * GDI32.DLL as the client, doing win32k system calls (kernel-mode system calls to win32k),
  * and USER32.DLL, WINSRV.DLL and WIN32K.SYS working in tandem, USER32.DLL being the client and {WINSRV.DLL, WIN32K.SYS} being the server.
    USER32.DLL can do win32k system calls or CSR calls to WINSRV.DLL (client to server calls). For server-to-server calls, we have WINSRV.DLL
    doing win32k system calls, or WIN32K.SYS doing CSR calls back to WINSRV.DLL . Also, there is the possibility for WIN32K.SYS to make user-mode
    callbacks to USER32.DLL.

svn path=/trunk/; revision=65817

9 years ago[NTDLL]: Whitespace fixes. No code changes.
Hermès Bélusca-Maïto [Tue, 23 Dec 2014 20:35:42 +0000 (20:35 +0000)]
[NTDLL]: Whitespace fixes. No code changes.

svn path=/trunk/; revision=65816

9 years ago[NtUser]
James Tabor [Tue, 23 Dec 2014 19:05:44 +0000 (19:05 +0000)]
[NtUser]
- Crash while in recursion through hook calls. Move fast calls to api. Placed safe guards for removing message queue structures. Lock threads while calling hooks. Just add paranoid code to prevent recursion freeing that will crash the kernel at some point. Fixes OpenMPT crashes, see CORE-8819. This might improve the same issues with CORE-6734.

svn path=/trunk/; revision=65815

9 years ago[KDVBOX] Properly handle the ASM source file.
Amine Khaldi [Tue, 23 Dec 2014 19:01:02 +0000 (19:01 +0000)]
[KDVBOX] Properly handle the ASM source file.

svn path=/trunk/; revision=65814

9 years ago[KDVBOX]
Timo Kreuzer [Tue, 23 Dec 2014 17:48:16 +0000 (17:48 +0000)]
[KDVBOX]
Implement a virtualkd compatible kernel debugger transport DLL. I started this, because I didn't manage to get the original one working, but it turned out, the original one works, you only need to use the correct virtualkd version. Anyway, it's there now. A virtualkd version that works with VBox 4.3.16+ can be found here: http://forum.sysprogs.com/viewtopic.php?f=4&t=3370 or here: http://public.avast.com/~hnanicek/VirtualKd.zip
The folder is called kdvm, since I thought about adding support for VMWare as well, but here the original one probably works as well.
Also fix my email address in some files.

svn path=/trunk/; revision=65813

9 years ago[SHORTCUTS]
Hermès Bélusca-Maïto [Tue, 23 Dec 2014 17:11:00 +0000 (17:11 +0000)]
[SHORTCUTS]
Fix Explorer shortcut icon. Patch by Jared.
CORE-8955 #resolve #comment Fixed in r65812, thanks!

svn path=/trunk/; revision=65812

9 years ago[USER32]
Hermès Bélusca-Maïto [Tue, 23 Dec 2014 16:42:59 +0000 (16:42 +0000)]
[USER32]
Reenable some disabled tests, while disabling some other calls, namely:
- code in ClientThreadStartup (that was moved in ClientThreadSetupHelper that is hackilly now called in Init() from DllMain),
- code in User32CallClientThreadSetupFromKernel,
- add two flag manual resets in Init() and the forced call to ClientThreadSetupHelper,
- and moreover the whole CSR call in DllMain, that seems to sometimes cause some user32 internal global pointers to remain NULL where they should not (more specifically some "pdi" thing).

Obviously all these problems need to be understood (why some things do not become initialized when they should, etc...). See r65799, revert r65810, and CORE-8949.

svn path=/trunk/; revision=65811

9 years ago[USER32]: Add yet another magic hack to temporarily reenable bots (ofc. mention in...
Hermès Bélusca-Maïto [Tue, 23 Dec 2014 14:31:28 +0000 (14:31 +0000)]
[USER32]: Add yet another magic hack to temporarily reenable bots (ofc. mention in the code that this is a hack). See r65799 for more details, and CORE-8949.

svn path=/trunk/; revision=65810

9 years ago[TRANSLATIONS] Russian translation update by Kudratov Olimjon. CORE-8947
Amine Khaldi [Tue, 23 Dec 2014 11:25:42 +0000 (11:25 +0000)]
[TRANSLATIONS] Russian translation update by Kudratov Olimjon. CORE-8947

svn path=/trunk/; revision=65809

9 years ago[BOOTDATA] Add some default settings for crash control to hivesys.inf. By Ricardo...
Amine Khaldi [Tue, 23 Dec 2014 11:01:17 +0000 (11:01 +0000)]
[BOOTDATA] Add some default settings for crash control to hivesys.inf. By Ricardo Hanke. CORE-8953

svn path=/trunk/; revision=65808

9 years ago[SHDOCVW] Bring exports closer to native.
Amine Khaldi [Tue, 23 Dec 2014 10:53:07 +0000 (10:53 +0000)]
[SHDOCVW] Bring exports closer to native.
CORE-8936 CORE-8174

svn path=/trunk/; revision=65807

9 years ago[SHLWAPI] Fix inverted StopWatch forwards. Accepted upstream. CORE-8954
Amine Khaldi [Tue, 23 Dec 2014 10:50:10 +0000 (10:50 +0000)]
[SHLWAPI] Fix inverted StopWatch forwards. Accepted upstream. CORE-8954

svn path=/trunk/; revision=65806

9 years ago[EXPLORER]
David Quintana [Tue, 23 Dec 2014 01:55:48 +0000 (01:55 +0000)]
[EXPLORER]
* Fix count of visible buttons getting out of sync when removing buttons. Fixes empty space at the end of the notification toolbar.
CORE-8840 #resolve #comment This should be fixed as of r65805.

svn path=/trunk/; revision=65805

9 years ago[EXPLORER]
David Quintana [Tue, 23 Dec 2014 01:31:36 +0000 (01:31 +0000)]
[EXPLORER]
* Improve an older change that I commited by mistake, with the improvbements based on a patch by Giannis.
* In Windows, fixes the taskbar having a size grip with the taskbar is themed and locked.
* In ReactOS, the size grip never seems to disappear, contrary to Giannis' concerns in the issue.
* Because of the above, I decided to commit the changes, and let the sizing edge inconsistency be a followup to the issue.
CORE-6966 #resolve #comment A modified version of the patch was commited in r65804. Thanks.

svn path=/trunk/; revision=65804

9 years ago[EXPLORER]
David Quintana [Tue, 23 Dec 2014 01:13:05 +0000 (01:13 +0000)]
[EXPLORER]
* Handle WM_CONTEXTMENU in the notification area so it does not spread upwards to the taskbar window.
* In theory, only one of the two handlers would be necessary, and it is true when testing in Windows, but in ReactOS, the handler in CSysPagerWnd was not enough. This may be worth a look by the win32k experts to see if it's a bug, or Windows was correcting my error.
CORE-8870 #resolve #comment Should be fixed in r65803. Thanks for reporting.

svn path=/trunk/; revision=65803

9 years ago[WHOAMI]
Sylvain Petreolle [Mon, 22 Dec 2014 23:44:25 +0000 (23:44 +0000)]
[WHOAMI]
Fix warning into the russian file.

svn path=/trunk/; revision=65802

9 years ago[FASTFAT]
Pierre Schweitzer [Mon, 22 Dec 2014 23:00:22 +0000 (23:00 +0000)]
[FASTFAT]
So far, totally disable VPB swapout on dismount. It appears to have brought more issues than it actually solves.
A more accurate implementation will be required.

CORE-8928 #comment Can you please retry with r65801

svn path=/trunk/; revision=65801

9 years ago[SHELL32]
Pierre Schweitzer [Mon, 22 Dec 2014 22:55:07 +0000 (22:55 +0000)]
[SHELL32]
Update French translation

svn path=/trunk/; revision=65800

9 years agoIn absence of patchbot, let's test patch directly on... trunk!! Yeah!! Let's break...
Hermès Bélusca-Maïto [Mon, 22 Dec 2014 21:23:00 +0000 (21:23 +0000)]
In absence of patchbot, let's test patch directly on... trunk!! Yeah!! Let's break trunk! (or not, we'll see...)

[USER32][USERSRV][WIN32K]
- Flag CSRSS threads as such.
- Each time a win32 thread is "created" (or a win32k system call is done) a PsConvertToGuiThread call is done, that makes a Win32ThreadCallout which calls UserCreateThreadInfo. We should call back ClientThreadSetup to set client-side info.
- Introduce a ClientThreadSetupHelper function to try to understand what happens when doing direct calls to ClientThreadSetup and via win32k callbacks.
- Reenable CSR call in user32::DllMain but add shame hacks in Init(..) to force NtUserProcessConnect callbacks (yet they should not be done there): see the code comment associated for more details.
- Temporarily disable ClientThreadSetupHelper call in ClientThreadSetup because it makes things fail, like console input thread failing and so on...
- ... and in ClientThreadSetupHelper, some correct code is commented out because it currently breaks other things (like menu initialization etc...), and HACKS ARE ADDED!! (see especially the "if (gpsi)" one, that should not exist, but if removed we fail sometimes in MenuInit because gpsi becomes NULL for some reason, if some other code that makes redundant calls to NtUserProcessConnect, is uncommented).

To sum up I tried to scaffold the thing as it should be, but with disabled code to not break everything.

CORE-8949 #comment Revision 65799 committed the patch v1.

svn path=/trunk/; revision=65799

9 years ago[USERSRV]
Hermès Bélusca-Maïto [Mon, 22 Dec 2014 19:50:00 +0000 (19:50 +0000)]
[USERSRV]
- Reenable UserClientConnect callback, it's not the problematic code that made bots to fail at 3rd stage and caused r65716 to be committed.
- Put the system threads hack *after* having called NtUserInitialize (that really initializes user-kernel interface with win32k), and not before.

svn path=/trunk/; revision=65798

9 years ago[GDI32]
Hermès Bélusca-Maïto [Mon, 22 Dec 2014 19:44:59 +0000 (19:44 +0000)]
[GDI32]
- Call NtGdiInit before initializing ourselves (ok, in ROS NtGdiInit does nothing interesting, but still do it to be call-compatible with win2k3 so everything initializes as it should).
- Do some cleanup on process detach.

svn path=/trunk/; revision=65797

9 years ago[SNDREC32] Update Chinese (zh-CN) translation. By Henry Tang Ih. CORE-8933
Amine Khaldi [Mon, 22 Dec 2014 19:29:44 +0000 (19:29 +0000)]
[SNDREC32] Update Chinese (zh-CN) translation. By Henry Tang Ih. CORE-8933

svn path=/trunk/; revision=65796

9 years ago[TRANSLATIONS] Russian translation update by Kudratov Olimjon. CORE-8947
Amine Khaldi [Mon, 22 Dec 2014 19:10:42 +0000 (19:10 +0000)]
[TRANSLATIONS] Russian translation update by Kudratov Olimjon. CORE-8947

svn path=/trunk/; revision=65795

9 years ago[NOTEPAD] Uzbek translation by Kudratov Olimjon. CORE-8948
Amine Khaldi [Mon, 22 Dec 2014 19:01:03 +0000 (19:01 +0000)]
[NOTEPAD] Uzbek translation by Kudratov Olimjon. CORE-8948

svn path=/trunk/; revision=65794

9 years ago[MPLAY32] Fix some entries in the Chinese (zh-CN) translation. Spotted by Alexander...
Amine Khaldi [Mon, 22 Dec 2014 18:52:25 +0000 (18:52 +0000)]
[MPLAY32] Fix some entries in the Chinese (zh-CN) translation. Spotted by Alexander Misel and fixed by Henry Tang Ih. CORE-8918

svn path=/trunk/; revision=65793

9 years ago[SHELL32] Sync translations to the English one. Translators, you're on!
Amine Khaldi [Mon, 22 Dec 2014 18:48:47 +0000 (18:48 +0000)]
[SHELL32] Sync translations to the English one. Translators, you're on!

svn path=/trunk/; revision=65792

9 years ago[SHELL32] Update Russian translation by Petr Akhlamov. CORE-8942
Amine Khaldi [Mon, 22 Dec 2014 18:38:27 +0000 (18:38 +0000)]
[SHELL32] Update Russian translation by Petr Akhlamov. CORE-8942

svn path=/trunk/; revision=65791

9 years ago[WHOAMI]
Hermès Bélusca-Maïto [Mon, 22 Dec 2014 12:28:05 +0000 (12:28 +0000)]
[WHOAMI]
- In German translation, replace erroneous \" to "" for putting quotes inside strings. Fixes resource compilation in GCC/MSVC.
- Make proper help string indentation in resource files. NOTE FOR TRANSLATORS: Please keep the identation correct!

svn path=/trunk/; revision=65790

9 years ago[WHOAMI]
Daniel Reimer [Mon, 22 Dec 2014 11:40:58 +0000 (11:40 +0000)]
[WHOAMI]
German translation

svn path=/trunk/; revision=65789

9 years ago[WHOAMI]
Pierre Schweitzer [Mon, 22 Dec 2014 09:53:24 +0000 (09:53 +0000)]
[WHOAMI]
Fix invalid memory usage, memory leaks, partial zeroes, big if blocks, ...

Would be nice also to check all the allocations which are not checked yet

CORE-8533

svn path=/trunk/; revision=65788

9 years ago[WHOAMI] Add preliminary version of whoami utility by Ismael Ferreras Morezuelas...
Amine Khaldi [Sun, 21 Dec 2014 23:10:46 +0000 (23:10 +0000)]
[WHOAMI] Add preliminary version of whoami utility by Ismael Ferreras Morezuelas (with some changes by me). CORE-8533

svn path=/trunk/; revision=65787

9 years ago[TREE] Attempt to fix some style & formatting crimes. Improve header inclusions....
Amine Khaldi [Sun, 21 Dec 2014 18:48:33 +0000 (18:48 +0000)]
[TREE] Attempt to fix some style & formatting crimes. Improve header inclusions. CORE-8529

svn path=/trunk/; revision=65786

9 years ago[NTDLL_WINETEST] Properly enable back the LdrAddRefDll tests. CORE-8102
Amine Khaldi [Sun, 21 Dec 2014 18:00:03 +0000 (18:00 +0000)]
[NTDLL_WINETEST] Properly enable back the LdrAddRefDll tests. CORE-8102

svn path=/trunk/; revision=65785

9 years ago[NTDLL_WINETEST] Temporarily enable LdrAddRefDll tests in light of CORE-8102.
Amine Khaldi [Sun, 21 Dec 2014 17:16:15 +0000 (17:16 +0000)]
[NTDLL_WINETEST] Temporarily enable LdrAddRefDll tests in light of CORE-8102.

svn path=/trunk/; revision=65784

9 years ago[SHELL32]
Pierre Schweitzer [Sun, 21 Dec 2014 13:26:31 +0000 (13:26 +0000)]
[SHELL32]
Update French translation

svn path=/trunk/; revision=65783

9 years ago[CMD]
Eric Kohl [Sun, 21 Dec 2014 12:36:24 +0000 (12:36 +0000)]
[CMD]
Implement CTRL+Left (jump to previous word) and CRTL+Right (jump to next word) edit keys.

CORE-5626 #resolve

svn path=/trunk/; revision=65782

9 years ago[MSPAINT]
Pierre Schweitzer [Sun, 21 Dec 2014 10:04:55 +0000 (10:04 +0000)]
[MSPAINT]
Update French translation

svn path=/trunk/; revision=65781

9 years ago[EXPLORER]
Giannis Adamopoulos [Sat, 20 Dec 2014 22:11:35 +0000 (22:11 +0000)]
[EXPLORER]
* Fix the fallback case when BCM_GETIDEALSIZE doesn't work.
* Take into account the size of the borders of the start button twice. Now the caption has enough space and doesn't hide part of the border and more importantly the button is vertically aligned to the tasks buttons.

svn path=/trunk/; revision=65780

9 years ago[TRANSLATION]
Daniel Reimer [Sat, 20 Dec 2014 22:02:26 +0000 (22:02 +0000)]
[TRANSLATION]
Turkish Translation Update by Erdem Ersoy
CORE-7861 #resolve #comment Committed, thx for helping ^^

svn path=/trunk/; revision=65779

9 years ago[USETUP]
Eric Kohl [Sat, 20 Dec 2014 21:58:22 +0000 (21:58 +0000)]
[USETUP]
Start implementing the recovery console: CLS, EXIT and HELP have been implemented. I also added a DUMPSECTOR command that enables us to dump disk sectors to the screen. For example "DUMPSECTOR 0 63" dumps disk 0 sector 63 to the screen.

svn path=/trunk/; revision=65778

9 years ago[TASKMGR]
Daniel Reimer [Sat, 20 Dec 2014 21:44:24 +0000 (21:44 +0000)]
[TASKMGR]
Fix even some more translations to get this one fixed: CORE-5790
Sidenote: http://rammichael.com/resource-hacker-fx

svn path=/trunk/; revision=65777

9 years ago[TASKMGR]
Daniel Reimer [Sat, 20 Dec 2014 20:51:54 +0000 (20:51 +0000)]
[TASKMGR]
Fix some translations as preparation to get this one fixed: CORE-5790
At least most languages now look sort of nicely. Next: apply the patch and check the non ResHacker compatible languages

svn path=/trunk/; revision=65776

9 years ago[BROWSEUI]
Giannis Adamopoulos [Sat, 20 Dec 2014 20:32:32 +0000 (20:32 +0000)]
[BROWSEUI]
* Forward focus to the defview window when the shell browser gets the focus.
* We can now navigate to the opened window with the keyboard right after it opens. That means that after opening from the desktop a window with the keyboard, we can navigate right away without any additional mouse clicks.

svn path=/trunk/; revision=65775

9 years ago[BROWSEUI]
Daniel Reimer [Sat, 20 Dec 2014 19:31:44 +0000 (19:31 +0000)]
[BROWSEUI]
update Russian Translation by Akhlamov Petr
CORE-7981 #resolve #comment Committed, thx for help ^^

svn path=/trunk/; revision=65774

9 years ago[INF]
Daniel Reimer [Sat, 20 Dec 2014 19:03:13 +0000 (19:03 +0000)]
[INF]
"No shortcut to the On Screen Keyboard in the start menu" by Jared
CORE-8883 #resolve #comment Committed with minor fix in German translation, thx for help.

svn path=/trunk/; revision=65773

9 years ago[BROWSEUI]
David Quintana [Sat, 20 Dec 2014 18:10:02 +0000 (18:10 +0000)]
[BROWSEUI]
* Do not enable the CExplorerBand wrapper by default. Avoids crashing due to a stack overflow.
CORE-8930 #resolve #comment Oops. Fixed in r65772. Thanks.

svn path=/trunk/; revision=65772

9 years ago[SHELL32]
Giannis Adamopoulos [Sat, 20 Dec 2014 18:06:42 +0000 (18:06 +0000)]
[SHELL32]
* Properly stub CheckStagingArea which is used by native explorer

svn path=/trunk/; revision=65771

9 years ago[RPCSS]
Giannis Adamopoulos [Sat, 20 Dec 2014 17:56:00 +0000 (17:56 +0000)]
[RPCSS]
* Create ScmCreatedEvent when we are done initializing.

svn path=/trunk/; revision=65770

9 years ago[RSHELL]
David Quintana [Sat, 20 Dec 2014 17:45:45 +0000 (17:45 +0000)]
[RSHELL]
* Make the shell menus focus the parent before displaying themselves. Fixes keyboard focus when opening the start menu with the windows key.
NOTE: I put this in the focus manager for lack of a better place, but it may not be how Windows does it.

svn path=/trunk/; revision=65769

9 years ago[EXPLORER]
Pierre Schweitzer [Sat, 20 Dec 2014 17:28:03 +0000 (17:28 +0000)]
[EXPLORER]
Complete the French translation

svn path=/trunk/; revision=65768

9 years ago[COMCTL32] Properly highlight r65766.
Amine Khaldi [Sat, 20 Dec 2014 16:55:10 +0000 (16:55 +0000)]
[COMCTL32] Properly highlight r65766.

svn path=/trunk/; revision=65767

9 years ago[COMCTL32]
Giannis Adamopoulos [Sat, 20 Dec 2014 16:49:31 +0000 (16:49 +0000)]
[COMCTL32]
* Do not add two additional pixels at the top margin of the toolbar. This is the behaviour of comctl32 v6 and our explorer depends on that to appear properly. We don't have a proper solution for these differences in behavior and since we already opt to use the v6 behavior I think it is fine.

CORE-5483 #resolve #comment Committed a slightly different version of the patch, thanks.

svn path=/trunk/; revision=65766

9 years ago[SHELL32]
David Quintana [Sat, 20 Dec 2014 16:47:35 +0000 (16:47 +0000)]
[SHELL32]
* Remove a leftover from when this file was C++.

CORE-8846 #resolve #comment Should be fixed in trunk r65765, thanks.

svn path=/trunk/; revision=65765

9 years ago[TREE]
Pierre Schweitzer [Sat, 20 Dec 2014 16:41:23 +0000 (16:41 +0000)]
[TREE]
- Fix tree internal name
- Add tree French translation

svn path=/trunk/; revision=65764

9 years ago[TREE]
Pierre Schweitzer [Sat, 20 Dec 2014 16:40:57 +0000 (16:40 +0000)]
[TREE]
Convert resources strings to OEM before printing them on console.
Fixes broken displays with special chars

svn path=/trunk/; revision=65763

9 years ago[PSDK] Define rpcndr.h DECLSPEC_UUID in consistency with the one in winnt.h. Fixes...
Amine Khaldi [Sat, 20 Dec 2014 16:26:03 +0000 (16:26 +0000)]
[PSDK] Define rpcndr.h DECLSPEC_UUID in consistency with the one in winnt.h. Fixes some redefinition warnings.

svn path=/trunk/; revision=65762

9 years ago[RSHELL] Silence some MSVC linker warnings.
Amine Khaldi [Sat, 20 Dec 2014 16:24:21 +0000 (16:24 +0000)]
[RSHELL] Silence some MSVC linker warnings.

svn path=/trunk/; revision=65761

9 years ago[SHELL32] Mark the halfplementation as such.
David Quintana [Sat, 20 Dec 2014 16:22:43 +0000 (16:22 +0000)]
[SHELL32] Mark the halfplementation as such.
CORE-3938

svn path=/trunk/; revision=65760

9 years ago[SHELL32]
David Quintana [Sat, 20 Dec 2014 16:20:32 +0000 (16:20 +0000)]
[SHELL32]
* Halfplement IExtractIconAW support into the recycle bin. This is not fully correct as it always uses the fallback file icon, but it's better than nothing at all.

CORE-3938

svn path=/trunk/; revision=65759

9 years ago[NETSHELL]
David Quintana [Sat, 20 Dec 2014 16:12:35 +0000 (16:12 +0000)]
[NETSHELL]
* Move to shellext folder.
* Do not initialize the notification SSO, stobject will do so (like in Windows).
* Move some GUIDs to a shared header.

[STOBJECT]
* Initialize netshell's SSO the way Windows does it. Fixes network icon inconsistency.
* Move some GUIDs to a shared header.

CORE-8818 #resolve Fixed in trunk r65758.

svn path=/trunk/; revision=65758

9 years ago[RSHELL]
David Quintana [Sat, 20 Dec 2014 16:04:45 +0000 (16:04 +0000)]
[RSHELL]
* Make rshell.dll able to register its classes and support CoCreateInstance.

svn path=/trunk/; revision=65757

9 years ago[BROWSEUI] Reorder some exports.
Amine Khaldi [Sat, 20 Dec 2014 15:16:18 +0000 (15:16 +0000)]
[BROWSEUI] Reorder some exports.
CORE-8936 CORE-8174

svn path=/trunk/; revision=65756

9 years ago[SHELL32] Add export 007.. I mean 44. Mark some exports for inspection.
Amine Khaldi [Sat, 20 Dec 2014 15:10:45 +0000 (15:10 +0000)]
[SHELL32] Add export 007.. I mean 44. Mark some exports for inspection.
CORE-8936 CORE-8174

svn path=/trunk/; revision=65755

9 years ago[SHLWAPI] Stub some exports. Stubplement SHGetAllAccessSA. Based on a patch by Gianni...
Amine Khaldi [Sat, 20 Dec 2014 14:54:04 +0000 (14:54 +0000)]
[SHLWAPI] Stub some exports. Stubplement SHGetAllAccessSA. Based on a patch by Giannis Adamopoulos.
CORE-8936 CORE-8174

svn path=/trunk/; revision=65754

9 years ago[SERVICES]: Do not use GetSystemMetrics to retrieve SafeBoot option value, but instea...
Hermès Bélusca-Maïto [Sat, 20 Dec 2014 03:12:23 +0000 (03:12 +0000)]
[SERVICES]: Do not use GetSystemMetrics to retrieve SafeBoot option value, but instead use directly the registry (as it is done just after...).

svn path=/trunk/; revision=65753

9 years ago[UXTHEME]
Giannis Adamopoulos [Fri, 19 Dec 2014 14:21:18 +0000 (14:21 +0000)]
[UXTHEME]
* Implement a few functions needed by windows themeui.dll

svn path=/trunk/; revision=65752

9 years ago[UXTHEME] Remove some exports that do not exist in native. Reorder some exports....
Amine Khaldi [Fri, 19 Dec 2014 14:00:09 +0000 (14:00 +0000)]
[UXTHEME] Remove some exports that do not exist in native. Reorder some exports. Add some missing exports. Mark OpenThemeDataEx as noname.
CORE-8174

svn path=/trunk/; revision=65751

9 years ago[SHLWAPI_WINETEST] Addendum to r65749.
Amine Khaldi [Fri, 19 Dec 2014 13:22:15 +0000 (13:22 +0000)]
[SHLWAPI_WINETEST] Addendum to r65749.
CORE-7556

svn path=/trunk/; revision=65750

9 years ago[SHLWAPI] Import Wine commit 4b33a33 by Sebastian Lackner: Add implementation for...
Amine Khaldi [Fri, 19 Dec 2014 13:20:42 +0000 (13:20 +0000)]
[SHLWAPI] Import Wine commit 4b33a33 by Sebastian Lackner: Add implementation for StrCatChainW. Based on a patch by Huw Campbell.
CORE-7556

svn path=/trunk/; revision=65749

9 years ago[WIN32K]
Timo Kreuzer [Fri, 19 Dec 2014 12:53:50 +0000 (12:53 +0000)]
[WIN32K]
Handle coordinate translation in NtGdiOffsetClipRgn

svn path=/trunk/; revision=65748

9 years ago[WIN32K]
Timo Kreuzer [Fri, 19 Dec 2014 11:12:40 +0000 (11:12 +0000)]
[WIN32K]
Dump object event log, when trying to dereference an object with 0 references.

svn path=/trunk/; revision=65747

9 years ago[WIN32K]
Timo Kreuzer [Fri, 19 Dec 2014 10:34:52 +0000 (10:34 +0000)]
[WIN32K]
Rename RGNOBJAPI_Lock to REGION_LockRgn and remove the 2nd argument, rename RGNOBJAPI_Unlock to REGION_UnlockRgn, remove the old inline lock/unlock functions. Do proper locking using GDIOBJ_bLockMultipleObjects in NtGdiEqualRgn.

svn path=/trunk/; revision=65746

9 years ago[WIN32K]
Timo Kreuzer [Fri, 19 Dec 2014 09:26:50 +0000 (09:26 +0000)]
[WIN32K]
Make sure to respect GDI object lock order in (Nt)UserScrollDC

svn path=/trunk/; revision=65745

9 years ago[Win32k]
James Tabor [Thu, 18 Dec 2014 23:45:11 +0000 (23:45 +0000)]
[Win32k]
- Crash is due to receiving an APC for the current sending thread. Prematurely freeing the data block and while the receiving thread did not have a chance to process it. Interception and calling back to user mode will allow thread to go away. What about the memory block, is it still allocated? A cleaver Hack can fix this, but still the application crashed leaving issues and trash laying about. See CORE-8779.

Reference:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff565592(v=vs.85).aspx
"Yes, for thread termination. No, for user APCs."

svn path=/trunk/; revision=65744

9 years ago- Fix a crash while moving minimized MDI window in ConTEXT.
James Tabor [Thu, 18 Dec 2014 22:38:40 +0000 (22:38 +0000)]
- Fix a crash while moving minimized MDI window in ConTEXT.

svn path=/trunk/; revision=65743

9 years ago[RSHELL]
Giannis Adamopoulos [Thu, 18 Dec 2014 18:24:01 +0000 (18:24 +0000)]
[RSHELL]
* Implement using a thin border for the start menu when themes are enabled
CORE-8925

svn path=/trunk/; revision=65742

9 years ago[BOOTDATA]
Pierre Schweitzer [Thu, 18 Dec 2014 18:15:15 +0000 (18:15 +0000)]
[BOOTDATA]
Add the NtfsMftZoneReservation registry key on installation

See http://support.microsoft.com/kb/174619 for more information

svn path=/trunk/; revision=65741

9 years ago[RSHELL]
David Quintana [Thu, 18 Dec 2014 17:34:46 +0000 (17:34 +0000)]
[RSHELL]
* Fix the focus manager to properly close the shell menus when clicking outside the menu area.
* Close the shell menus when activating a context menu action.
* Open the shell menus without activating. Fixes titlebar color changing to inactive for the Favorites menu.

[RSHELL]
[SHELL32]
[BROWSEUI]
* Remove a few DbgPrints and downgrade some others into TRACEs.

CORE-8836 #resolve

svn path=/trunk/; revision=65740

9 years ago[GDI32]
Timo Kreuzer [Thu, 18 Dec 2014 08:13:14 +0000 (08:13 +0000)]
[GDI32]
- Rename SetRectRgnEx to IntSetRectRgn and make it usermode only
- Implement IntSetNullRgn
- Improve SetRectRgn code and enable the usermode part

svn path=/trunk/; revision=65739

9 years ago[GDI32]
Timo Kreuzer [Thu, 18 Dec 2014 08:13:10 +0000 (08:13 +0000)]
[GDI32]
Rewrite CombineRgn, enabling full handling in usermode if the resulting region is either a rectangular or a NULL region.

svn path=/trunk/; revision=65738

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:13:06 +0000 (08:13 +0000)]
[WIN32K]
Fix REGION_vSyncRegion and RGNOBJAPI_Unlock to actually make sense

svn path=/trunk/; revision=65737

9 years ago[USER32]
Timo Kreuzer [Thu, 18 Dec 2014 08:13:01 +0000 (08:13 +0000)]
[USER32]
Fix copy-paste-bug in SubtractRect

svn path=/trunk/; revision=65736

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:12:55 +0000 (08:12 +0000)]
[WIN32K]
- Rename xmemcheck to REGION_bGrowBufferSize
- Implement REGION_bEnsureBufferSize and REGION_vAddRect helper functions
- Replace MERGERECT macro with REGION_bMergeRect inline function

svn path=/trunk/; revision=65735

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:12:51 +0000 (08:12 +0000)]
[WIN32K]
Improve REGION_bMakeFrameRegion and REGION_bMakeSimpleFrameRgn

svn path=/trunk/; revision=65734

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:12:41 +0000 (08:12 +0000)]
[WIN32K]
- Make REGION_iOffsetRgn check the region for coordinate space overflow and fail, if the region cannot be moved
- Rename REGION_iOffsetRgn to REGION_bOffsetRgn and make it return BOOL instead of the complexity, since the majority of callers are not interested in the complexity. It's also more obvious that we need to check for an error.

svn path=/trunk/; revision=65733

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:12:34 +0000 (08:12 +0000)]
[WIN32K]
- Rename IntGdiOffsetRgn to REGION_iOffsetRgn

svn path=/trunk/; revision=65732

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:12:28 +0000 (08:12 +0000)]
[WIN32K]
Implement exclusive lock order checks for GDI objects in debug builds

svn path=/trunk/; revision=65731

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:12:23 +0000 (08:12 +0000)]
[WIN32K]
- Rewrite NtGdiFillRgn and IntGdiPaintRgn
We now properly support painting regions on DCs with arbitrary world transforms, with pattern brushes and we respect the foreground ROP and mode of the DC. And we don't run into deadlocks due to having an exclusive region lock while trying to lock a DC. LOCKING MUST BE DONE IN PROPER ORDER!

svn path=/trunk/; revision=65730

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:12:19 +0000 (08:12 +0000)]
[WIN32K]
Properly implement EngPaint, calling IntEngBitBlt, instead of doing a manual single color fill.

svn path=/trunk/; revision=65729

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:12:06 +0000 (08:12 +0000)]
[WIN32K]
- Implement REGION_bXformRgn
- Move IntGdiPaintRgn ro bitblt.c

svn path=/trunk/; revision=65728

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:12:01 +0000 (08:12 +0000)]
[WIN32K]
- Move IntGdiReleaseRaoRgn and IntGdiReleaseVisRgn to cliprgn.c
- Remove unused IntUpdateVisRectRgn

svn path=/trunk/; revision=65727

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:11:56 +0000 (08:11 +0000)]
[WIN32K]
- Rename IntSetPolyPolygonRgn to REGION_SetPolyPolygonRgn
- Implement GreCreatePolyPolygonRgn wrapper around it
- Fix iMode usage in NtGdiPolyPolyDraw
- Improve some variable naming

svn path=/trunk/; revision=65726

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:11:50 +0000 (08:11 +0000)]
[WIN32K]
Rework GreCreateFrameRgn to return the new region. Implement the internal function REGION_bMakeFrameRegion doing the actual work. Fix frame calculation by moving the source region diagonal instead of only horizontal and vertical, use IntGdiOffsetRgn instead of manually fiddling with the rectangles.

svn path=/trunk/; revision=65725

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:11:42 +0000 (08:11 +0000)]
[WIN32K]
- Move NtGdiFillRgn and NtGdiFrameRgn to bitblt.c
- Remove unused NtGdiUnionRectWithRgn
- Rename REGION_CreateFrameRgn to GreCreateFrameRgn

svn path=/trunk/; revision=65724

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:11:36 +0000 (08:11 +0000)]
[WIN32K]
Move NtGdiInvertRgn to bitblt.c

svn path=/trunk/; revision=65723

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:11:31 +0000 (08:11 +0000)]
[WIN32K]
- Remove useless offset part in REGION_CropAndOffsetRegion

svn path=/trunk/; revision=65722

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:11:25 +0000 (08:11 +0000)]
[WIN32K]
Fix MSVC warnings

svn path=/trunk/; revision=65721

9 years ago[WIN32K]
Timo Kreuzer [Thu, 18 Dec 2014 08:11:19 +0000 (08:11 +0000)]
[WIN32K]
More improvements to region.c:
- PROSRGNDATA -> REGION, void -> VOID, int -> INT, uppercase struct names
- do not put assignments into if statements
- !x -> x == NULL for pointers
- Add additional parentheses / curly braces
- rename RGN_ATTR::Flags to iComplexity

svn path=/trunk/; revision=65720

9 years ago[WIN32K/FORMATTING]
Timo Kreuzer [Thu, 18 Dec 2014 08:11:13 +0000 (08:11 +0000)]
[WIN32K/FORMATTING]
- Tabs -> spaces
- Fix indentation
- Improve comment formating
- No code change

svn path=/trunk/; revision=65719

9 years ago[GDI32]
Timo Kreuzer [Thu, 18 Dec 2014 08:11:09 +0000 (08:11 +0000)]
[GDI32]
Avoid casting RECT and POINT to RECTL and POINTL by adding a define

svn path=/trunk/; revision=65718