reactos.git
13 years ago- Tree cleanups proposed on the mailing list. Move all non-Core OS modules to rosapps...
Alex Ionescu [Thu, 8 Mar 2007 19:00:15 +0000 (19:00 +0000)]
- Tree cleanups proposed on the mailing list. Move all non-Core OS modules to rosapps. Tests were already moved by Fireball to rostests.

svn path=/trunk/; revision=26033

13 years ago- Tree cleanups proposed on the mailing list. Move all non-Core OS modules to rosapps...
Alex Ionescu [Thu, 8 Mar 2007 18:59:45 +0000 (18:59 +0000)]
- Tree cleanups proposed on the mailing list. Move all non-Core OS modules to rosapps. Tests were already moved by Fireball to rostests.

svn path=/trunk/; revision=26032

13 years agoAdd the very beginnings of a mmc.exe implementation (not yet included in the build)
Thomas Bluemel [Thu, 8 Mar 2007 17:44:10 +0000 (17:44 +0000)]
Add the very beginnings of a mmc.exe implementation (not yet included in the build)

svn path=/trunk/; revision=26031

13 years agoMerge clipboard branch to trunk
Saveliy Tretiakov [Thu, 8 Mar 2007 13:31:33 +0000 (13:31 +0000)]
Merge clipboard branch to trunk

svn path=/trunk/; revision=26029

13 years agochange dprint1 to dprint
Saveliy Tretiakov [Thu, 8 Mar 2007 12:57:19 +0000 (12:57 +0000)]
change dprint1 to dprint

svn path=/trunk/; revision=26028

13 years agoFix make livecd
Saveliy Tretiakov [Thu, 8 Mar 2007 12:31:24 +0000 (12:31 +0000)]
Fix make livecd

svn path=/trunk/; revision=26027

13 years ago- Fix bootcd (taking in account rostests module too)
Aleksey Bragin [Wed, 7 Mar 2007 22:10:37 +0000 (22:10 +0000)]
- Fix bootcd (taking in account rostests module too)
- Add mscutils to the build process

svn path=/trunk/; revision=26026

13 years ago- Uncomment a couple of implemented Ob functions
Aleksey Bragin [Wed, 7 Mar 2007 12:32:02 +0000 (12:32 +0000)]
- Uncomment a couple of implemented Ob functions

svn path=/trunk/; revision=26025

13 years ago- Fix a typo in the function header
Aleksey Bragin [Wed, 7 Mar 2007 12:30:07 +0000 (12:30 +0000)]
- Fix a typo in the function header

svn path=/trunk/; revision=26024

13 years agoRevert 25953.
Aleksey Bragin [Wed, 7 Mar 2007 11:28:51 +0000 (11:28 +0000)]
Revert 25953.

"[14:22] <hackbunny> Fireball: FUCK
 [14:22] <hackbunny> he actually COMMITTED that code?"

svn path=/trunk/; revision=26022

13 years agoRemove useless file
Hervé Poussineau [Wed, 7 Mar 2007 09:33:53 +0000 (09:33 +0000)]
Remove useless file

svn path=/trunk/; revision=26021

13 years agoMove what's left in trunk here (2/2).
Aleksey Bragin [Tue, 6 Mar 2007 21:48:14 +0000 (21:48 +0000)]
Move what's left in trunk here (2/2).

Now it should compile even without rostests module.

svn path=/trunk/; revision=26020

13 years agoMove what's left in trunk here (1/2)
Aleksey Bragin [Tue, 6 Mar 2007 21:44:58 +0000 (21:44 +0000)]
Move what's left in trunk here (1/2)

svn path=/trunk/; revision=26019

13 years ago- Delete testsets
Aleksey Bragin [Tue, 6 Mar 2007 12:43:19 +0000 (12:43 +0000)]
- Delete testsets
- Move dvmgmt and servman into mscutils directory (suggested by Alex Ionescu)

svn path=/trunk/; revision=26017

13 years agoRemove regtests from /reactos since it's not needed anymore.
Aleksey Bragin [Tue, 6 Mar 2007 12:14:33 +0000 (12:14 +0000)]
Remove regtests from /reactos since it's not needed anymore.

svn path=/trunk/; revision=26016

13 years agoMove and reshuffle reactos/regtetsts into rostests. 2/2
Aleksey Bragin [Tue, 6 Mar 2007 12:00:03 +0000 (12:00 +0000)]
Move and reshuffle reactos/regtetsts into rostests. 2/2

svn path=/trunk/; revision=26015

13 years agoMove and reshuffle reactos/regtetsts into rostests. 1/2
Aleksey Bragin [Tue, 6 Mar 2007 11:59:18 +0000 (11:59 +0000)]
Move and reshuffle reactos/regtetsts into rostests. 1/2

svn path=/trunk/; revision=26014

13 years agoAdd proper header
Aleksey Bragin [Tue, 6 Mar 2007 11:40:03 +0000 (11:40 +0000)]
Add proper header

svn path=/trunk/; revision=26013

13 years agoMove testsets from reactos to rostests (into a "win32" directory for now). 2/2
Aleksey Bragin [Tue, 6 Mar 2007 11:34:03 +0000 (11:34 +0000)]
Move testsets from reactos to rostests (into a "win32" directory for now). 2/2

svn path=/trunk/; revision=26012

13 years agoMove testsets from reactos to rostests (into a "win32" directory for now). 1/2
Aleksey Bragin [Tue, 6 Mar 2007 11:33:50 +0000 (11:33 +0000)]
Move testsets from reactos to rostests (into a "win32" directory for now). 1/2

svn path=/trunk/; revision=26011

13 years agoMove tests from rosapps to rostests
Aleksey Bragin [Tue, 6 Mar 2007 11:10:43 +0000 (11:10 +0000)]
Move tests from rosapps to rostests

svn path=/trunk/; revision=26010

13 years agoAdding rostests as part of the tree restructure
Aleksey Bragin [Tue, 6 Mar 2007 11:01:08 +0000 (11:01 +0000)]
Adding rostests as part of the tree restructure

svn path=/trunk/; revision=26009

13 years ago- Implement KdpQueryMemory (KdQueryMemoryApi).
Alex Ionescu [Mon, 5 Mar 2007 20:10:26 +0000 (20:10 +0000)]
- Implement KdpQueryMemory (KdQueryMemoryApi).
- Setting and clearing breakpoints now works! (At least the simple ones with F9/bp/bc). And they actually get hit properly.

svn path=/trunk/; revision=26007

13 years ago- Fixed up KdComPortInUse so that we don't crash when using TinyKRNL/Windows kdcom...
Alex Ionescu [Mon, 5 Mar 2007 19:24:54 +0000 (19:24 +0000)]
- Fixed up KdComPortInUse so that we don't crash when using TinyKRNL/Windows kdcom.dll anymore (due to serial.sys). WinDBG should work a lot better now.
- Implemented hack so that NT-style sprintf can work.
- Implement MiCacheImageSymbols and upgrade MmLoadSystemImage to load symbols for drivers/images which have a debug section.
- Implemented a case in MiResolveImageReferences which was getting hit.
- Don't leak a section object reference each time we load a driver.
- Set the LoadedImports pointer in the loader entry, and set the proper flags after loading a driver.
- Do image notifications after loading a driver, if they're enabled.

svn path=/trunk/; revision=26006

13 years agoFix RosBE build
James Tabor [Mon, 5 Mar 2007 17:35:37 +0000 (17:35 +0000)]
Fix RosBE build

svn path=/trunk/; revision=26005

13 years ago- Implement simple breakpoints (KdWriteBreakPointApi, KdpWriteBreakpoint, KdpAddBreak...
Alex Ionescu [Mon, 5 Mar 2007 17:09:44 +0000 (17:09 +0000)]
- Implement simple breakpoints (KdWriteBreakPointApi, KdpWriteBreakpoint, KdpAddBreakpoint).
- Stepping out with WinDBG now works, but not adding breakpoints (that's KdWriteBreakpointExApi, coming up soon).
- This was supposed to be 26000 but oh well, back porting features to a locked branch seems to have won out :)

svn path=/trunk/; revision=26004

13 years agofixed dprint1 to dprint
Magnus Olsen [Mon, 5 Mar 2007 15:17:53 +0000 (15:17 +0000)]
fixed dprint1 to dprint

svn path=/trunk/; revision=26001

13 years agotempary fix for CreateDC("DISPLAY","DISPLAY",....) until I figout some thing better
Magnus Olsen [Mon, 5 Mar 2007 15:10:26 +0000 (15:10 +0000)]
tempary fix for CreateDC("DISPLAY","DISPLAY",....) until I figout some thing better

svn path=/trunk/; revision=25998

13 years ago- Fix KdpSetCommonSTate to clear breakpoints.
Alex Ionescu [Mon, 5 Mar 2007 03:23:58 +0000 (03:23 +0000)]
- Fix KdpSetCommonSTate to clear breakpoints.
- Allow KdpReadVirtualMemory to read SharedUserData since it's now readable.
- Allow it to read user-mode pointers as well, just not null-pointers.
- Fix KdpReportExceptionStateChange by implementing DumpTraceData. Now the crash in ndis.sys gets caught.
- Next up: implement breakpoints so that stepping out works.

svn path=/trunk/; revision=25997

13 years ago- Add proper bootcd/install freeldr.ini flags to allow KD debugging to work.
Alex Ionescu [Mon, 5 Mar 2007 02:29:46 +0000 (02:29 +0000)]
- Add proper bootcd/install freeldr.ini flags to allow KD debugging to work.
- Fix KdPollBreakIn.
- Add initial debug breakpoint code to ExpInitializeExecutive.
- WinDBG now breaks at the initial breakpoint and you can continue execution from there.
- There's still a lot of weird hangs when using WinDBG, it's far from usable.

svn path=/trunk/; revision=25996

13 years ago- Stub NtSystemDebugControl.
Alex Ionescu [Mon, 5 Mar 2007 01:35:43 +0000 (01:35 +0000)]
- Stub NtSystemDebugControl.
- Fully support _WINKD_. Change this to 1, and get kdcom.dll from Windows 2003 or TinyKRNL and you'll be able to connect to WinDBG if using the right debug settings. You can now boot to desktop with WinDBG connected and see debug messages, but not much else is supported.
- Fix bugs in KeGetBugMessageText.
- Implement KeEnterKernelDebugger.

svn path=/trunk/; revision=25994

13 years ago- Detect if reparsing is being used during IRP completion and complain.
Alex Ionescu [Mon, 5 Mar 2007 00:47:19 +0000 (00:47 +0000)]
- Detect if reparsing is being used during IRP completion and complain.
- Free MDLs in a safer way by not actually using the Irp->MdlAddress as we're looping through them.
- Don't leak an event for each Asynchronous API anymore.
- Handle IRP_OB_QUERY_NAME completion properly.
- handle IRP_CREATE_OPERATION with a file object present.
- Use deferred delete for File Object dereferences, to speed up I/O completion.
- Clear the I/O Stack Location when parsing completion stacks.
- Support SL_ERROR_RETURNED during completion routines.

svn path=/trunk/; revision=25993

13 years agoConvert text to multibyte before displaying it
Hervé Poussineau [Sun, 4 Mar 2007 23:26:30 +0000 (23:26 +0000)]
Convert text to multibyte before displaying it

svn path=/trunk/; revision=25992

13 years agoSome reformatting, no code change
Hervé Poussineau [Sun, 4 Mar 2007 23:18:28 +0000 (23:18 +0000)]
Some reformatting, no code change

svn path=/trunk/; revision=25991

13 years agoFix compiling in proper npfs mode.
Aleksey Bragin [Sun, 4 Mar 2007 21:14:58 +0000 (21:14 +0000)]
Fix compiling in proper npfs mode.

svn path=/trunk/; revision=25989

13 years ago- Enable _WINKD_ in config.rbuild. Currently set to 0 and don't set it to 1 yet becau...
Alex Ionescu [Sun, 4 Mar 2007 20:52:54 +0000 (20:52 +0000)]
- Enable _WINKD_ in config.rbuild. Currently set to 0 and don't set it to 1 yet because it won't build yet.
- Support _WINKD_ in ntoskrnl.rbuild to build KD64 instead of KDBG/KD if it's enabled.
- Remove some incorrect kernel exports.

svn path=/trunk/; revision=25988

13 years ago- Wrap some KDBG-specific initialization in _WINKD_ guard.
Alex Ionescu [Sun, 4 Mar 2007 20:28:18 +0000 (20:28 +0000)]
- Wrap some KDBG-specific initialization in _WINKD_ guard.
- Remove KdpDetectConflicts since our serial driver correctly uses KdComPortInUse for this (and kdcom fills it out).

svn path=/trunk/; revision=25987

13 years ago- Add kd64.h header from branch and format it nicely.
Alex Ionescu [Sun, 4 Mar 2007 19:54:39 +0000 (19:54 +0000)]
- Add kd64.h header from branch and format it nicely.
- Add support for _WINKD_ definition to use kd64.h instead of kd.h, as well as disable usage of rossym.h
- Add KdSystemDebugControl, NtSet/QueryDebugFilterState to kdapi.c for the KD64 code.

svn path=/trunk/; revision=25986

13 years ago- Enable stubs in kdcom to actually be exported (to simplfiy compatibility with KD...
Alex Ionescu [Sun, 4 Mar 2007 19:20:03 +0000 (19:20 +0000)]
- Enable stubs in kdcom to actually be exported (to simplfiy compatibility with KD Branch, which won't be needed soon thanks to a build flag).
- Enable call to KdDebuggerInitialize1 even in trunk, since it doesn't do anything.
- Make i8042prt stop using a reactos-only kernel export hack (KdpServiceDispatcher),and use KdSystemDebugControl instead, which is the NT version and fully-exported.
- Implement a stub KdSystemDebugControl and export it.

svn path=/trunk/; revision=25985

13 years ago- Fix a bug in KeQueryPerformanceCounter which was reading the flags in ESI instead...
Alex Ionescu [Sun, 4 Mar 2007 19:06:34 +0000 (19:06 +0000)]
- Fix a bug in KeQueryPerformanceCounter which was reading the flags in ESI instead of ECX.
- Fix a bug in KeQueryPerformanceCounter which wasn't handling the possibility of an invalid counter value.
- Don't disable/enable interrupts in HalpInitializeClock and HalCalibratePerformanceCounter. Instead, save the flags, disable, and then restore flags, so that if interrupts were disabled initially, they'll remain that way.
- Make KeUpdateRunTime and KeUpdateSystemTime support KPRCB->SkipTick.
- Atomically check for DPC routine active by referencing fs. Also update Debug DPC time.
- Add support for detecting break-in during KeUpdateSystemTime.
- DPC Routine active is a BOOLEAN, not a ULONG. Fix the check in KeUpdateRunTime since this might've messed up a lot of things.
- Temporarily disable DbgBreakPoint during DbgPrint.
- Hang in KeQueryPerformanceCounter while WinDBG is connected is now fixed, as well as DbgPrint support. WinDBG can now remain connected and show all the DebugPrints! (But GUI doesn't boot -- yet).

svn path=/trunk/; revision=25984

13 years agoTranslate german resources.
Eric Kohl [Sun, 4 Mar 2007 18:47:12 +0000 (18:47 +0000)]
Translate german resources.

svn path=/trunk/; revision=25983

13 years ago- Show disables and selected menu items.
Eric Kohl [Sun, 4 Mar 2007 18:41:47 +0000 (18:41 +0000)]
- Show disables and selected menu items.
- User the caption font to display the window text.

svn path=/trunk/; revision=25982

13 years agosplit up all testcase to own file. the size are growning
Magnus Olsen [Sun, 4 Mar 2007 11:57:44 +0000 (11:57 +0000)]
split up all testcase to own file. the size are growning

svn path=/trunk/; revision=25981

13 years agoadding so dump can decoding pCallBackFlags[0] so we do not need calc out what hardwar...
Magnus Olsen [Sun, 4 Mar 2007 11:45:29 +0000 (11:45 +0000)]
adding so dump can decoding pCallBackFlags[0] so we do not need calc out what hardware acclations DD_CALLBACKS support.

svn path=/trunk/; revision=25980

13 years agoUsers can now set bold or italic fonts.
Eric Kohl [Sat, 3 Mar 2007 21:03:22 +0000 (21:03 +0000)]
Users can now set bold or italic fonts.

svn path=/trunk/; revision=25978

13 years agopartly implement NtGdiDdReenableDirectDrawObject
Magnus Olsen [Sat, 3 Mar 2007 20:19:56 +0000 (20:19 +0000)]
partly implement NtGdiDdReenableDirectDrawObject
this give us bit more closer getting hardware accalertions working.

svn path=/trunk/; revision=25977

13 years ago- Fix another typo in CommonDispatchException (with yet another critical flaw as...
Alex Ionescu [Sat, 3 Mar 2007 19:49:36 +0000 (19:49 +0000)]
- Fix another typo in CommonDispatchException (with yet another critical flaw as a result). Sometimes, exceptions would incorrectly be detected as coming from user-mode even though CS was kernel mode. When creating the KTRAP_FRAME, the kernel would then add the Ring 3 RPL_MASK (3) (because it believed we're in usermode) to the kernel-mode CS, creating the invalid CS of 0xB, which would lead into a GPF during the iretd.
- Re-enable DebugPrint since this now works.

svn path=/trunk/; revision=25976

13 years ago- Fix critical bugs in DR_TRAP_FIXUP, TRAP_PROLOG and TRAP_EPILOG which would either...
Alex Ionescu [Sat, 3 Mar 2007 17:24:58 +0000 (17:24 +0000)]
- Fix critical bugs in DR_TRAP_FIXUP, TRAP_PROLOG and TRAP_EPILOG which would either cause infinite loops during exceptions or corruption of the correct code path when dealing with debug registers.
- Fix a bug in KiRecordDr7 setting the new DR7 mask.
- Make KiEspToTrapFrame thread-safe by raising to APC_LEVEL to make sure a thread/set context doesn't corrupt the state.
- Fix thread-safe IRQL Code in KeContexToTrapFrame/KeTrapFrameToContext.
- Fix KiDispatchException to properly handle KI_EXCEPTION_ACCESS_VIOLATION and convert it back to STATUS_ACCESS_VIOLATION which is what the system expects.
- Also fix the way we do bugchecks so the the trapframe gets properly put as a parameter.
- Make KiDebugService call into KiTrap3 to share code (merge from kd-branch).
- Changes to the KdpEnterDebuggerException hack we have to handle this change.
- Temporarily disable DebugPrint functionality (sorry, I'm onto a big bug here!)

svn path=/trunk/; revision=25975

13 years agoNtGdiDdQueryDirectDrawObject
Magnus Olsen [Sat, 3 Mar 2007 16:31:28 +0000 (16:31 +0000)]
NtGdiDdQueryDirectDrawObject
1. fixed some return code it get right.

svn path=/trunk/; revision=25973

13 years ago- Let the user edit the font size directly.
Eric Kohl [Sat, 3 Mar 2007 12:44:09 +0000 (12:44 +0000)]
- Let the user edit the font size directly.
- Remove the useless "NOT CBS_SIMPLE" window style from the font size combobox.

svn path=/trunk/; revision=25970

13 years agodownloader fixes:
Sylvain Petreolle [Sat, 3 Mar 2007 11:41:28 +0000 (11:41 +0000)]
downloader fixes:
remove downloader.xml from bootcd
fix paths in .rbuild

svn path=/trunk/; revision=25969

13 years ago- Remove DbgPrint committed in FreeLDR by accident.
Alex Ionescu [Sat, 3 Mar 2007 05:44:58 +0000 (05:44 +0000)]
- Remove DbgPrint committed in FreeLDR by accident.
- Fix a hack in DbgLoadImageSymbols.

svn path=/trunk/; revision=25967

13 years ago- Copy the entire drivers in memory, not just their mappable sections, since WinDBG...
Alex Ionescu [Sat, 3 Mar 2007 05:41:14 +0000 (05:41 +0000)]
- Copy the entire drivers in memory, not just their mappable sections, since WinDBG (and probably other things) use "SizeOfImage" in the header to figure out when the image ends, but we map considerably less, creating overlaps.

svn path=/trunk/; revision=25966

13 years ago- Remove KD APIs from stub HAL, they've been in kdcom for a while (merge from kd...
Alex Ionescu [Sat, 3 Mar 2007 04:39:25 +0000 (04:39 +0000)]
- Remove KD APIs from stub HAL, they've been in kdcom for a while (merge from kd-branch).
- DebugPrint/DebugPrompt should have an int3 after the int2d, and the int2d handler should ++ the trap frame's EIP to compensate (merge from kd-branch).
- Remove KDB symbol hooks (merge from kd-branch).
- Make PSEH compialble in MSVC again after Greatlord's break.
- Fix KiSaveProcessorControlState/KiRestoreProcessorControlState (merge from kd-branch).
- Disable GDB hook/hacks (merge from kd-branch).
- Add KD64 directory from kd-branch with SharedUserData access enabled (no other code changed). It's not currently compiled though, just putting it here.

svn path=/trunk/; revision=25965

13 years agofix build
Sylvain Petreolle [Fri, 2 Mar 2007 22:04:21 +0000 (22:04 +0000)]
fix build

svn path=/trunk/; revision=25964

13 years agoDon't spam debug log with that message, it seems it's normal.
Aleksey Bragin [Fri, 2 Mar 2007 21:11:16 +0000 (21:11 +0000)]
Don't spam debug log with that message, it seems it's normal.

svn path=/trunk/; revision=25961

13 years agosome configuration changes for debug builds
Christoph von Wittich [Fri, 2 Mar 2007 21:04:41 +0000 (21:04 +0000)]
some configuration changes for debug builds

svn path=/trunk/; revision=25960

13 years agofix the msvc backend on linux hosts
Christoph von Wittich [Fri, 2 Mar 2007 20:53:41 +0000 (20:53 +0000)]
fix the msvc backend on linux hosts

svn path=/trunk/; revision=25959

13 years ago-Fix build
Alex Ionescu [Fri, 2 Mar 2007 20:40:48 +0000 (20:40 +0000)]
-Fix build

svn path=/trunk/; revision=25958

13 years agofix a crash in the msvc8 backend
Christoph von Wittich [Fri, 2 Mar 2007 20:30:12 +0000 (20:30 +0000)]
fix a crash in the msvc8 backend

svn path=/trunk/; revision=25957

13 years ago- Fix various ntoskrnl/wdk compilation issues in rossym, cmlib, kdcom, rtl.
Alex Ionescu [Fri, 2 Mar 2007 19:52:29 +0000 (19:52 +0000)]
- Fix various ntoskrnl/wdk compilation issues in rossym, cmlib, kdcom, rtl.
- Rename one more duplicated file in the kernel which wasn't caught previously.
- pseh, rossym, cmlib, kdcom, bootvid, rtl compile & link, and ntoskrnl is now down to only 23 linker errors.

svn path=/trunk/; revision=25956

13 years ago- Do massive renames in the ntoskrnl tree to make sure we don't have multiple files...
Alex Ionescu [Fri, 2 Mar 2007 18:25:23 +0000 (18:25 +0000)]
- Do massive renames in the ntoskrnl tree to make sure we don't have multiple files with the same name (this makes msvc very, very, sad).
- Add _IN_KERNEL_ define for WDK compatibility when using resstr.h
- The entire kernel can now be compiled with MSVC (read this sentence carefully before throwing out the champagne).

svn path=/trunk/; revision=25954

13 years agoadding a small debugprint to detect if pseh going into a endless loop, if we see...
Magnus Olsen [Fri, 2 Mar 2007 17:49:47 +0000 (17:49 +0000)]
adding a small debugprint to detect if pseh going into a endless loop, if we see same msg from it repate it self whole time, we known then pseh have gone into endless loop.

svn path=/trunk/; revision=25953

13 years agoLester Kortenhoeven (lester(at)kortenhoeven(dot)de): Implement scripting.
Maarten Bosma [Fri, 2 Mar 2007 17:27:39 +0000 (17:27 +0000)]
Lester Kortenhoeven  (lester(at)kortenhoeven(dot)de): Implement scripting.

svn path=/trunk/; revision=25952

13 years ago- More MSVC fixes.
Alex Ionescu [Fri, 2 Mar 2007 16:28:34 +0000 (16:28 +0000)]
- More MSVC fixes.

svn path=/trunk/; revision=25948

13 years ago- Fix multiple WDK compatibilities issues.
Alex Ionescu [Fri, 2 Mar 2007 16:26:45 +0000 (16:26 +0000)]
- Fix multiple WDK compatibilities issues.
- Fix MSVC warnings and incompatibilities.

svn path=/trunk/; revision=25947

13 years agofix mkhive on x86_64 hosts
Christoph von Wittich [Fri, 2 Mar 2007 15:57:34 +0000 (15:57 +0000)]
fix mkhive on x86_64 hosts

svn path=/trunk/; revision=25946

13 years ago- Rewrite a dirty, reverse-engineered function written by dwelch (David Welch) 7...
Alex Ionescu [Fri, 2 Mar 2007 07:37:45 +0000 (07:37 +0000)]
- Rewrite a dirty, reverse-engineered function written by dwelch (David Welch) 7.1 years ago in revision 965. We must agressively continue to hunt down such reversed code by previously tainted ReactOS developers who have thankfully left/been kicked out since then.

svn path=/trunk/; revision=25945

13 years ago- Don't depend on LD variables anymore for Mm.
Alex Ionescu [Fri, 2 Mar 2007 07:23:19 +0000 (07:23 +0000)]
- Don't depend on LD variables anymore for Mm.
- Update KrnlFun.c
- Make pushlock.c compile with msvc/wdk.
- Fix definition of HIGH_LEVEL_ENTRIES which was way too small (and thus always 0) which caused frees/allocates in the 3rd-level table not to work properly. MSVC statically detected this, it's unlikely we were hitting this in ROS at the moment but it would've been a bad bug to catch later, yay msvc.

svn path=/trunk/; revision=25944

13 years ago- Fix some rtl warnings on /W3.
Alex Ionescu [Fri, 2 Mar 2007 07:21:33 +0000 (07:21 +0000)]
- Fix some rtl warnings on /W3.

svn path=/trunk/; revision=25943

13 years ago- Merge from KD-branch:
Alex Ionescu [Fri, 2 Mar 2007 06:11:27 +0000 (06:11 +0000)]
- Merge from KD-branch:
  - Remove double implementation of DebugPrint with a single correct implementation which calls DebugService, and moved DebugPrint to rtl since it can now be shared properly.

svn path=/trunk/; revision=25942

13 years ago- Create PDE/PTE entries for KUSER_SHARED_DATA in FreeLDR, so that MmInit1 isn't...
Alex Ionescu [Fri, 2 Mar 2007 06:01:07 +0000 (06:01 +0000)]
- Create PDE/PTE entries for KUSER_SHARED_DATA in FreeLDR, so that MmInit1 isn't needed to access it.
- This allows us to access SharedUserData much earlier in the kernel, as well as in kdcom, which means the Windows/TinyKRNL version should now work without modification.

svn path=/trunk/; revision=25941

13 years ago- Fix a bug in HalEnableSystemInterrupt which was causing us to read invalid port...
Alex Ionescu [Thu, 1 Mar 2007 20:27:33 +0000 (20:27 +0000)]
- Fix a bug in HalEnableSystemInterrupt which was causing us to read invalid port data instead of the PCI edge/level registers.
- Fix an offset bug which was causing us to read/write to DR7 in a completely random location (somewhere in side the _CONTEXT record).
- Fix a bug in DR save/restore which was making us save dr0,1,2 isntead of dr3,6,7.
- All bugs reported by Aleksey Bragin.

svn path=/trunk/; revision=25938

13 years ago- Fix KiDispatchException to unmask KI_EXCEPTION_INTERNAL when setting the exception...
Alex Ionescu [Thu, 1 Mar 2007 19:51:20 +0000 (19:51 +0000)]
- Fix KiDispatchException to unmask KI_EXCEPTION_INTERNAL when setting the exception code, so that usermode/SEH filters get proper exception codes again.
- Fixes and compatible merges from KD Branch:
 - Add stubs for KdSave, KdRestore, KdDebuggerInitialize0, KdSendPacket, KdReceivePacket to kdcom.dll
 - Implement and export KeTryToAcquireSpinLockAtDpcLevel.
 - Add EXCEPTION_RECORD64 and LIST_ENTRY64, KeTryToAcquireSpinLockAtDpcLevel, BREAKPOINT_COMMAND_STRING, Ke386SetCr2, Ke386SetDr3, Ke386SetDr6.
 - Remove non-kernel routines from kdfuncs.h and remove deprecated routines from ke.h.
 - Implement KiRestoreProcessorControlState, KeFreezeExecution, KeThawExecution, ExAcquireTimeRefreshLock, ExReleaseTimeRefreshLock.
 - Rename ModuleLoadList to PsLoadedModuleList. Add PsNtosImageBase and set value in it.
 - Add skeleton wdbgexts.h with what's needed until now, this is a PSDK header.
 - Add kddll.h for KDCOM/1394/USB2.DLL prototypes.
 - Add windbgkd.h with KD protocol definitions. Used to be an NT5 DDK header, but was removed, so this goes into include\reactos.
 - Fix KiDebugService to load EDX from KTRAP_FRAME_EDX, not KTRAP_FRAME_EAX!.
 - Fix CommonDispatchException to check for the argument count in ECX, not EAX. Previously we were ignoring parameter counts and never filling out exception records!
 - Add KdDebuggerInitialize1 and enable call to it.
 - Fix KD_SYMBOLS_INFO definition and DbgLoadImageSymbols prototype.
 - Implement DbgUnLoadImageSymbols.
 - Fix some small bugs in KeBugCheckWithTf and add various debugger calls/checks where needed.
 - Fix bugcheck recursion code which was incorrect.
 - Only save/restore CR4 if KeFeatureBits indicates CR4 support exists.
 - Export KdDebuggerNotPresent since KDCOM needs it.
 - Add KCONTINUE_STATUS.
 - Add DBGKD_ANY_CONTROL_SET and X86/IA64/AMD64 control sets.
 - Add DBGKD_MANIPULATE_STATE64 and all sub-structures (READ_MEMORY, WRITE_MEMORY, etc).
 - Create GCC_ULONG64 type to hack around a bug in GCC which is incapable of creating entries for externals at compile-time for 64-bit pointers.
 - Rename NameSpaceRoot to ObpRootDirectoryObject, IopLogListHead to IopErrorLogListHead, BugcheckCallbackListHead to KeBugcheckCallbackListHead, BugcheckReasonCallbackListHead to KeBugcheckReasonCallbackListHead, ObTypeObjectType to ObpTypeObjectType.
 - Create ntverp.h and common.ver files. These are the standard files used by the NT/DDK build systems and we should try to support them as well instead of re-defining everything our own way (especially if we want to build ddk-compatible drivers later on).
 - Made init.c use version data from ntverp.h instead of hard-coding.
 - Defined NT 5.2.3790.1830 as the version we report.
 - Fixed up .rc file to be correct and match DDK-sytnax/style.
 - For now only the kernel uses this new versionning scheme, but we should change the build system later to use this for every component.
 - Fix KiSaveProcessorControlState and KiRestoreProcessorControlSate. The latter doesn't freeze the CPU anymore so it's enabled, and the former doesn't cause WinDBG to panic anymore and display weird data.
 - KPROCESSOR_STATE is not 4-byte aligned.
 - Use DR_MASK and DR7_OVERRIDE_V in KiUpdateDr7, KiRecordDr7 instead of DR_ACTIVE_MASK.
 - Add ExceptionRecord32To64.
 - Fix generation of driver name for symbol load.

svn path=/trunk/; revision=25937

13 years agoNtGdiGetObject
Magnus Olsen [Thu, 1 Mar 2007 19:13:29 +0000 (19:13 +0000)]
NtGdiGetObject
1. fixed one BSD it does show bluescreen when the buffer are too small
2. fixed some bugs in calculation of different GdiObject sized

svn path=/trunk/; revision=25935

13 years ago- call undocumented functions directly when building with MSVC and the MS PSDK
Ged Murphy [Wed, 28 Feb 2007 23:43:12 +0000 (23:43 +0000)]
- call undocumented functions directly when building with MSVC and the MS PSDK
- fixes building with MSVC

note, this can be removed when bulding ROS with MSVC isn't reliant on the MS PSDK

svn path=/trunk/; revision=25932

13 years agoAdd code to support font size changes.
Eric Kohl [Wed, 28 Feb 2007 22:49:34 +0000 (22:49 +0000)]
Add code to support font size changes.

svn path=/trunk/; revision=25931

13 years agoUse wsprintf() to convert an integer to a string instead of abusing a hidden edit...
Eric Kohl [Wed, 28 Feb 2007 20:44:47 +0000 (20:44 +0000)]
Use wsprintf() to convert an integer to a string instead of abusing a hidden edit control.

svn path=/trunk/; revision=25930

13 years ago- Make usetup ""work"" on systems with ~28MB+ RAM. Due to an unknown bug (in usetup...
Alex Ionescu [Wed, 28 Feb 2007 20:43:13 +0000 (20:43 +0000)]
- Make usetup ""work"" on systems with ~28MB+ RAM. Due to an unknown bug (in usetup or Mm, file copies during setup don't get flushed until memory reaches about 42-47% remaining. At this point, if enough memory is available, no more memory will be allocated, even though more files are being copied. On systems with < 48MB, the system will not usually flush pages fast enough to keep the memory at ~42-47%. We ""fix"" this by adding a delay to each file copy as long as free memory is below 40%.
- Also added 3 progress bars during memory transfers to show the status of the memory.

svn path=/trunk/; revision=25929

13 years ago- More refactoring of FreeLDR/SetupLDR PE Loader Code to remove some hacks.
Alex Ionescu [Wed, 28 Feb 2007 19:04:27 +0000 (19:04 +0000)]
- More refactoring of FreeLDR/SetupLDR PE Loader Code to remove some hacks.
- Don't double-free some entries when failing to load a boot driver. This would cause a crash when pciide couldn't load (since we don't yet import drivers in FreeLDR, and pciide needs pciidex). Thanks to encoded for reporting it.
- We now free boot driver memory again since it's safe to do so again. This should reduce memory requirements even more.

svn path=/trunk/; revision=25928

13 years ago- Properly load drivers using new method describred previously (read from disk into...
Alex Ionescu [Wed, 28 Feb 2007 17:48:44 +0000 (17:48 +0000)]
- Properly load drivers using new method describred previously (read from disk into temporary allocated buffer, then map into allocated memory, then free disk buffer).
- FreeLDR doesn't relocate nor map imports for drivers yet..still needs testing/fixes.

svn path=/trunk/; revision=25927

13 years agoforget to add 2 files
Sylvain Petreolle [Wed, 28 Feb 2007 14:24:17 +0000 (14:24 +0000)]
forget to add 2 files

svn path=/trunk/; revision=25926

13 years agofrench translations updates
Sylvain Petreolle [Wed, 28 Feb 2007 14:15:31 +0000 (14:15 +0000)]
french translations updates

svn path=/trunk/; revision=25925

13 years agoUpdate testapp
Saveliy Tretiakov [Wed, 28 Feb 2007 13:25:50 +0000 (13:25 +0000)]
Update testapp

svn path=/trunk/; revision=25924

13 years agoWM_INPUTLANGCHANGE is sent not posted.
Saveliy Tretiakov [Wed, 28 Feb 2007 13:23:51 +0000 (13:23 +0000)]
WM_INPUTLANGCHANGE is sent not posted.

svn path=/trunk/; revision=25923

13 years agoMake ntuser locks use eresource instead of mutex.
Saveliy Tretiakov [Wed, 28 Feb 2007 13:21:48 +0000 (13:21 +0000)]
Make ntuser locks use eresource instead of mutex.
Fix corresponding FIXME in class.c

svn path=/trunk/; revision=25922

13 years agoEnumChildWindows:
Timo Kreuzer [Wed, 28 Feb 2007 13:21:09 +0000 (13:21 +0000)]
EnumChildWindows:
- if hWndParent == NULL: call EnumWindows
- else use bChildren = TRUE

svn path=/trunk/; revision=25921

13 years agoNtUserBuildHwndList:
Timo Kreuzer [Wed, 28 Feb 2007 13:19:00 +0000 (13:19 +0000)]
NtUserBuildHwndList:
- handle bChildren
- remove some code duplication

svn path=/trunk/; revision=25920

13 years agoAndrey Janzen (virus126):
Saveliy Tretiakov [Wed, 28 Feb 2007 13:17:34 +0000 (13:17 +0000)]
Andrey Janzen (virus126):
echo %date% on windows >=XP return '24.02.2007', not 'Sut 24.02.2007'
fix & implement dynamic buffer

svn path=/trunk/; revision=25919

13 years agoAdded test functions for fsrtl lib
Dominique Cote [Wed, 28 Feb 2007 04:09:16 +0000 (04:09 +0000)]
Added test functions for fsrtl lib

svn path=/trunk/; revision=25918

13 years agomodified include/reactos/libs/pseh/framebased.h
KJK::Hyperion [Wed, 28 Feb 2007 00:22:08 +0000 (00:22 +0000)]
modified   include/reactos/libs/pseh/framebased.h
modified   lib/pseh/framebased.c
 - _SEH_ENABLE_TRACE now obsolete; _SEH_ENABLE_TRACE_LIB renamed to _SEH_ENABLE_TRACE now that the name is available again. Yay open source development model and yay me

svn path=/trunk/; revision=25917

13 years agomodified framebased.h
KJK::Hyperion [Wed, 28 Feb 2007 00:16:38 +0000 (00:16 +0000)]
modified   framebased.h
 - don't enable a random tracing level when the library is built for tracing but an application is not. Fastest bugfix ever

svn path=/trunk/; revision=25916

13 years agomodified include/reactos/libs/pseh/framebased.h
KJK::Hyperion [Wed, 28 Feb 2007 00:04:36 +0000 (00:04 +0000)]
modified   include/reactos/libs/pseh/framebased.h
 - final reformatting/cleanup fixes
 - fixed regression introduced in 25908

modified   include/reactos/libs/pseh/framebased.h
modified   include/reactos/libs/pseh/framebased/internal.h
modified   lib/pseh/framebased.c
 - per-frame tracing support for PSEH. Prints detailed debugging traces with DbgPrint when enabled. New defines _SEH_ENABLE_TRACE, _SEH_ENABLE_TRACE_LIB and _SEH_DO_DEFAULT_TRACING, new macros _SEH_EnableTracing() and _SEH_DisableTracing(), new constants _SEH_DO_TRACE_XXX. Please test it
See issue #2069 for more details.

svn path=/trunk/; revision=25915

13 years agoUndo 25911
Dmitry Gorbachev [Tue, 27 Feb 2007 18:17:26 +0000 (18:17 +0000)]
Undo 25911

svn path=/trunk/; revision=25913

13 years agoUpdate Russian translations.
Dmitry Gorbachev [Tue, 27 Feb 2007 16:51:19 +0000 (16:51 +0000)]
Update Russian translations.

svn path=/trunk/; revision=25912

13 years agoIndonesian translation by Zaenal Mutaqin
Dmitry Gorbachev [Tue, 27 Feb 2007 00:04:43 +0000 (00:04 +0000)]
Indonesian translation by Zaenal Mutaqin

svn path=/trunk/; revision=25911

13 years agoAdded:
Dominique Cote [Mon, 26 Feb 2007 20:22:55 +0000 (20:22 +0000)]
Added:
FsRtlPrepareMdlWriteDev()
FsRtlMdlWriteCompleteDev()
FsRtlPrepareMdlWrite()
FsRtlMdlWriteComplete()

svn path=/trunk/; revision=25910

13 years agoReformatted, for real
KJK::Hyperion [Mon, 26 Feb 2007 15:55:43 +0000 (15:55 +0000)]
Reformatted, for real

svn path=/trunk/; revision=25909

13 years agomodified include/reactos/libs/pseh/framebased.h
KJK::Hyperion [Mon, 26 Feb 2007 15:32:19 +0000 (15:32 +0000)]
modified   include/reactos/libs/pseh/framebased.h
   Removed some bad optimization ideas that never worked anyway. If you want optimization, use the uglier _SEHX macros. If you enjoy several huge, non-optimizable nested loops in all of your functions, just keep using the _SEH form

deleted    include/reactos/libs/pseh/native.h
deleted    include/reactos/libs/pseh/prettybased.h
   Deleted some really bad ideas that nobody used or maintained anyway

All and all else
   Reformatted. Goodbye one-space indentation, hello tabs

svn path=/trunk/; revision=25908

13 years agoIndonesian translation (Zaenal Mutaqin)
Dmitry Gorbachev [Mon, 26 Feb 2007 14:37:09 +0000 (14:37 +0000)]
Indonesian translation (Zaenal Mutaqin)

svn path=/trunk/; revision=25907