Commit graph

47191 commits

Author SHA1 Message Date
Amine Khaldi
e87cb26ad8 [MSPAINT]
* Introduce a PCH.
* Fix Brush function declaration.

svn path=/trunk/; revision=52901
2011-07-26 21:44:53 +00:00
Alex Ionescu
6d971807f7 [KERNEL32]: Cleanup of virtual memory functions.
[KERNEL32]: VirtualAllocEx should build a SEH frame.
[KERNEL32]: VirtualAllocEx should make sure the address given is not lower than the system's allocation granularity.

svn path=/trunk/; revision=52899
2011-07-26 14:33:22 +00:00
Alex Ionescu
0b545fdc07 [KERNEL32]: Rewrite almost all the time APIs to do their own conversions instead of calling other APIs (which sometimes have slightly different checks).
[KERNEL32]: Add support for terminal services timezone redirection (one more for GedMurphy's pipe dream) in all the time functions.
[KERNEL32]: Make the time functions acquire SE_SYSTEMTIME_PRIVILEGE when needed (and release it).
[KERNEL32]: Fix the DOS time conversion routines.
[KERNEL32]: Add missing validations to some time functions.
[KERNEL32]: Implement IsTimeZoneRedirectionEnabled.
[KERNEL32]: Reimplement GetSystemTimes to support MP, and treat parameters as optional.

svn path=/trunk/; revision=52898
2011-07-26 14:05:30 +00:00
Timo Kreuzer
22c0da4ef9 [NTOSKRNL]
- Inline KeDisableInterrupts
- Make ExInterlocked* functions portable

svn path=/trunk/; revision=52897
2011-07-26 14:00:08 +00:00
Jérôme Gardou
fc7a05e721 [NTDLL]
- fix the fix : export RtlAcquirePrivilege.
- Also export RtlInterlockedCompareExchange64, it's needed by kernel32

svn path=/trunk/; revision=52896
2011-07-26 13:53:18 +00:00
Jérôme Gardou
cd15a71cda [CMAKE]
-relink win32csr with msvcrt, it's a win32dll

svn path=/trunk/; revision=52895
2011-07-26 11:40:20 +00:00
Rafal Harabien
5fa49ffa95 [DESK]
- Remove forgotten debug print
- Simplify a bit

svn path=/trunk/; revision=52893
2011-07-26 11:12:56 +00:00
Rafal Harabien
9cb007b9f8 [DESK]
- Fix #6262: each new applied color scheme increase the window title height by one
- Don't read REG_QWORD directly to DWORD variable

svn path=/trunk/; revision=52892
2011-07-26 10:51:54 +00:00
Jérôme Gardou
de40c205e9 [NTDLL]
- remove duplicate declaration of RtlAdjustPrivilege

svn path=/trunk/; revision=52891
2011-07-26 08:29:53 +00:00
Jérôme Gardou
3b76cb24ee [NDK/DDK]
Fix definitions of ZwPowerInformation and ZwInitiatePowerAction

svn path=/trunk/; revision=52890
2011-07-26 08:27:35 +00:00
Dmitry Gorbachev
98e48b5a92 [WIN32K]
Do not go beyond the MouseHistoryOfMoves[] bounds. Fixes a crash in Win32k.

svn path=/trunk/; revision=52887
2011-07-26 03:24:48 +00:00
Dmitry Gorbachev
21b5c3a4ec [MINGW-W64]
Reduce differences with upstream. Fixes crash if ReactOS is compiled with GCC 4.6.

svn path=/trunk/; revision=52886
2011-07-26 01:16:32 +00:00
Amine Khaldi
3c6161ed9e [MAGNIFY]
* Designate magnifier.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52885
2011-07-26 00:08:58 +00:00
Amine Khaldi
fa0f9a6367 [SPIDER]
* Designate spider.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52884
2011-07-25 23:50:18 +00:00
Amine Khaldi
bcfa5805e1 [SOL]
* Designate solitaire.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52883
2011-07-25 23:43:02 +00:00
Amine Khaldi
eed24c24a5 [DXDIAG]
* Slightly better PCH.

svn path=/trunk/; revision=52882
2011-07-25 23:34:29 +00:00
Amine Khaldi
facaa72810 [CMAKE]
* Link vfatxlib to chkstk.

svn path=/trunk/; revision=52881
2011-07-25 23:26:21 +00:00
Amine Khaldi
0e157e6285 [CALC]
* Make calc.h a PCH in rbuild build too (already done in cmake build).
* Improve this precompiled header.

svn path=/trunk/; revision=52880
2011-07-25 23:21:29 +00:00
Amine Khaldi
27b36a9e55 [AUDIOSRV]
* Designate audiosrv.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52879
2011-07-25 23:06:48 +00:00
Jérôme Gardou
a28a0da7f1 [CMAKE]
- uext2, ufat and untfs are native dlls

svn path=/trunk/; revision=52878
2011-07-25 22:16:03 +00:00
Jérôme Gardou
a70f7a4d48 [CMAKE]
- add nativedll module type for msvc
- error out in msvc toolchain if unknown module type is set

svn path=/trunk/; revision=52877
2011-07-25 22:15:08 +00:00
Giannis Adamopoulos
86d2150cff [win32k]
- Implement support for debug channels. When a process starts, win32k will parse DEBUGCHANNEL environment variable in order to enable or disable specific debug channels or levels for this application. This gives us the ability to activate from user mode extended debug output for one application, for one component, for one level. In order to use the new debugging system we have to use the macros ERR, FIXME, WARN and TRACE. These are not used yet but shortly every DPRINT/DPRINT1 call will be converted to use the new macros
- Define several win32k channels that will be used in the future
- Remove some hacky definitions of the new macros

svn path=/trunk/; revision=52876
2011-07-25 21:45:47 +00:00
Timo Kreuzer
f1011b2525 [NTOSKRNL]
Fix bugs in ExInterlocked functions.

svn path=/trunk/; revision=52875
2011-07-25 21:06:44 +00:00
Daniel Reimer
04a0c4b70a Updated rapps database by Igor Paliychuk.
FF4 was removed, FF5 was added instead.
Thunderbird 5 was added, too.
Rest was updated to the newest version.

Maybe we should add http://source.winehq.org/patches/data/74067 from wine to get ftp support fixed.

svn path=/trunk/; revision=52874
2011-07-25 21:03:03 +00:00
Amine Khaldi
c036300525 [CMAKE]
* Update our asm support thanks to Jerome.
* Bring in CMakeDetermineCompilerId.cmake to make sure this will work for pretty much all systems.
* Disable the use of response files when you enable ccache.

svn path=/trunk/; revision=52873
2011-07-25 20:50:05 +00:00
Alex Ionescu
7a69501f10 [KERNEL32]: Now that we have the BaseStaticServerData initialized, don't build the \ReactOS and \ReactOS\System32 paths by hand: use the ones we have.
[KERNEL32]: Same goes for BaseCachedSysInfo. Use the BaseStaticServerData->SysInfo instead now.
[KERNEL32]: Don't assume that the BNO directory is called BaseNamedObjects (this won't be true once GedMurphy's dream of multi-session support comes true) -- instead, use the one from BaseStaticServerData.

svn path=/trunk/; revision=52872
2011-07-25 20:23:43 +00:00
Alex Ionescu
64c8e2bb02 [NTDLL]: Export RtlAcquire/ReleasePrivilege.
svn path=/trunk/; revision=52871
2011-07-25 20:21:51 +00:00
Alex Ionescu
2640844400 [KERNEL32]: Fix DPRINT1s.
svn path=/trunk/; revision=52868
2011-07-25 19:55:43 +00:00
Alex Ionescu
c7fec3098c [KERNEL32]: Arch, you have to initialize your strings first!
svn path=/trunk/; revision=52867
2011-07-25 19:26:40 +00:00
Amine Khaldi
3b813c314d [CMAKE]
* Add PCH variable (disabled by default) to configure scripts.
* Add ccache variable to unix configure script.

svn path=/trunk/; revision=52866
2011-07-25 19:08:52 +00:00
Amine Khaldi
5bd86be83b [CMAKE]
* Introduce a temporary cmake variable (PCH) to enable/disable cmake pch support as this requires our patched binary.
* Wrap pch macros around this variable.
* Implement the pch marco accordingly. By Jerome.

svn path=/trunk/; revision=52865
2011-07-25 19:05:00 +00:00
Alex Ionescu
f102b7df5f [CSRSRV]: Initialize CSR_CONNECTION_INFO in CsrpHandleConnectionRequest. Should fix the fact CsrProcessId was bogus before, as were the CSR PEB fields.
svn path=/trunk/; revision=52863
2011-07-25 18:39:56 +00:00
Amine Khaldi
c1e9a0abbe [CMAKE]
* De-duplicate IDL flags.

svn path=/trunk/; revision=52862
2011-07-25 18:39:25 +00:00
Alex Ionescu
b2fc587c78 [KERNEL32]: Fix querying the CSDNumber and RCNumber, as this seems to be a bug (no valid data was found on Windows).
svn path=/trunk/; revision=52861
2011-07-25 14:40:59 +00:00
Alex Ionescu
436714e461 [KERNEL32]: Fix potential buffer overflow.
svn path=/trunk/; revision=52860
2011-07-25 06:23:50 +00:00
Dmitry Gorbachev
f7e57490c6 [CSRSRV|NTOSKRNL|KERNEL32|NTDLL]
Fix multiple definition of variables.

svn path=/trunk/; revision=52859
2011-07-25 05:54:37 +00:00
Alex Ionescu
b9dc60fb3f [KERNEL32]: Define the BASE_STATIC_SERVER_DATA structure that BASESRV shares with KERNEL32 on Windows. In Windows, each CSR client/server pair can share such data through the PEB's ReadOnlyStaticServerData array. In ReactOS, this is not (yet) implemented, so if we don't have this data, kernel32 builds a "fake" copy instead. This "fake" copy will still be useful though as it'll let kernel32 cache some data (per-process). With proper CSRSS support, we could cache it per-system, but at least this is a start.
svn path=/trunk/; revision=52858
2011-07-25 03:28:33 +00:00
Timo Kreuzer
406885c606 [NTOSKRNL]
- Use NtTib.ExceptionList instead of Used_ExceptionList
- use ALIGN_DOWN_BY macro

svn path=/trunk/; revision=52857
2011-07-25 00:50:53 +00:00
Timo Kreuzer
66e64692b7 [NTOSKRNL]
Fix typos in comments

svn path=/trunk/; revision=52856
2011-07-25 00:07:07 +00:00
Timo Kreuzer
ee1da65d47 [NTOSKRNL]
- Convert KiCallUserMode from asm to C (with a small asm wrapper)
- Convert KiGetUserModeStackAddress into a C inline function

svn path=/trunk/; revision=52855
2011-07-25 00:01:29 +00:00
Alex Ionescu
425c57b083 [KERNEL32]: Fix the spec/pspec files to match 100% the exports on NT 5.2's Kernel32.dll
[KERNEL32]: Remove, add, fix, stub functions where necessary to handle these new/modified exports.

svn path=/trunk/; revision=52854
2011-07-24 23:42:09 +00:00
Timo Kreuzer
6b64e5ce54 [NTOSKRNL]
Forgot this file

svn path=/trunk/; revision=52853
2011-07-24 23:19:16 +00:00
Timo Kreuzer
dc06eeafec [NTOSKRNL]
Convert most ExInterlocked* functions from asm to C
Exceptions are ExInterlockedAddLargeStatistic and SList funcions

svn path=/trunk/; revision=52852
2011-07-24 23:14:39 +00:00
Olaf Siejka
d040534b02 [NDK]
- Remove Resource functions, as they are in wdm.h
- add KeTryToAcquireQueuedSpinLockRaiseToSynch, ExRaiseHardError & enum members
 Patch by Thomas Faber

svn path=/trunk/; revision=52847
2011-07-24 21:02:50 +00:00
Jérôme Gardou
5b8793626d [CMAKE]
- win32csr doesn't need to be linked to msvcrt

svn path=/trunk/; revision=52846
2011-07-24 18:41:07 +00:00
Jérôme Gardou
9142818431 [CMAKE]
- ufat, ufatx, uext2 and untfs don't really need to link to kernel32 and msvcrt.

svn path=/trunk/; revision=52845
2011-07-24 17:40:53 +00:00
Alex Ionescu
1b137b580f [NDK]: ntpoapi.h only includes Nt functions, not Zw, so leave the Zw's in the NDK.
svn path=/trunk/; revision=52844
2011-07-24 17:14:58 +00:00
Alex Ionescu
242c7a190e [NDK]: Fix Po function prototypes. Also guard against _PO_DDK_ which means caller already has ntpoapi.h.
svn path=/trunk/; revision=52843
2011-07-24 17:06:50 +00:00
Alex Ionescu
63f96f7207 [KERNEL32]: WTSGetActiveConsoleSessionId should return SharedUserData->ActiveConsoleId instead of having its own global.
svn path=/trunk/; revision=52842
2011-07-24 16:53:19 +00:00
Alex Ionescu
078cdde168 [NDK]: Add missing native power functions.
[KERNEL32]: Cleanup the power APIs. Fix calculation of battery percentage in GetSystemPowerStatus.

svn path=/trunk/; revision=52841
2011-07-24 16:50:03 +00:00