Commit graph

23006 commits

Author SHA1 Message Date
Alex Ionescu abe724dba9 - Make HalMakeBeep a bit nicer by making the PUCHAR typedef part of the TIMER constants.
svn path=/trunk/; revision=24742
2006-11-13 04:34:57 +00:00
Alex Ionescu 30c16d9652 - Add some more descriptive comments to HalpReboot (and rename it from HalReboot) since some of the operations lacked comments.
- Stall the CPU after each I/O command to simulate I/O delay.
- Flush write buffers before rebooting.
- Refactor sending the reset command since it's not always a matter of using the keyboard port.
- HalReturnToFirmware does a HalpReboot no matter what parameter is sent.

svn path=/trunk/; revision=24741
2006-11-13 04:33:45 +00:00
Alex Ionescu 0e8c70ba22 - Re-implement messy portio.c by using MSVC-compatible intrinsics instead. 20 lines of code become 1, yay!
svn path=/trunk/; revision=24740
2006-11-13 04:31:39 +00:00
Alex Ionescu 6652f94900 - Fix a typo in DbgkCreateThread which caused a boot-time crash/regression.
svn path=/trunk/; revision=24739
2006-11-13 01:47:10 +00:00
Alex Ionescu afb3f6c5c3 - Fix build error.
svn path=/trunk/; revision=24738
2006-11-12 23:32:11 +00:00
Alex Ionescu 4d578c637e - FSTUB Patch for Mount Manager Support, Part 1:
- Create new /fstub directory in the kernel tree and move iomgr's xhal functions there.
  - Delete disk.c entirely from iomgr.c and spread it across fstub.
  - Entirely reimplement from scratch IoWritePartitionTable, IoReadPartitionTable, IoSetPartitionInformation, HalExamineMbr. Lots of bug fixes in terms of wrong assumptions and compatibility with weird partition tables.
  - Fix prototype of IoAssignDriveLetters, but for now, keep the old code (xHalIoAssignDriveLetters) because this has not been rewritten yet.
  - Move some functions to fstubex.c for future implementation, and some to volume.c. Move the HAL table to halstub.c
  - Make use of the hal.h file commited earlier.
  - Move IoAssignDriveLetters from halfuncs to iofuncs.h
  - Implement missing functions in HAL (IoRead/Write/Set PartitionInfo) and make them call into the ntoskrnl exports.

svn path=/trunk/; revision=24737
2006-11-12 22:51:06 +00:00
Alex Ionescu 03d84cb508 - Move out SEH-support routines from ntoskrnl/rtl to lib/rtl
- Re-implement the routines in intel syntax and also cleanup the formatting.
- Also re-implement the way the routines work, by following Matt Pietrek's c code that he wrote in one of his articles after looking at the disassembly.
- Also used a patch for mingw found on Google which contained some implementations in C.
- New changes mostly add protection during unwinding, faster speed, and add implementations for __except_handler2 and _abnormal_termination which were not previously present.

svn path=/trunk/; revision=24736
2006-11-12 22:43:43 +00:00
Alex Ionescu b66b8bdcea - Implement IoSetCompletionRoutineEx, which is a safe way to set completion routines that almost all newer drivers will be using (XP+).
svn path=/trunk/; revision=24735
2006-11-12 22:39:09 +00:00
Alex Ionescu 1c3d0f91a1 - Argh, another forgotten file. Too many local changes :(
svn path=/trunk/; revision=24734
2006-11-12 22:37:52 +00:00
Alex Ionescu 9bb38bc012 - Apologies, forgot these two files for the Dbgk patch.
- Adds PsNtDllPathName constant string since we use it in two place (PsLocateSystemDll and DbgkpCreateThread).
- Adds PsImageNotifyEnabled boolean flag and sets it to true (although it should only be when a routine is installed, but ROS doesn't do this yet.

svn path=/trunk/; revision=24733
2006-11-12 22:36:21 +00:00
Alex Ionescu 29a0679654 - Implement MmAddVerifierThunks, MmIsDriverVerifying, MmIsVerifierEnabled.
- Not used by anything, these are for 3rd-party drivers and Driver Verifier.

svn path=/trunk/; revision=24732
2006-11-12 22:34:28 +00:00
Alex Ionescu 00418f00bf - Fix flags in DbgkpSectionToFileHandle
- Implement DbgkpCreateThread.
- Implement DbgkpSetProcessDebugObject.

svn path=/trunk/; revision=24731
2006-11-12 22:33:04 +00:00
Alex Ionescu 5415ad9497 - Cleanup fastio.c
- Implement FsRtlMdlReadDev (this function is not called, no risk of regressions).
- Move FsRtlAcquireFileExclusive and FsRtlReleaseFileExclusive from filelock.c to fastio.c.
- Bugfix these functions to actually call FsRtlEnter/ExitFileSystem.
- Huge cleanusp of filelock.c, but no code changes, except the usage of some simpler macros provided by NTIFS.H (with equivalent code).

svn path=/trunk/; revision=24730
2006-11-12 22:31:45 +00:00
Alex Ionescu 49c35d197f - Add CcFastMdlReadWait extern to ntifs.h
- Add FsRtlCompleteRequest macro to ntifs.h
- Add LDRP_DRIVER_VERIFYING flag to ldrtypes.h
- Add MM_DRIVER_VERIFIER_DATA and DRIVER_SPECIFIED_DRIVER_THUNKS to mmtypes.h
- Add MAXLONGLONG to ntdef.h.

svn path=/trunk/; revision=24729
2006-11-12 22:27:10 +00:00
Ged Murphy c77ef10192 - fix a bug freeing memory for floating windows.
- ShowHideWindow needs no more than a Window handle

svn path=/trunk/; revision=24728
2006-11-12 20:13:39 +00:00
Johannes Anderwald 48e98be889 - add dbgprint tool as optional tool
svn path=/trunk/; revision=24727
2006-11-12 13:37:02 +00:00
Art Yerkes 4f1dd7e361 Broaden a lock to prevent a race for completion of the receive IRP. Fixes
some crashes while receiving from a fast remote host under load.

svn path=/trunk/; revision=24726
2006-11-12 10:01:56 +00:00
Eric Kohl 250bddf673 Fix a typo in the library name. kbdv.dll -> kbddv.dll
svn path=/trunk/; revision=24725
2006-11-11 21:29:10 +00:00
Johannes Anderwald dff9cbd270 - fix typo, identation, grammar in multiple german resource files
- patch by maku
See issue #1847 for more details.

svn path=/trunk/; revision=24724
2006-11-11 21:13:38 +00:00
Johannes Anderwald b32dec065a - fix text box alignment
- spotted by Coviti
- patch by Coviti

See issue #1860 for more details.

svn path=/trunk/; revision=24723
2006-11-11 20:53:52 +00:00
Eric Kohl ff30ee9de7 KbdLayerDescriptor is a STDCALL function.
svn path=/trunk/; revision=24722
2006-11-11 20:33:06 +00:00
Johannes Anderwald 89655cd6a2 - use dbgprint tool to output debug messages
svn path=/trunk/; revision=24721
2006-11-11 16:41:52 +00:00
Johannes Anderwald ee8ad2c335 - add a primitive tool to output text via DbgPrint
svn path=/trunk/; revision=24720
2006-11-11 16:07:35 +00:00
Aleksey Bragin d112ca4391 Make SystemConfigurationDataQueryRoutine() store information about as many drives as needed (previous version of the code did the same).
Fixes "no partitions list" bug in usetup introduced in 24718.

svn path=/trunk/; revision=24719
2006-11-11 13:17:58 +00:00
Hervé Poussineau eb77bd4e85 - Set correct flags when calling Nt* functions during file copy
- Fix reading of disks parameter in registry
- Keep FS name in unicode instead of char
- Don't hardcode more than once ReactOS directory on bootcd ('\reactos')
- Get screen dimensions only once (at startup)
- General cleanup (warnings...)
- Do some actions only if __REACTOS__ if defined. (I'm currently using them to debug usetup)

svn path=/trunk/; revision=24718
2006-11-10 21:00:24 +00:00
Hervé Poussineau 7885d994ff Move some files to subdirectories. No code change.
svn path=/trunk/; revision=24717
2006-11-10 18:20:00 +00:00
Johannes Anderwald 59ec217f00 - add a sample bootchecking script (running after 3rd boot)
- to enable 
1. copy testboot.bat.sample to testboot.bat
2. uncomment GuiRunOnce section in unattend.inf
3. add "cmd.exe /C %SystemRoot%\bin\testboot.bat"

svn path=/trunk/; revision=24714
2006-11-10 13:03:30 +00:00
James Tabor 065806e5f1 Sync up PATH_Arc and PATH_Ellipse with Wine.
svn path=/trunk/; revision=24713
2006-11-10 12:50:34 +00:00
Johannes Anderwald 445e9e71b5 - add documentation for GuiRunOnce
svn path=/trunk/; revision=24712
2006-11-10 11:17:17 +00:00
Johannes Anderwald 037bd166bc - implement a GuiRunOnce section for unatttended setup
- with this we launch programs after 3rd boot (programs / scripts)
- another a little step for sysreg :)

svn path=/trunk/; revision=24711
2006-11-10 11:16:38 +00:00
Ged Murphy d22e48600b The one that got away...
...add file with the code for writing the font data

svn path=/trunk/; revision=24710
2006-11-09 20:45:52 +00:00
Ged Murphy f5fe947177 - add some font data to the combo boxes
svn path=/trunk/; revision=24709
2006-11-09 20:28:29 +00:00
Ged Murphy f56d1e28ca don't force usage of warning.h as it breaks building on msvc unless the WDK is installed.
svn path=/trunk/; revision=24708
2006-11-09 18:47:05 +00:00
Saveliy Tretiakov 0b70008f89 For windows with WS_EX_DLGMODALFRAME sysmenu can be opened only by right mouse click ( new fix, no movable buttons in calculator)
svn path=/trunk/; revision=24707
2006-11-09 18:34:36 +00:00
Hervé Poussineau 9f9c29b952 Correctly clear DO_DEVICE_INITIALIZING flag
See issue #1862 for more details.

svn path=/trunk/; revision=24706
2006-11-09 12:38:40 +00:00
Johannes Anderwald 534b73b00f - revert part of 24701 as requested on ml
"It's plain wrong to set eol-style:native for files of type .dsp, *.dsw, *.vcproj, *.sln and some other files like chinese resource scripts"

svn path=/trunk/; revision=24705
2006-11-09 06:58:56 +00:00
James Tabor 8110686c9c Incremental changes, adding new Create and Delete DC functions and support structures.
svn path=/trunk/; revision=24704
2006-11-09 01:45:42 +00:00
Ged Murphy 73ce7bc885 - create a pretty combobox custom control which resembles the one in MS Office as the standard Windows/ReactOS combo box is ugly
- change ShowHideWindow to make it more reliable
- fix the second combobox positioning within the text toolbar
- hide all windows except the toolbar at startup (these will eventually be read from the registry)

svn path=/trunk/; revision=24703
2006-11-08 19:27:57 +00:00
Ged Murphy 329371d730 - fix drawing on the memory device to be the same as the screen, not that it really matters as it's just test code, but it's always nice to have correct test code ;)
- change typo for compilation unit name

svn path=/trunk/; revision=24702
2006-11-08 17:37:30 +00:00
Johannes Anderwald 9b71253be1 set most of trunk svn property eol-style:native
svn path=/trunk/; revision=24701
2006-11-08 11:47:44 +00:00
Alex Ionescu 6ba0dad7f1 - Remove WRITE/READ_REG_XXX functions written in C and write them in optimized assembly (no stack usage).
- Also flush posted write buffers during WRITE_XXX operations.

svn path=/trunk/; revision=24699
2006-11-07 14:44:32 +00:00
Johannes Anderwald 7fa7aee0e8 - this should go to the debug port but not to the screen
svn path=/trunk/; revision=24698
2006-11-07 00:12:24 +00:00
Johannes Anderwald 4a941a0b25 - improve namedpipe_reader parsing of lines code
- it should now be able handle partial / full lines

svn path=/trunk/; revision=24697
2006-11-06 23:50:03 +00:00
Johannes Anderwald 19c938e607 - fix a devasting bug (introduced by me)
Sorry JaixBly...

svn path=/trunk/; revision=24694
2006-11-06 11:03:57 +00:00
Aleksey Bragin cf213c0fc9 Revert 24074 by Saveliy Tretiakov until correct fix available. Fixes bug with moveable calculator buttons.
svn path=/trunk/; revision=24693
2006-11-06 10:20:40 +00:00
Christoph von Wittich 24fa497955 added missing copyright information
svn path=/trunk/; revision=24692
2006-11-05 22:55:11 +00:00
Christoph von Wittich 076aef2fb0 implemented timeout settings on startup and recovery page
svn path=/trunk/; revision=24691
2006-11-05 22:53:48 +00:00
Magnus Olsen 5b6863ed96 1. Fixed some vc warings and fault
2. Implement AcquireDDThreadLock, ReleaseDDThreadLock (does not working as it should yet)
3. Start making ddraw thread safe
4. Fixed some mirors bugs

svn path=/trunk/; revision=24690
2006-11-05 21:19:53 +00:00
Peter Ward 556dd785d7 - Added missing variable for the SMP build, noticed by Usurp.
- Trimmed trailing white-space.

svn path=/trunk/; revision=24689
2006-11-05 21:00:42 +00:00
Johannes Anderwald 69722e926c - read lines into a vector of string lines
- move os specific functions into an own file 
- fix a bug in command line options parsing
- add function for converting ansi2Unicode

svn path=/trunk/; revision=24688
2006-11-05 20:51:02 +00:00