reactos.git
14 years agoUse Uint32x32To64() function instead of ULONG * ULONG. Fixes partition length truncation.
Aleksey Bragin [Thu, 16 Nov 2006 17:26:31 +0000 (17:26 +0000)]
Use Uint32x32To64() function instead of ULONG * ULONG. Fixes partition length truncation.
See issue #1871 for more details.

svn path=/trunk/; revision=24769

14 years agoremove two compiling warnings thx frik85 to notice it.
Magnus Olsen [Thu, 16 Nov 2006 15:56:10 +0000 (15:56 +0000)]
remove two compiling warnings thx frik85 to notice it.

svn path=/trunk/; revision=24768

14 years ago- Purposefully add 6 debug prints to RtlpGetRegistryHandle, which, while ndis.sys...
Alex Ionescu [Thu, 16 Nov 2006 07:09:37 +0000 (07:09 +0000)]
- Purposefully add 6 debug prints to RtlpGetRegistryHandle, which, while ndis.sys is initializing, should BSOD the system. I have seen this "RtlpGetRegistryHandle" BSOD randomly during boot (But always with the same stack trace), and a local HAL patch managed to cause it 100% of the time. I know that the problem had nothing to do with the HAL or registry paths, because it came up before too when I added debug prints to fstub. These 6 prints 100% reproduce the problem on my machine with GCC 3.4.5. It is my hope it will do the same for everyone. This is a nasty bug, either stack related or some critical structure is being damaged. I am breaking trunk because it's been here for a long time, but now I found a way to repro it so that we can work together to try finding it. In a way, trunk was always broken, but this patch should force a freeze. Please help.

svn path=/trunk/; revision=24767

14 years ago- Remove internal HAL function from ntifs
Alex Ionescu [Thu, 16 Nov 2006 06:55:59 +0000 (06:55 +0000)]
- Remove internal HAL function from ntifs
- Make sure obfuncs.h includes obtypes.h if it's ever included separately.
- Add ARC_STATUS and ARC Error Codes.

svn path=/trunk/; revision=24766

14 years agoFix some compilation errors
Thomas Bluemel [Wed, 15 Nov 2006 20:24:55 +0000 (20:24 +0000)]
Fix some compilation errors

svn path=/trunk/; revision=24765

14 years agoProperly use the second param.
Aleksey Bragin [Wed, 15 Nov 2006 16:57:15 +0000 (16:57 +0000)]
Properly use the second param.

svn path=/trunk/; revision=24764

14 years agoFix build by:
Aleksey Bragin [Wed, 15 Nov 2006 10:42:46 +0000 (10:42 +0000)]
Fix build by:
 - Matching HAL MP HalStartNextProcessor() and commenting out a call to HaliStartApplicationProcessor() (because it needs ProcessorContext). Proper fix should be done.
 - Removing HalReportResourceUsage from MP version, and marking what it did differently as FIXME in the generic version.

svn path=/trunk/; revision=24763

14 years ago- Export ExiTryToAcquireFastMutex from ntoskrnl, I had forgotten to export this ages...
Alex Ionescu [Wed, 15 Nov 2006 00:08:51 +0000 (00:08 +0000)]
- Export ExiTryToAcquireFastMutex from ntoskrnl, I had forgotten to export this ages ago when adding the other Exi*FastMutex* stuff.
- Remove fmutex.c and fastmutex functions from HAL. The whole point of having the Exi ones in the kernel was that HAL calls them through forward exports now (so any old driver can still link with HAL). Now we don't duplicate the implementation anymore.
- Remove DriverEntry, it's useless. Also move HalReportResourceUsage to halinit because it's a call-once-on-boot function much akin a HalInitPhase2 function, so delete resource.c
- Keep track of interrupt affinity and active processor mask each time a new CPU initializes.

svn path=/trunk/; revision=24762

14 years ago- split the main header file into seperate files as it was becoming annoying to maintain
Ged Murphy [Tue, 14 Nov 2006 23:15:02 +0000 (23:15 +0000)]
- split the main header file into seperate files as it was becoming annoying to maintain
- split the open / new file code
- Add a dialog for adjusting the brightness. The code for adjusting the brightness will follow soon, as will many other image adjusting dialogs.
- change the menus to show the image adjustment tools which will be present
- remove the horrible image property dialog code. I'll rewrite it at a later stage
- Set Arial as the default font
- fix a few API's to be 64-bit compatable
- reduce msvc warnings

svn path=/trunk/; revision=24761

14 years ago- Build fixes.
Alex Ionescu [Tue, 14 Nov 2006 22:42:59 +0000 (22:42 +0000)]
- Build fixes.

svn path=/trunk/; revision=24760

14 years ago- Delete HAL cruft files.
Alex Ionescu [Tue, 14 Nov 2006 20:59:48 +0000 (20:59 +0000)]
- Delete HAL cruft files.
- Implement (or cleanup + mark as implemented, these are 4 line functions) HalDisplayString, HalAcquireDisplayOwnership, HalSetDisplayParameters, HalQueryDisplayParameters, HalInitailizeProcessor, HalAllProcessorsStarted, HalStartNextProcessor, HalProcessorIdle, HalRequestIpi.
- Fix some prototype definitions and cleanup some formatting.

svn path=/trunk/; revision=24759

14 years agoDon't force screensaver file names to have at least 4 chars
Hervé Poussineau [Tue, 14 Nov 2006 18:35:29 +0000 (18:35 +0000)]
Don't force screensaver file names to have at least 4 chars
Terminate the string just after the last read character.

svn path=/trunk/; revision=24758

14 years ago- Implement HalSystemVectorDispatchEntry, KeFlushWriteBuffer, HalFlushCommonBuffer...
Alex Ionescu [Tue, 14 Nov 2006 18:17:33 +0000 (18:17 +0000)]
- Implement HalSystemVectorDispatchEntry, KeFlushWriteBuffer, HalFlushCommonBuffer, HalAllocateCrashDumpRegisters.
- Add lots of missing PCI definitions to the DDK, and to the internal file pci.h
- Make HAL compilable with the WDK thanks to a nice hack/trick I found.

svn path=/trunk/; revision=24757

14 years ago- print debug logs on stdout
Johannes Anderwald [Tue, 14 Nov 2006 17:10:26 +0000 (17:10 +0000)]
- print debug logs on stdout
- sysreg is now ready for deployment

svn path=/trunk/; revision=24756

14 years ago- dump reached checkpoints when an BSOD is detected
Johannes Anderwald [Tue, 14 Nov 2006 16:58:42 +0000 (16:58 +0000)]
- dump reached checkpoints when an BSOD is detected
- dump rest of log file when a BSOD is detected
- write debugging data to ROSBOOT_DEBUG_FILE when reading from a pipe
- update configuration files
- silence debug print in sym_file.cpp

svn path=/trunk/; revision=24755

14 years ago- update testboot script
Johannes Anderwald [Tue, 14 Nov 2006 16:51:32 +0000 (16:51 +0000)]
- update testboot script

svn path=/trunk/; revision=24754

14 years agofixing Usurp bug repot in irc channel, if a screensaver does not exists it try execut...
Magnus Olsen [Tue, 14 Nov 2006 16:50:47 +0000 (16:50 +0000)]
fixing Usurp bug repot in irc channel, if a screensaver does not exists it try execute a no exiting screensaver it make reactos freze on real hw and in qemu, acoring Usurp. With this change it does not longer freze and does not either try execute a no existing screensaver. Thx Usurp for testing it.

svn path=/trunk/; revision=24753

14 years ago- ignore failure if dir already exists
Johannes Anderwald [Tue, 14 Nov 2006 16:26:15 +0000 (16:26 +0000)]
- ignore failure if dir already exists

svn path=/trunk/; revision=24752

14 years ago- update svn properties
Johannes Anderwald [Tue, 14 Nov 2006 12:58:52 +0000 (12:58 +0000)]
- update svn properties
- improve error checking
- return -2 when the test fails
- add a few test configs (required for sysregtest target)

svn path=/trunk/; revision=24751

14 years ago- implement target sysregtest which compiles all required modules and generates an...
Johannes Anderwald [Tue, 14 Nov 2006 12:47:42 +0000 (12:47 +0000)]
- implement target sysregtest which compiles all required modules and generates an unattended bootcdregtest which is feed to sysregtest and executes the required tests
- fix regtest target

svn path=/trunk/; revision=24750

14 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Mon, 13 Nov 2006 15:20:30 +0000 (15:20 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=24747

14 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Mon, 13 Nov 2006 14:51:39 +0000 (14:51 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=24746

14 years agoDmitry G. Gorbachev: After kbd controller init, the System Flag should be set to 1.
Aleksey Bragin [Mon, 13 Nov 2006 12:40:02 +0000 (12:40 +0000)]
Dmitry G. Gorbachev: After kbd controller init, the System Flag should be set to 1.

Fixes rebooting on real hardware (famous "Flushing cache" hang).
See issue #1842 for more details.

svn path=/trunk/; revision=24744

14 years agoDelete unneeded files
Aleksey Bragin [Mon, 13 Nov 2006 10:14:08 +0000 (10:14 +0000)]
Delete unneeded files

svn path=/trunk/; revision=24743

14 years ago- Make HalMakeBeep a bit nicer by making the PUCHAR typedef part of the TIMER constants.
Alex Ionescu [Mon, 13 Nov 2006 04:34:57 +0000 (04:34 +0000)]
- Make HalMakeBeep a bit nicer by making the PUCHAR typedef part of the TIMER constants.

svn path=/trunk/; revision=24742

14 years ago- Add some more descriptive comments to HalpReboot (and rename it from HalReboot...
Alex Ionescu [Mon, 13 Nov 2006 04:33:45 +0000 (04:33 +0000)]
- 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

14 years ago- Re-implement messy portio.c by using MSVC-compatible intrinsics instead. 20 lines...
Alex Ionescu [Mon, 13 Nov 2006 04:31:39 +0000 (04:31 +0000)]
- Re-implement messy portio.c by using MSVC-compatible intrinsics instead. 20 lines of code become 1, yay!

svn path=/trunk/; revision=24740

14 years ago- Fix a typo in DbgkCreateThread which caused a boot-time crash/regression.
Alex Ionescu [Mon, 13 Nov 2006 01:47:10 +0000 (01:47 +0000)]
- Fix a typo in DbgkCreateThread which caused a boot-time crash/regression.

svn path=/trunk/; revision=24739

14 years ago- Fix build error.
Alex Ionescu [Sun, 12 Nov 2006 23:32:11 +0000 (23:32 +0000)]
- Fix build error.

svn path=/trunk/; revision=24738

14 years ago- FSTUB Patch for Mount Manager Support, Part 1:
Alex Ionescu [Sun, 12 Nov 2006 22:51:06 +0000 (22:51 +0000)]
- 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

14 years ago- Move out SEH-support routines from ntoskrnl/rtl to lib/rtl
Alex Ionescu [Sun, 12 Nov 2006 22:43:43 +0000 (22:43 +0000)]
- 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

14 years ago- Implement IoSetCompletionRoutineEx, which is a safe way to set completion routines...
Alex Ionescu [Sun, 12 Nov 2006 22:39:09 +0000 (22:39 +0000)]
- 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

14 years ago- Argh, another forgotten file. Too many local changes :(
Alex Ionescu [Sun, 12 Nov 2006 22:37:52 +0000 (22:37 +0000)]
- Argh, another forgotten file. Too many local changes :(

svn path=/trunk/; revision=24734

14 years ago- Apologies, forgot these two files for the Dbgk patch.
Alex Ionescu [Sun, 12 Nov 2006 22:36:21 +0000 (22:36 +0000)]
- 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

14 years ago- Implement MmAddVerifierThunks, MmIsDriverVerifying, MmIsVerifierEnabled.
Alex Ionescu [Sun, 12 Nov 2006 22:34:28 +0000 (22:34 +0000)]
- Implement MmAddVerifierThunks, MmIsDriverVerifying, MmIsVerifierEnabled.
- Not used by anything, these are for 3rd-party drivers and Driver Verifier.

svn path=/trunk/; revision=24732

14 years ago- Fix flags in DbgkpSectionToFileHandle
Alex Ionescu [Sun, 12 Nov 2006 22:33:04 +0000 (22:33 +0000)]
- Fix flags in DbgkpSectionToFileHandle
- Implement DbgkpCreateThread.
- Implement DbgkpSetProcessDebugObject.

svn path=/trunk/; revision=24731

14 years ago- Cleanup fastio.c
Alex Ionescu [Sun, 12 Nov 2006 22:31:45 +0000 (22:31 +0000)]
- 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

14 years ago- Add CcFastMdlReadWait extern to ntifs.h
Alex Ionescu [Sun, 12 Nov 2006 22:27:10 +0000 (22:27 +0000)]
- 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

14 years ago- fix a bug freeing memory for floating windows.
Ged Murphy [Sun, 12 Nov 2006 20:13:39 +0000 (20:13 +0000)]
- fix a bug freeing memory for floating windows.
- ShowHideWindow needs no more than a Window handle

svn path=/trunk/; revision=24728

14 years ago- add dbgprint tool as optional tool
Johannes Anderwald [Sun, 12 Nov 2006 13:37:02 +0000 (13:37 +0000)]
- add dbgprint tool as optional tool

svn path=/trunk/; revision=24727

14 years agoBroaden a lock to prevent a race for completion of the receive IRP. Fixes
Art Yerkes [Sun, 12 Nov 2006 10:01:56 +0000 (10:01 +0000)]
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

14 years agoFix a typo in the library name. kbdv.dll -> kbddv.dll
Eric Kohl [Sat, 11 Nov 2006 21:29:10 +0000 (21:29 +0000)]
Fix a typo in the library name. kbdv.dll -> kbddv.dll

svn path=/trunk/; revision=24725

14 years ago- fix typo, identation, grammar in multiple german resource files
Johannes Anderwald [Sat, 11 Nov 2006 21:13:38 +0000 (21:13 +0000)]
- fix typo, identation, grammar in multiple german resource files
- patch by maku
See issue #1847 for more details.

svn path=/trunk/; revision=24724

14 years ago- fix text box alignment
Johannes Anderwald [Sat, 11 Nov 2006 20:53:52 +0000 (20:53 +0000)]
- fix text box alignment
- spotted by Coviti
- patch by Coviti

See issue #1860 for more details.

svn path=/trunk/; revision=24723

14 years agoKbdLayerDescriptor is a STDCALL function.
Eric Kohl [Sat, 11 Nov 2006 20:33:06 +0000 (20:33 +0000)]
KbdLayerDescriptor is a STDCALL function.

svn path=/trunk/; revision=24722

14 years ago- use dbgprint tool to output debug messages
Johannes Anderwald [Sat, 11 Nov 2006 16:41:52 +0000 (16:41 +0000)]
- use dbgprint tool to output debug messages

svn path=/trunk/; revision=24721

14 years ago- add a primitive tool to output text via DbgPrint
Johannes Anderwald [Sat, 11 Nov 2006 16:07:35 +0000 (16:07 +0000)]
- add a primitive tool to output text via DbgPrint

svn path=/trunk/; revision=24720

14 years agoMake SystemConfigurationDataQueryRoutine() store information about as many drives...
Aleksey Bragin [Sat, 11 Nov 2006 13:17:58 +0000 (13:17 +0000)]
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

14 years ago- Set correct flags when calling Nt* functions during file copy
Hervé Poussineau [Fri, 10 Nov 2006 21:00:24 +0000 (21:00 +0000)]
- 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

14 years agoMove some files to subdirectories. No code change.
Hervé Poussineau [Fri, 10 Nov 2006 18:20:00 +0000 (18:20 +0000)]
Move some files to subdirectories. No code change.

svn path=/trunk/; revision=24717

14 years ago- add a sample bootchecking script (running after 3rd boot)
Johannes Anderwald [Fri, 10 Nov 2006 13:03:30 +0000 (13:03 +0000)]
- 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

14 years agoSync up PATH_Arc and PATH_Ellipse with Wine.
James Tabor [Fri, 10 Nov 2006 12:50:34 +0000 (12:50 +0000)]
Sync up PATH_Arc and PATH_Ellipse with Wine.

svn path=/trunk/; revision=24713

14 years ago- add documentation for GuiRunOnce
Johannes Anderwald [Fri, 10 Nov 2006 11:17:17 +0000 (11:17 +0000)]
- add documentation for GuiRunOnce

svn path=/trunk/; revision=24712

14 years ago- implement a GuiRunOnce section for unatttended setup
Johannes Anderwald [Fri, 10 Nov 2006 11:16:38 +0000 (11:16 +0000)]
- 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

14 years agoThe one that got away...
Ged Murphy [Thu, 9 Nov 2006 20:45:52 +0000 (20:45 +0000)]
The one that got away...
...add file with the code for writing the font data

svn path=/trunk/; revision=24710

14 years ago- add some font data to the combo boxes
Ged Murphy [Thu, 9 Nov 2006 20:28:29 +0000 (20:28 +0000)]
- add some font data to the combo boxes

svn path=/trunk/; revision=24709

14 years agodon't force usage of warning.h as it breaks building on msvc unless the WDK is installed.
Ged Murphy [Thu, 9 Nov 2006 18:47:05 +0000 (18:47 +0000)]
don't force usage of warning.h as it breaks building on msvc unless the WDK is installed.

svn path=/trunk/; revision=24708

14 years agoFor windows with WS_EX_DLGMODALFRAME sysmenu can be opened only by right mouse click...
Saveliy Tretiakov [Thu, 9 Nov 2006 18:34:36 +0000 (18:34 +0000)]
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

14 years agoCorrectly clear DO_DEVICE_INITIALIZING flag
Hervé Poussineau [Thu, 9 Nov 2006 12:38:40 +0000 (12:38 +0000)]
Correctly clear DO_DEVICE_INITIALIZING flag
See issue #1862 for more details.

svn path=/trunk/; revision=24706

14 years ago- revert part of 24701 as requested on ml
Johannes Anderwald [Thu, 9 Nov 2006 06:58:56 +0000 (06:58 +0000)]
- 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

14 years agoIncremental changes, adding new Create and Delete DC functions and support structures.
James Tabor [Thu, 9 Nov 2006 01:45:42 +0000 (01:45 +0000)]
Incremental changes, adding new Create and Delete DC functions and support structures.

svn path=/trunk/; revision=24704

14 years ago- create a pretty combobox custom control which resembles the one in MS Office as...
Ged Murphy [Wed, 8 Nov 2006 19:27:57 +0000 (19:27 +0000)]
- 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

14 years ago- fix drawing on the memory device to be the same as the screen, not that it really...
Ged Murphy [Wed, 8 Nov 2006 17:37:30 +0000 (17:37 +0000)]
- 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

14 years agoset most of trunk svn property eol-style:native
Johannes Anderwald [Wed, 8 Nov 2006 11:47:44 +0000 (11:47 +0000)]
set most of trunk svn property eol-style:native

svn path=/trunk/; revision=24701

14 years ago- Remove WRITE/READ_REG_XXX functions written in C and write them in optimized assemb...
Alex Ionescu [Tue, 7 Nov 2006 14:44:32 +0000 (14:44 +0000)]
- 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

14 years ago- this should go to the debug port but not to the screen
Johannes Anderwald [Tue, 7 Nov 2006 00:12:24 +0000 (00:12 +0000)]
- this should go to the debug port but not to the screen

svn path=/trunk/; revision=24698

14 years ago- improve namedpipe_reader parsing of lines code
Johannes Anderwald [Mon, 6 Nov 2006 23:50:03 +0000 (23:50 +0000)]
- improve namedpipe_reader parsing of lines code
- it should now be able handle partial / full lines

svn path=/trunk/; revision=24697

14 years ago- fix a devasting bug (introduced by me)
Johannes Anderwald [Mon, 6 Nov 2006 11:03:57 +0000 (11:03 +0000)]
- fix a devasting bug (introduced by me)
Sorry JaixBly...

svn path=/trunk/; revision=24694

14 years agoRevert 24074 by Saveliy Tretiakov until correct fix available. Fixes bug with moveabl...
Aleksey Bragin [Mon, 6 Nov 2006 10:20:40 +0000 (10:20 +0000)]
Revert 24074 by Saveliy Tretiakov until correct fix available. Fixes bug with moveable calculator buttons.

svn path=/trunk/; revision=24693

14 years agoadded missing copyright information
Christoph von Wittich [Sun, 5 Nov 2006 22:55:11 +0000 (22:55 +0000)]
added missing copyright information

svn path=/trunk/; revision=24692

14 years agoimplemented timeout settings on startup and recovery page
Christoph von Wittich [Sun, 5 Nov 2006 22:53:48 +0000 (22:53 +0000)]
implemented timeout settings on startup and recovery page

svn path=/trunk/; revision=24691

14 years ago1. Fixed some vc warings and fault
Magnus Olsen [Sun, 5 Nov 2006 21:19:53 +0000 (21:19 +0000)]
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

14 years ago- Added missing variable for the SMP build, noticed by Usurp.
Peter Ward [Sun, 5 Nov 2006 21:00:42 +0000 (21:00 +0000)]
- Added missing variable for the SMP build, noticed by Usurp.
- Trimmed trailing white-space.

svn path=/trunk/; revision=24689

14 years ago- read lines into a vector of string lines
Johannes Anderwald [Sun, 5 Nov 2006 20:51:02 +0000 (20:51 +0000)]
- 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

14 years ago- Add hal.h from TinyKRNL containing internal definitions for fstub (MBR, Partiton...
Alex Ionescu [Sun, 5 Nov 2006 20:44:38 +0000 (20:44 +0000)]
- Add hal.h from TinyKRNL containing internal definitions for fstub (MBR, Partiton Table, Partition Table Entry, Layout structures) and helper macros. Some structures come from disk.sys sample in the DDK.

svn path=/trunk/; revision=24687

14 years ago- disk.sys: Don't fail IOCTL_GET_PARTITION_INFO for Partition 0. This is perfectly...
Alex Ionescu [Sun, 5 Nov 2006 20:43:07 +0000 (20:43 +0000)]
- disk.sys: Don't fail IOCTL_GET_PARTITION_INFO for Partition 0. This is perfectly valid (and needed for some code I'll add later).
- IopGetDiskInformation: Treat the partition buffer as a simple PULONG array.
- KeUpdateSystemTime: Fix memory addressing to silence GAS compile-time warning.

svn path=/trunk/; revision=24686

14 years ago- Simplify LPC Message allocation with an LpcpAllocateFromPortZone macro.
Alex Ionescu [Sun, 5 Nov 2006 20:31:35 +0000 (20:31 +0000)]
- Simplify LPC Message allocation with an LpcpAllocateFromPortZone macro.
- Move LPC Macros/inlines to lpc_x.h
- Implement LpcRequestPort.
- Fix a bug in CsrTerminateProcess which was setting up incorrect sizes for the LPC message.
- Add some debug output to csrss.
- NTLPC works perfectly now, except for a bug on shutdown which doesn't properly close LPC processes.

svn path=/trunk/; revision=24685

14 years ago- Fix boot.
Alex Ionescu [Sun, 5 Nov 2006 20:28:59 +0000 (20:28 +0000)]
- Fix boot.
- Fix GUI boot (bootvid).
- Fix cmlib bug.

svn path=/trunk/; revision=24684

14 years agoPart of the Win32k User32 Compatibility Project.
James Tabor [Mon, 30 Oct 2006 19:38:37 +0000 (19:38 +0000)]
Part of the Win32k User32 Compatibility Project.
- Create IntLoadKeyboardLayout
- Code assimilated from win32k ntuser keyboard.c and Wine.
- Process and load a new keyboard layout.
- Creates the HKL for processing in NtUserLoadKeyboardLayoutEx.
- Load and computes module offset so NtUserLoadKeyboardLayoutEx can process it (read it in), load (EngLoadImage) and set the table entry point. This data is saved in a new structure connected to a list of keyboard layouts that was created during win32k init.

svn path=/trunk/; revision=24683

14 years ago- In my fear of accidentally comitting NTLPC = 1, I forgot to make the initial NTLPC...
Alex Ionescu [Mon, 30 Oct 2006 19:20:08 +0000 (19:20 +0000)]
- In my fear of accidentally comitting NTLPC = 1, I forgot to make the initial NTLPC = 0 commit, so LPC was never getting compiled at all. This fixes it.

svn path=/trunk/; revision=24682

14 years ago- Properly initialize the Port Message header in NTDLL's Csr Routines and Win32k...
Alex Ionescu [Mon, 30 Oct 2006 19:12:17 +0000 (19:12 +0000)]
- Properly initialize the Port Message header in NTDLL's Csr Routines and Win32k's as well.
- It is now possible to boot into GUI and use the Command Line/Console (heavy LPC user) in NTLPC mode.
- NTLPC is still disabled in trunk however, because there are still bugs and missing functionality.

svn path=/trunk/; revision=24681

14 years ago- Use Emanuelle's design for SMSS's LPC Code in CSRSS as well so that it can be porta...
Alex Ionescu [Mon, 30 Oct 2006 18:45:22 +0000 (18:45 +0000)]
- Use Emanuelle's design for SMSS's LPC Code in CSRSS as well so that it can be portable between ROS LPC and NT LPC.

svn path=/trunk/; revision=24680

14 years ago- Fix incorrect parameter shuffle in NtAcceptConnectPort. CSRSS now initializes prope...
Alex Ionescu [Mon, 30 Oct 2006 17:04:49 +0000 (17:04 +0000)]
- Fix incorrect parameter shuffle in NtAcceptConnectPort. CSRSS now initializes properly and kernel32 gets loaded, but fails when connecting.

svn path=/trunk/; revision=24679

14 years ago- Add support for mapping the client section in NtAcceptConnectPort.
Alex Ionescu [Mon, 30 Oct 2006 16:54:45 +0000 (16:54 +0000)]
- Add support for mapping the client section in NtAcceptConnectPort.

svn path=/trunk/; revision=24678

14 years ago- Fix parameter checks in NtAcceptConnectPort.
Alex Ionescu [Mon, 30 Oct 2006 16:50:20 +0000 (16:50 +0000)]
- Fix parameter checks in NtAcceptConnectPort.
- Make CSRSS properly fill out the ServerView structure's length so that it can be validated by the kernel.

svn path=/trunk/; revision=24677

14 years ago- Add support for secure LPC. However, we always return success atm because SeQueryIn...
Alex Ionescu [Mon, 30 Oct 2006 16:45:54 +0000 (16:45 +0000)]
- Add support for secure LPC. However, we always return success atm because SeQueryInformationToken is not implemented. (Someone needs to refactor NtQueryInformationToken).

svn path=/trunk/; revision=24676

14 years ago- Add support for Client/RemoteView in NtSecureConnectPort. Still lacking support...
Alex Ionescu [Mon, 30 Oct 2006 16:39:19 +0000 (16:39 +0000)]
- Add support for Client/RemoteView in NtSecureConnectPort. Still lacking support for SID (needed for Csr)

svn path=/trunk/; revision=24675

14 years ago- Add correct calls to NtAcceptConnectPort if NTLPC is used. Now we freeze because...
Alex Ionescu [Mon, 30 Oct 2006 16:21:21 +0000 (16:21 +0000)]
- Add correct calls to NtAcceptConnectPort if NTLPC is used. Now we freeze because CSRSS uses client/server views so I have to implement that.

svn path=/trunk/; revision=24674

14 years ago- Implement NtRequestWaitReplyPort. This is a simple implementation that doesn't...
Alex Ionescu [Mon, 30 Oct 2006 14:50:31 +0000 (14:50 +0000)]
- Implement NtRequestWaitReplyPort. This is a simple implementation that doesn't support Callback LPC Messages yet (Since we don't make use of them). SMSS can now send API messages on the Sb Port.
- With these APIs we now have a skeleton NTLPC that is fully NT-compatible. Thanks to ea's (Emanuele)'s smss work which he strived to make portable, building with NTLPC = 1 will also build a compatible smss that now works.
- CSRSS requires some changes since it was not written to be NTLPC portable.

svn path=/trunk/; revision=24673

14 years ago- Implement NtSecureConnectPort so that clients can connect to SMSS. Does not yet...
Alex Ionescu [Mon, 30 Oct 2006 14:46:56 +0000 (14:46 +0000)]
- Implement NtSecureConnectPort so that clients can connect to SMSS. Does not yet support actual secure connections (with a SID) and will fail those requests. Also doesn't support memory-mapped LPC yet.

svn path=/trunk/; revision=24672

14 years ago- Implement NtCompleteConnectPort. SMSS can now completely accept new incoming connec...
Alex Ionescu [Mon, 30 Oct 2006 14:45:07 +0000 (14:45 +0000)]
- Implement NtCompleteConnectPort. SMSS can now completely accept new incoming connections.

svn path=/trunk/; revision=24671

14 years ago- Implement NtAcceptConnectPort. This is a naive implementation that doesn't support...
Alex Ionescu [Mon, 30 Oct 2006 14:44:05 +0000 (14:44 +0000)]
- Implement NtAcceptConnectPort. This is a naive implementation that doesn't support memory-mapped LPC yet (since it's not used by SMSS). Such LPC messages will hit an ASSERT for now (when they do, I'll implement the missing functionalitY).

svn path=/trunk/; revision=24670

14 years ago- Implement NtReplyWaitReceivePortEx (And LpcpSave/FreeDataInfoMessage and LpcpMoveMe...
Alex Ionescu [Mon, 30 Oct 2006 14:42:07 +0000 (14:42 +0000)]
- Implement NtReplyWaitReceivePortEx (And LpcpSave/FreeDataInfoMessage and LpcpMoveMessage). SMSS can now respond to connection attempts.

svn path=/trunk/; revision=24669

14 years ago- Implement NtListenPort as a wrapper around NtReplyWaitReceivePort that only listens...
Alex Ionescu [Mon, 30 Oct 2006 14:32:18 +0000 (14:32 +0000)]
- Implement NtListenPort as a wrapper around NtReplyWaitReceivePort that only listens for connection requests. SMSS can now do this.

svn path=/trunk/; revision=24668

14 years ago- Implement LpcpCreatePort (And LpcpInitializePortQueue). SMSS can now create the...
Alex Ionescu [Mon, 30 Oct 2006 14:30:20 +0000 (14:30 +0000)]
- Implement LpcpCreatePort (And LpcpInitializePortQueue). SMSS can now create the Sb API Port.

svn path=/trunk/; revision=24667

14 years ago- Add lpc\ntlpc directory when NTLPC = 1.
Alex Ionescu [Mon, 30 Oct 2006 14:28:50 +0000 (14:28 +0000)]
- Add lpc\ntlpc directory when NTLPC = 1.
- Add function stubs in appropriate files.
- Implement NtConnectPort (stub to NtSecureConnectPort). Implement NtReplyWaitReceivePort (stub to NtReplyWaitReceivePortEx). Everything else is unimplemented.
- Implement LpcpInitSystem and object callbacks LpcpDeletePort and LpcpClosePort.
- Add internal lpc.h header.

svn path=/trunk/; revision=24666

14 years ago- Implement the rest of Hard Error support.
Alex Ionescu [Mon, 30 Oct 2006 14:20:45 +0000 (14:20 +0000)]
- Implement the rest of Hard Error support.
- Kernel support is complete (except temporary LPC hack), and CSRSS properly receives the event and sends it off to win32csr's hard error handler (much like on NT). However, the handler doesn't call NtUserHardErrorControl nor do much of the complex sequence of events that NT does, instead, we only display a hello-world style message box. Anyone up for implementing the rest is welcome.

svn path=/trunk/; revision=24665

14 years ago- SMSS: Send QOS structure when creating new ports, it's not optional on NT LPC....
Alex Ionescu [Mon, 30 Oct 2006 14:17:37 +0000 (14:17 +0000)]
- SMSS: Send QOS structure when creating new ports, it's not optional on NT LPC. Send maximum port length when creating new ports, it's not optional on NT LPC. Create 2 listening threads on NTLPC, instead of just one. [AUDIT: Unlock smlib, it's fully internal and specific to ROS without any relationship to NT. The author used clean-room tests and documentation].
- Fix various LPC structures in the NDK. Fix some prototypes too.
- Don't export PEPORT or PLPCP_PORT_OBJECT outside of /lpc and use PVOID isntead.
- Add a new RBUILD setting called NTLPC, which enables NTLPC when turned on.

svn path=/trunk/; revision=24664

14 years ago- zero complete buffer
Johannes Anderwald [Mon, 30 Oct 2006 12:58:35 +0000 (12:58 +0000)]
- zero complete buffer
- increase buffer when reading more data than current capacity

svn path=/trunk/; revision=24663

14 years ago-force include of warning.h from WDK
Christoph von Wittich [Mon, 30 Oct 2006 12:53:25 +0000 (12:53 +0000)]
-force include of warning.h from WDK
-removed CRT_SECURE_NO_DEPRECATE because it is declared in warning.h
-set warning level to /W3
-set calling convention to stdcall
-use nasmw for asm files

svn path=/trunk/; revision=24662