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

14 years ago- use ReactOS_Debug as a default os when DBG && unattended setup mode is defined
Johannes Anderwald [Mon, 30 Oct 2006 12:41:17 +0000 (12:41 +0000)]
- use ReactOS_Debug as a default os when DBG && unattended setup mode is defined
- set timeout to zero in unattended mode && DBG defined

svn path=/trunk/; revision=24661

14 years agoImplement GetTickCount64
Thomas Bluemel [Mon, 30 Oct 2006 11:56:28 +0000 (11:56 +0000)]
Implement GetTickCount64

svn path=/trunk/; revision=24660

14 years agonow it is possible to build bootcd and bootcdregtest with the same tree (without...
Christoph von Wittich [Thu, 26 Oct 2006 08:45:16 +0000 (08:45 +0000)]
now it is possible to build bootcd and bootcdregtest with the same tree (without changing any files)

svn path=/trunk/; revision=24659

14 years ago- Make CSRSS register the default hard error port on startup.
Alex Ionescu [Thu, 26 Oct 2006 04:55:34 +0000 (04:55 +0000)]
- Make CSRSS register the default hard error port on startup.
- Stubplement the System Hard Error handler (it simply bugchecks)
- Fully implement ExRaiseHardError when called from user-mode so that the strings and parameters are properly captured into user-mode memory.
- Almost completely implement ExpRaiseHardError which is responsible for actually doing the error. However, ROS LPC is screwed up so sending the LPC Message crashes since the port isn't in a listening state or something.
- Would appreciate some advice on how to get the LPC message to CSRSS.
- Fix Get/SetErrorMode. The Native API uses an inverted value of SEM_FAILCRITICALERRORS, so this must be handled in win32.
- Cleanup formatting of RaiseException, and only normalize the paramter count if we're actualy going to use it.
- Implement LpcRequestWaitReplyPort as a big hack, but it should work.

svn path=/trunk/; revision=24658

14 years ago- Fix dozens of missing typecast errors.
Alex Ionescu [Thu, 26 Oct 2006 01:49:51 +0000 (01:49 +0000)]
- Fix dozens of missing typecast errors.
- Other MSVC/WDK compatibility fixes.

svn path=/trunk/; revision=24657

14 years agoadd build script
Martin Fuchs [Wed, 25 Oct 2006 21:10:38 +0000 (21:10 +0000)]
add build script

svn path=/trunk/; revision=24656

14 years agoadded GCC compatible chinese resource file translation of Larry Li <>
Martin Fuchs [Wed, 25 Oct 2006 20:58:04 +0000 (20:58 +0000)]
added GCC compatible chinese resource file translation of Larry Li <>

svn path=/trunk/; revision=24655

14 years agorename explorer-cn.rc to explorer-cn-msvc.rc (MSVC specific resource file encoding)
Martin Fuchs [Wed, 25 Oct 2006 20:54:46 +0000 (20:54 +0000)]
rename explorer-cn.rc to explorer-cn-msvc.rc (MSVC specific resource file encoding)

svn path=/trunk/; revision=24654

14 years agofix some issues when reading from a named pipe
Christoph von Wittich [Wed, 25 Oct 2006 20:02:01 +0000 (20:02 +0000)]
fix some issues when reading from a named pipe
fix a typo
terminate qemu at exit (when using named pipes)

svn path=/trunk/; revision=24653

14 years ago- Add some missing/internal definitions to proper headers.
Alex Ionescu [Wed, 25 Oct 2006 18:23:45 +0000 (18:23 +0000)]
- Add some missing/internal definitions to proper headers.
- Get rid of FLUSH_TLB macros and use KeFlushCurrentTb and the MSVC_compatible instrinsic __invlpg;
- Fix some prototypes.
- Fixed unsigned/signed mismatches.
- Fix SEH usage in ExAllocatePoolWithQuotaTag.

svn path=/trunk/; revision=24652

14 years ago- Implement more of the Ke386 ASM macros for MSVC.
Alex Ionescu [Wed, 25 Oct 2006 17:15:11 +0000 (17:15 +0000)]
- Implement more of the Ke386 ASM macros for MSVC.
- Remove custom Set/Get Cr macros and use MSVC-compatible __read/__writecrX
- Remove custom WbInvd macro and use MSVC-compatible __wbinvd.

svn path=/trunk/; revision=24651

14 years ago- Move all ASM internal intrinsics to intrin_i.h. Request for KJK::Hyperion/hackbunny...
Alex Ionescu [Wed, 25 Oct 2006 16:37:46 +0000 (16:37 +0000)]
- Move all ASM internal intrinsics to intrin_i.h. Request for KJK::Hyperion/hackbunny to look at the GCC ones and optimize/fix them up.
- Add MSVC versions for some of them (not yet complete).
- Fix the fact that KeGetLocalDescriptorTable was setting the LDT instead of retrieving it.
- Fix bug in LIST_FOR_EACH and LIST_FOR_EACH_SAFE which was setting the flink to NULL instead of checking if the flink is NULL. One more reason these damned macros should've never been used.
- Use MSVC-intrinsics when applicable (_disable/_enable, etc).
- Fix JOB_SET_ARRAY problems.
- Fix buffer overflow in SystemProcessInformation QSI_DEF.
- Fix some broken compares/arithmetic to due to lack of parens.
- Add some ASSERTS to some unknown functions that make pointer assumptions.

svn path=/trunk/; revision=24650

14 years ago-debug info can now be read from a pipe
Christoph von Wittich [Wed, 25 Oct 2006 16:02:47 +0000 (16:02 +0000)]
-debug info can now be read from a pipe
-fixed a typo
-terminate the qemu process on linux

svn path=/trunk/; revision=24649

14 years agouse TCHAR instead of WCHAR
Christoph von Wittich [Wed, 25 Oct 2006 12:49:35 +0000 (12:49 +0000)]
use TCHAR instead of WCHAR

svn path=/trunk/; revision=24648

Christoph von Wittich [Wed, 25 Oct 2006 12:29:47 +0000 (12:29 +0000)]

svn path=/trunk/; revision=24647

14 years agoCommit tmp patch by dralnix, fixes Rev 24626 Breaks Linux Build, and windows build.
James Tabor [Wed, 25 Oct 2006 01:30:19 +0000 (01:30 +0000)]
Commit tmp patch by dralnix, fixes Rev 24626 Breaks Linux Build, and windows build.

svn path=/trunk/; revision=24646

14 years ago- add an checkpoint for the system regression tool
Johannes Anderwald [Tue, 24 Oct 2006 20:21:30 +0000 (20:21 +0000)]
- add an checkpoint for the system regression tool

svn path=/trunk/; revision=24645

14 years ago-added -l parameter to list all available tests
Christoph von Wittich [Tue, 24 Oct 2006 19:59:27 +0000 (19:59 +0000)]
-added -l parameter to list all available tests
-when no config file is specified use sysreg.cfg as default
-updated help text

svn path=/trunk/; revision=24644

14 years ago- fix string define mess
Johannes Anderwald [Tue, 24 Oct 2006 11:45:21 +0000 (11:45 +0000)]
- fix string define mess

svn path=/trunk/; revision=24643

14 years ago- set svn:eol-style properties
Johannes Anderwald [Tue, 24 Oct 2006 11:27:23 +0000 (11:27 +0000)]
- set svn:eol-style properties
- update makefile
- fix warning

svn path=/trunk/; revision=24642

14 years ago- fix typo in config file
Johannes Anderwald [Tue, 24 Oct 2006 11:21:17 +0000 (11:21 +0000)]
- fix typo in config file
- implement a class which is responsible for file reading

svn path=/trunk/; revision=24641

14 years ago- Optimize PsGetCurrentProcess as well.
Alex Ionescu [Mon, 23 Oct 2006 22:07:45 +0000 (22:07 +0000)]
- Optimize PsGetCurrentProcess as well.

svn path=/trunk/; revision=24640

14 years ago- Properly implement inline versions of KeGetCurrentThread and KeGetPreviousMode...
Alex Ionescu [Mon, 23 Oct 2006 22:01:25 +0000 (22:01 +0000)]
- Properly implement inline versions of KeGetCurrentThread and KeGetPreviousMode/ExGetPreviousMode, as well as KeGetPcr. This should significantly increase performance. (KeGetPreviousMode is reduced to 2 lines of code instead of 15 lines with 2 expensive jumps).

svn path=/trunk/; revision=24639

14 years ago- Fix/add some remaining prototypes.
Alex Ionescu [Mon, 23 Oct 2006 21:28:17 +0000 (21:28 +0000)]
- Fix/add some remaining prototypes.
- Add all the Nt functions to sysfuncs.lst and fixup some entries which were out-of-order. Unless I skipped anything (might've skipped 1 or 2 APIs), we should now have the same system call table as Windows 2003 SP1 (useful for my testing of ntdll.dll inside Windows).

svn path=/trunk/; revision=24638

14 years ago- Add some missing definitions to our NTIFS.h.
Alex Ionescu [Mon, 23 Oct 2006 21:24:16 +0000 (21:24 +0000)]
- Add some missing definitions to our NTIFS.h.

svn path=/trunk/; revision=24637

14 years ago- Add NtApphelpCacheControl, NtFilterToken (WARNING: PATENTED. TAKE CARE WHEN IMPLEME...
Alex Ionescu [Mon, 23 Oct 2006 21:19:15 +0000 (21:19 +0000)]
- Add all the recently added functions to their proper place in the NDK.

svn path=/trunk/; revision=24636

14 years ago- Implement NtSetEventBoostPriority, NtGetCurrentProcessorNumber, NtQueryPortInformat...
Alex Ionescu [Mon, 23 Oct 2006 20:49:52 +0000 (20:49 +0000)]
- Implement NtSetEventBoostPriority, NtGetCurrentProcessorNumber, NtQueryPortInformationProcess, NtWaitForMultipleObjects32.

svn path=/trunk/; revision=24635

14 years ago- Should fix the build.
Alex Ionescu [Mon, 23 Oct 2006 20:21:08 +0000 (20:21 +0000)]
- Should fix the build.

svn path=/trunk/; revision=24634

14 years ago- Add NtGetWriteWatch, NtResetWriteWatch.
Alex Ionescu [Mon, 23 Oct 2006 18:35:13 +0000 (18:35 +0000)]
- Add NtGetWriteWatch, NtResetWriteWatch.
- Add NtCreateJobSet and define JOB_SET_ARRAY.

svn path=/trunk/; revision=24633

14 years ago- Add NtCreateKeyedEvent, NtOpenKeyedEvent, NtReleaseKeyedEvent, NtWaitForKeyedEvent.
Alex Ionescu [Mon, 23 Oct 2006 18:25:23 +0000 (18:25 +0000)]
- Add NtCreateKeyedEvent, NtOpenKeyedEvent, NtReleaseKeyedEvent, NtWaitForKeyedEvent.

svn path=/trunk/; revision=24632

14 years ago- Add NtEnumerateSystemEnvironmentValuesEx, NtQuerySystemEnvironmentValueex, NtSetSys...
Alex Ionescu [Mon, 23 Oct 2006 18:21:31 +0000 (18:21 +0000)]
- Add NtEnumerateSystemEnvironmentValuesEx, NtQuerySystemEnvironmentValueex, NtSetSystemEnvironmentValueEx.
- Fix some build brtakage.

svn path=/trunk/; revision=24631

14 years ago- Add NtGetDevicePowerState, NtIsSystemResumeAutomatic, NtRequestWakeupLAtency, NtSet...
Alex Ionescu [Mon, 23 Oct 2006 18:16:24 +0000 (18:16 +0000)]
- Add NtGetDevicePowerState, NtIsSystemResumeAutomatic, NtRequestWakeupLAtency, NtSetThreadExecutionState.

svn path=/trunk/; revision=24630

14 years ago- Add NtAllocateUserPhysicalPages, NtMapUserPhysicalPAges, NtMapUserPhysicalPagesScat...
Alex Ionescu [Mon, 23 Oct 2006 18:12:12 +0000 (18:12 +0000)]
- Add NtAllocateUserPhysicalPages, NtMapUserPhysicalPAges, NtMapUserPhysicalPagesScatter, NtFreeUserPhysicalPages.
- Add NtAreMappedFilesTheSame.

svn path=/trunk/; revision=24629

14 years ago- Add NtCompactKeys, NtcompressKey, NtLoadKeyEx, NtLockProductActivationKeys, NtLockR...
Alex Ionescu [Mon, 23 Oct 2006 18:05:06 +0000 (18:05 +0000)]
- Add NtCompactKeys, NtcompressKey, NtLoadKeyEx, NtLockProductActivationKeys, NtLockRegistryKey, NtNotifyChangeMultipleKeys, NtQueryOpenSubKeys, NtQueryOpenSubKeysEx, NtSaveMergedKeys, NtUnloadKey2, NtUnloadKeyEx.

svn path=/trunk/; revision=24628

14 years ago- Define EFI_DRIVER_ENTRY.
Alex Ionescu [Mon, 23 Oct 2006 17:53:25 +0000 (17:53 +0000)]
- Add NtAddDriverEntry, NtDeleteDriverEntry, NtEnumerateDriverEntries, NtModifyBootEntry, NtModifyDriverEntry, NtQueryDriverEntryOrder, NtSetDriverEntryOrder.
- These are for EFI (or pseudo-EFI if we ever emulate Vista).

svn path=/trunk/; revision=24627

14 years ago- Add NtAccessCheckAndAuditAlarm, NtAccessCheckByType, NtAccessCheckByTypeAndAuditAla...
Alex Ionescu [Mon, 23 Oct 2006 17:47:40 +0000 (17:47 +0000)]
- Add NtAccessCheckAndAuditAlarm, NtAccessCheckByType, NtAccessCheckByTypeAndAuditAlarm, NtAccessCheckByTypeResultList, NtAccessCheckByTypeResultListAndAuditAlarm, NtAccessCheckByTypeResultListAndAuditAlarmByHandle, NtAccessCheckByTypeResultListAndAuditAlarmByHandleByGodHowMuchLongerCanTheseAPINamesGet.
- Last one is a joke.

svn path=/trunk/; revision=24626

14 years agorewrite D3DParseUnknownCommand to use switch case instead
Magnus Olsen [Mon, 23 Oct 2006 17:37:51 +0000 (17:37 +0000)]
rewrite D3DParseUnknownCommand to use switch case instead
it looks better. Add a summer of msdn documentions how the first input parameter works. So u do not need read the whole doc for it. Add some more comment in the code

svn path=/trunk/; revision=24625

14 years ago- revert 24623
Johannes Anderwald [Mon, 23 Oct 2006 09:06:27 +0000 (09:06 +0000)]
- revert 24623

svn path=/trunk/; revision=24624

14 years ago- really fix build
Johannes Anderwald [Mon, 23 Oct 2006 08:54:19 +0000 (08:54 +0000)]
- really fix build

svn path=/trunk/; revision=24623

14 years ago- fix build
Johannes Anderwald [Mon, 23 Oct 2006 08:42:27 +0000 (08:42 +0000)]
- fix build

svn path=/trunk/; revision=24622

14 years ago- Fix another build break... sorry for the SVN Server is fucked due to the CIA post...
Alex Ionescu [Mon, 23 Oct 2006 05:55:06 +0000 (05:55 +0000)]
- Fix another build break... sorry for the SVN Server is fucked due to the CIA post-commit hook and is being unusable.

svn path=/trunk/; revision=24621

14 years ago- Fix some EFI prototypes and exports.
Alex Ionescu [Mon, 23 Oct 2006 05:49:07 +0000 (05:49 +0000)]
- Fix some EFI prototypes and exports.
- Add BOOT_ENTRY definition.
- Fix build breakage from earlier commit.

svn path=/trunk/; revision=24620

14 years ago- Implement DbgUiConvertStateChangeStructure. Win32/Native Debugging should be fully...
Alex Ionescu [Mon, 23 Oct 2006 05:08:19 +0000 (05:08 +0000)]
- Implement DbgUiConvertStateChangeStructure. Win32/Native Debugging should be fully implemented now (and waiting on the kernel to support it.)

svn path=/trunk/; revision=24619

14 years ago- Implement WaitForDebugEvent. Calls out to DbgUiConvertWaitStateStructure which...
Alex Ionescu [Sun, 22 Oct 2006 23:47:12 +0000 (23:47 +0000)]
- Implement WaitForDebugEvent. Calls out to DbgUiConvertWaitStateStructure which is still unimplemented.

svn path=/trunk/; revision=24618

14 years ago- Define DBGSS_THREAD_DATA and DbgSsGet/SetThreadData. This is what is located in...
Alex Ionescu [Sun, 22 Oct 2006 23:28:33 +0000 (23:28 +0000)]
- Define DBGSS_THREAD_DATA and DbgSsGet/SetThreadData. This is what is located in DbgSsReserved[0] (an internal high-level structure that subsystem debuggers can use for whatever purposes they need). DbgSsReserved[1] is the actual native debug object used only by DbgUi in ntdll.
- Implement SaveThreadHandle, SaveProcesHandle, MarkThreadHandle, MarkProcessHandle, RemoveHandles and CloseAllProcessHandles to deal with this structure.
- Call these functions when required, except for WaitForDebugEvent which will set them up once implemented.

svn path=/trunk/; revision=24617

14 years agoFix compilation in release mode
Hervé Poussineau [Sun, 22 Oct 2006 21:22:46 +0000 (21:22 +0000)]
Fix compilation in release mode

svn path=/trunk/; revision=24616

14 years ago- Stub DbgUiConvertStateChangeStructure (this isn't done in kernel32 anymore) and...
Alex Ionescu [Sun, 22 Oct 2006 21:19:34 +0000 (21:19 +0000)]
- Stub DbgUiConvertStateChangeStructure (this isn't done in kernel32 anymore) and export it.
- Implement and export DbgUiSetThreadDebugObject.
- Fix DbgUi* APIs to use DbgSsReserved[1], and not [0]. Still trying to figure out what [0] is for.

svn path=/trunk/; revision=24615