Commit graph

23025 commits

Author SHA1 Message Date
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
Alex Ionescu 8be06d0e3b - 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
2006-11-05 20:44:38 +00:00
Alex Ionescu 3065170214 - 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
2006-11-05 20:43:07 +00:00
Alex Ionescu 6e282d4611 - 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
2006-11-05 20:31:35 +00:00
Alex Ionescu fb3a3c8a7f - Fix boot.
- Fix GUI boot (bootvid).
- Fix cmlib bug.

svn path=/trunk/; revision=24684
2006-11-05 20:28:59 +00:00
James Tabor a57cbd2aa5 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
2006-10-30 19:38:37 +00:00
Alex Ionescu f176b46108 - 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
2006-10-30 19:20:08 +00:00
Alex Ionescu 5134659f32 - 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
2006-10-30 19:12:17 +00:00
Alex Ionescu f886617372 - 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
2006-10-30 18:45:22 +00:00
Alex Ionescu 6dc99e73a2 - Fix incorrect parameter shuffle in NtAcceptConnectPort. CSRSS now initializes properly and kernel32 gets loaded, but fails when connecting.
svn path=/trunk/; revision=24679
2006-10-30 17:04:49 +00:00
Alex Ionescu be2a6c6ee3 - Add support for mapping the client section in NtAcceptConnectPort.
svn path=/trunk/; revision=24678
2006-10-30 16:54:45 +00:00
Alex Ionescu bf01f1f77c - 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
2006-10-30 16:50:20 +00:00
Alex Ionescu a5aaf04a27 - 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
2006-10-30 16:45:54 +00:00
Alex Ionescu 91c97b2944 - Add support for Client/RemoteView in NtSecureConnectPort. Still lacking support for SID (needed for Csr)
svn path=/trunk/; revision=24675
2006-10-30 16:39:19 +00:00
Alex Ionescu 560282ce30 - 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
2006-10-30 16:21:21 +00:00
Alex Ionescu 9eeadde533 - 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
2006-10-30 14:50:31 +00:00
Alex Ionescu 7000c5a210 - 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
2006-10-30 14:46:56 +00:00
Alex Ionescu b14168c73c - Implement NtCompleteConnectPort. SMSS can now completely accept new incoming connections.
svn path=/trunk/; revision=24671
2006-10-30 14:45:07 +00:00
Alex Ionescu ed9d7c1816 - 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
2006-10-30 14:44:05 +00:00
Alex Ionescu 2624bc881d - Implement NtReplyWaitReceivePortEx (And LpcpSave/FreeDataInfoMessage and LpcpMoveMessage). SMSS can now respond to connection attempts.
svn path=/trunk/; revision=24669
2006-10-30 14:42:07 +00:00
Alex Ionescu fa1547f01d - Implement NtListenPort as a wrapper around NtReplyWaitReceivePort that only listens for connection requests. SMSS can now do this.
svn path=/trunk/; revision=24668
2006-10-30 14:32:18 +00:00
Alex Ionescu 850c098196 - Implement LpcpCreatePort (And LpcpInitializePortQueue). SMSS can now create the Sb API Port.
svn path=/trunk/; revision=24667
2006-10-30 14:30:20 +00:00
Alex Ionescu 86a52afde3 - 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
2006-10-30 14:28:50 +00:00
Alex Ionescu 8d1e84dfd6 - 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
2006-10-30 14:20:45 +00:00
Alex Ionescu 1a98439492 - 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
2006-10-30 14:17:37 +00:00
Johannes Anderwald 48ffe89726 - zero complete buffer
- increase buffer when reading more data than current capacity

svn path=/trunk/; revision=24663
2006-10-30 12:58:35 +00:00
Christoph von Wittich a1de6893f7 -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
2006-10-30 12:53:25 +00:00
Johannes Anderwald 963c6260b1 - 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
2006-10-30 12:41:17 +00:00
Thomas Bluemel bcf2a300f2 Implement GetTickCount64
svn path=/trunk/; revision=24660
2006-10-30 11:56:28 +00:00
Christoph von Wittich e343b07d1f now it is possible to build bootcd and bootcdregtest with the same tree (without changing any files)
svn path=/trunk/; revision=24659
2006-10-26 08:45:16 +00:00
Alex Ionescu ef31ab5c96 - 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
2006-10-26 04:55:34 +00:00
Alex Ionescu 6d56cb39a6 - Fix dozens of missing typecast errors.
- Other MSVC/WDK compatibility fixes.

svn path=/trunk/; revision=24657
2006-10-26 01:49:51 +00:00