Commit graph

52580 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto b942b837af [CSRSRV]
Remove the unneeded CsrpHandleConnectionRequest function since CsrApiHandleConnectionRequest does already the job.

svn path=/branches/ros-csrss/; revision=57744
2012-11-21 18:52:42 +00:00
Hermès Bélusca-Maïto d7bac86452 [NTDLL]
When calling CsrClientConnectToServer with a valid connection info user buffer, after capturing the buffer and calling CsrClientCallServer, do not forget to copy back to the user buffer the updated connection info and to free the capture buffer !

svn path=/branches/ros-csrss/; revision=57743
2012-11-20 22:48:11 +00:00
Eric Kohl 949d0c4bed [LSASRV]
- Create and set a security descriptor for newly created secrets.

svn path=/trunk/; revision=57742
2012-11-20 22:34:00 +00:00
Hermès Bélusca-Maïto ae88c763da [CSRSRV]
- Remove unused functions CallHardError and CsrHandleHardError (in fact calling the hard error callback is already done in the listening thread).
- Add an annotation and correct a typographical error; remove old comments.
- Remove the now unneeded csrplugin.h header (a relic of the old callback system of the old csrss/csrsrv).

svn path=/branches/ros-csrss/; revision=57741
2012-11-20 19:34:03 +00:00
Hermès Bélusca-Maïto 90229a39a0 [KERNEL32/CONSRV]
- Merge IntWriteConsoleOutputCharacter and WriteConsoleOutputAttribute functions into IntWriteConsoleOutputCode helper functions, which is used inside WriteConsoleOutputAttribute and WriteConsoleOutputCharacterW/A.
- In server-side, merge CsrWriteConsoleOutputChar and CsrWriteConsoleOutputAttrib into the server API SrvWriteConsoleOutputString.
- The structures CSRSS_WRITE_CONSOLE_OUTPUT_CHAR and CSRSS_WRITE_CONSOLE_OUTPUT_ATTRIB are merged into CSRSS_WRITE_CONSOLE_OUTPUT_CODE.

[CONSRV]
- Add a CsrValidateMessageBuffer usage.

svn path=/branches/ros-csrss/; revision=57740
2012-11-19 23:26:36 +00:00
Hermès Bélusca-Maïto 5e77b6714d Forgot this part.
svn path=/branches/ros-csrss/; revision=57739
2012-11-19 21:52:59 +00:00
Hermès Bélusca-Maïto ef1e1fc82b [KERNEL32/CONSRV]
- Modify the helper function IntWriteConsole to make it use of capture buffers for passing things to write.
- Now, the loop disappears.
- I moved the pause-event wait (introduced in revision r47359) inside consrv, and (concerning the server-api-part SrvWriteConsole), especially in the ConioWriteConsole function, to be sure that all functions calling ConioWriteConsole become sensible to pause event. This REALLY NEEDS testing (and of course the code needs cleaning of the introduced comments, when I'm sure it works).

svn path=/branches/ros-csrss/; revision=57738
2012-11-19 21:48:22 +00:00
Eric Kohl bf98c11bae [LSASRV]
- Move LsapCreatePolicySd into a separate file.
- Create and set a security descriptor to newly created accounts.

svn path=/trunk/; revision=57737
2012-11-19 21:33:07 +00:00
Eric Kohl 4874b78fd4 [INCLUDE]
Add generic rights for account and secret objects.

svn path=/trunk/; revision=57736
2012-11-19 17:28:36 +00:00
Eric Kohl 8a858bc0d1 [LSASRV]
Implement LsarQuerySecurityObject.

svn path=/trunk/; revision=57735
2012-11-18 21:42:14 +00:00
Hermès Bélusca-Maïto e71f1dd200 [KERNEL32/CONSRV]
- Merge IntFillConsoleOutputCharacter and FillConsoleOutputAttribute functions into IntFillConsoleOutputCode helper and make it used by FillConsoleOutputAttribute/CharacterW/A.
- In server-side, CsrFillOutputChar and CsrFillOutputAttrib are merged into SrvFillConsoleOutput.
- Merge CSRSS_FILL_OUTPUT and CSRSS_FILL_OUTPUT_ATTRIB structures into CSRSS_FILL_OUTPUT.

svn path=/branches/ros-csrss/; revision=57734
2012-11-18 17:06:48 +00:00
Eric Kohl 4a3e29dc6c [LSASRV]
Create a security descriptor for the policy object and store as attribute "SecDesc".

svn path=/trunk/; revision=57733
2012-11-18 15:19:14 +00:00
Hermès Bélusca-Maïto e505499a2c [CONSRV]
CsrSetTextAttrib --> SrvSetConsoleTextAttribute and activate it in the list of APIs indices.

svn path=/branches/ros-csrss/; revision=57732
2012-11-18 14:30:25 +00:00
Hermès Bélusca-Maïto f079b2b2b6 [CONSRV]
- Use the ConsoleGetPerProcessData macro (--> CONSOLE_PROCESS_DATA structure).
- Do not forget to leave a critical section if we fail.

svn path=/branches/ros-csrss/; revision=57731
2012-11-18 14:21:21 +00:00
Hermès Bélusca-Maïto a4ef6acb0a [CONSRV]
Use the ConsoleGetPerProcessData macro (--> CONSOLE_PROCESS_DATA structure).

svn path=/branches/ros-csrss/; revision=57730
2012-11-18 14:17:47 +00:00
Hermès Bélusca-Maïto 4b04f7d488 [KERNEL32]
Use new structures and api indices namings.

[CONSRV]
Use CsrValidateMessageBuffer instead of Win32CsrValidateBuffer.

svn path=/branches/ros-csrss/; revision=57729
2012-11-18 13:54:32 +00:00
Hermès Bélusca-Maïto feb045c64b [CONSRV]
Fix a DPRINT.

svn path=/branches/ros-csrss/; revision=57728
2012-11-18 13:16:58 +00:00
Hermès Bélusca-Maïto de31fffea8 [KERNEL32/CONSRV]
- Use new structures and api indices namings (as usual).

[CONSRV]
- Merge CSRSS_SET_TITLE and CSRSS_GET_TITLE into CSRSS_CONSOLE_TITLE.
- Merge CSRSS_GET_CONSOLE_(OUTPUT_)CP and CSRSS_SET_CONSOLE_(OUTPUT_)CP into CSRSS_CONSOLE_CP.
- NtDuplicateObject(GetCurrentProcess(), ... ---> NtDuplicateObject(NtCurrentProcess(), ...
- Use CsrValidateMessageBuffer instead of Win32CsrValidateBuffer.
- Use CONSOLE_PROCESS_DATA structure.

TODO: Remove a DPRINT1 checkpoint in SrvAllocConsole after future tests are OK.

svn path=/branches/ros-csrss/; revision=57727
2012-11-18 13:10:03 +00:00
Hermès Bélusca-Maïto 3a0d4c3269 [KERNEL32]
- Add some NULL checks.
- Use new structures and api indices namings.

svn path=/branches/ros-csrss/; revision=57726
2012-11-17 23:45:14 +00:00
Hermès Bélusca-Maïto 1568822b7c [KERNEL32]
- Use new structures and api indices namings.

[CONSRV]
- CSRSS_SET_CURSOR ==> CSRSS_SET_CURSOR_POSITION for SrvSetConsoleCursorPosition.
- Merge CSRSS_GET_CURSOR_INFO and CSRSS_SET_CURSOR_INFO into CSRSS_CURSOR_INFO.

svn path=/branches/ros-csrss/; revision=57725
2012-11-17 23:29:53 +00:00
Hermès Bélusca-Maïto 56190eec33 [KERNEL32]
- Make some functions compliant with the new structures and server apis indices names.

[KERNEL32/CONSRV]
- Merge CSRSS_SET_CONSOLE_MODE and CSRSS_GET_CONSOLE_MODE into CSRSS_CONSOLE_MODE.
- Rename CSRSS_SETGET_CONSOLE_HW_STATE into CSRSS_CONSOLE_HW_STATE.

svn path=/branches/ros-csrss/; revision=57724
2012-11-17 23:07:59 +00:00
Hermès Bélusca-Maïto dab294603f [KERNEL32/CONSRV]
- Make OpenConsole call only one server api, namely SrvOpenConsole, which was known before under the name CsrGetHandle (this latter function was removed in r57689 by error).
- Merge CSRSS_GET_INPUT_HANDLE and CSRSS_GET_OUTPUT_HANDLE structures into CSRSS_OPEN_CONSOLE (used by the functions named above).

[CONSRV]
- Add SrvOpenConsole (copied from CsrGetHandle), and add DPRINT1s to it.
- Load the localized string "Command Prompt" using the Server DLL's instance handle instead of calling GetModuleHandleW.
- Make use of CONSOLE_PROCESS_DATA structures.

svn path=/branches/ros-csrss/; revision=57723
2012-11-17 22:42:04 +00:00
Hermès Bélusca-Maïto 8a4c1b3d26 [CONSRV]
Reorganize the data members according to their purposes (increases the lisibility only). No code changes.

svn path=/branches/ros-csrss/; revision=57722
2012-11-17 22:05:41 +00:00
Hermès Bélusca-Maïto 2006c3bf86 [KERNEL32/CONSRV]
- Move the waiting loop of IntReadConsole into SrvReadConsole instead.
- Merge IntPeekConsoleInput and IntReadConsoleInput helpers into a single IntGetConsoleInput helper function
  and make PeekConsoleInputW/A and ReadConsoleInputW/A use it.
  Indeed, the "only" difference between these two functions, is that the first one keeps the data read inside
  the console input buffer, but on the contrary the second removes the data and does not return until at least
  one input record has been read.
  In server-side, CsrReadInputEvent and CsrPeekConsoleInput are merged into SrvGetConsoleInput. Merge the corresponding
  structures.
- Use shorter variable names in IntReadConsoleOutput and use CONSOLE_PROCESS_DATA structure in SrvReadConsoleOutput.
- Merge IntReadConsoleOutputCharacter and ReadConsoleOutputAttribute functions into a single IntReadConsoleOutputCode
  helper function, and make ReadConsoleOutputAttribute and ReadConsoleOutputCharacterW/A use it.
  In server-side, CsrReadConsoleOutputChar and CsrReadConsoleOutputAttrib are merged into SrvReadConsoleOutputString.
  (Remark: the SrvReadConsoleOutputString name comes from http://j00ru.vexillium.org/csrss_list/api_list.html and I
  checked that it was indeed the server function that was called by both ReadConsoleOutputAttribute and ReadConsoleOutputCharacter).
  The idea behind merging these two functions is, that an attribute or a character are instances of the same entity, namely
  a "code" (what would be called an (ANSI) escape sequence). Therefore I encode them inside the same CSRSS_READ_CONSOLE_OUTPUT_CODE
  structure and I use it with the previous functions.

[CONSRV]
- Make use of the CONSOLE_PROCESS_DATA structure (introduced in r57685).
- Use CsrValidateMessageBuffer instead of Win32CsrValidateBuffer.
- Reorganize conmsg.h a little bit.

svn path=/branches/ros-csrss/; revision=57721
2012-11-17 21:39:41 +00:00
Hermès Bélusca-Maïto 7e801b0929 [CONSRV]
Use CsrValidateMessageBuffer instead of Win32CsrValidateBuffer.

svn path=/branches/ros-csrss/; revision=57720
2012-11-17 20:05:52 +00:00
Johannes Anderwald 59ce999f95 - Fix build
- Partly revert 57718

svn path=/trunk/; revision=57719
2012-11-17 16:01:29 +00:00
Johannes Anderwald 38b84d3f65 - Don't compile apps with Unicode as ReactOS console screenbuffer is not supporting this yet
- fixes #CORE-6495, #CORE-6786

svn path=/trunk/; revision=57718
2012-11-17 15:50:39 +00:00
Hermès Bélusca-Maïto ecb660bb7d [CONSRV]
Code reorganization only, no code changes.

svn path=/branches/ros-csrss/; revision=57717
2012-11-17 15:41:31 +00:00
James Tabor edee22de36 [PSDK|User32]
- Fix error return for future wine Win.c test_map_points tests.
- Add missing error code.

svn path=/trunk/; revision=57716
2012-11-16 23:23:49 +00:00
Hermès Bélusca-Maïto 0bdd9a32b0 [KERNEL32/CONSRV]
Fix compilation.

svn path=/branches/ros-csrss/; revision=57715
2012-11-15 23:13:23 +00:00
Hermès Bélusca-Maïto 903d3cfb1c [KERNEL32/CONSRV]
- Use a standard win32 thread function for the ConsoleControlDispatcher thread, instead of a custom PCONTROLDISPATCHER one.
- Deactivate debug outputs in console.c, which were activated by error in r57706.

svn path=/branches/ros-csrss/; revision=57714
2012-11-15 23:06:49 +00:00
Hermès Bélusca-Maïto 0473031b87 [KERNEL32]
- Move console-related Vista+ functions from client/vista.c to a dedicated client/console/vista.c file, and add it to compilation.
- Move some helper functions from console.c to history.c.
- Use the new api index names in history.c.

[CONSRV]
- Merge CSRSS_GET_HISTORY_INFO and PCSRSS_SET_HISTORY_INFO structures declarations into CSRSS_HISTORY_INFO, and therefore use only one member of it inside CONSOLE_API_MESSAGE structure.
- WORD --> UINT for few structure members related to history information.

svn path=/branches/ros-csrss/; revision=57713
2012-11-15 22:34:44 +00:00
Hermès Bélusca-Maïto 1ccafa6cae [KERNEL32/CONSRV]
- Use capture buffers to pass (variable-length) strings to the console server.
- Merge the CSRSS_ADD_CONSOLE_ALIAS and CSRSS_GET_CONSOLE_ALIAS structures into a unique structure CSRSS_CONSOLE_ALIAS.

TODO: Check what happens to the "/ sizeof(WCHAR);" in GetConsoleAliasesW.

svn path=/branches/ros-csrss/; revision=57712
2012-11-15 21:02:01 +00:00
Hermès Bélusca-Maïto d6b0ad349a [KERNEL32]
- Move all the read/write related functions to an appropriate source file and add it to compilation.
- Fix credits for alias.c

svn path=/branches/ros-csrss/; revision=57711
2012-11-15 18:06:17 +00:00
Hermès Bélusca-Maïto c1f19d61c2 [KERNEL32]
Compile alias.c and history.c.

svn path=/branches/ros-csrss/; revision=57710
2012-11-15 17:13:53 +00:00
Hermès Bélusca-Maïto a0dd01612e [KERNEL32]
- Move history-functions to a dedicated source file. The functions were created in r47580 and therefore update the description header of the file.

svn path=/branches/ros-csrss/; revision=57709
2012-11-15 17:09:51 +00:00
Hermès Bélusca-Maïto c13acb3749 Fix header (no code changes).
svn path=/branches/ros-csrss/; revision=57708
2012-11-15 16:53:30 +00:00
Hermès Bélusca-Maïto 2ae258d08d [KERNEL32]
- Move alias-functions to a dedicated file. The names of the programmers were retrieved via svn information (see r32093 and r32118).

svn path=/branches/ros-csrss/; revision=57707
2012-11-15 16:51:29 +00:00
Hermès Bélusca-Maïto 66b2c326a5 [KERNEL32]
Fix some comments formatting.

svn path=/branches/ros-csrss/; revision=57706
2012-11-15 16:29:21 +00:00
Hermès Bélusca-Maïto aa2347c408 [KERNEL32]
- Place console.c file in a dedicated directory because I will after split it into logical units (eg. a file for Alias-functions, a file for Read-write functions, etc...) to facilitate maintenance.

svn path=/branches/ros-csrss/; revision=57705
2012-11-15 16:24:43 +00:00
James Tabor f6f71e3fd1 [Win32k]
- Rewrite message events to use posting to queues instead of sending them. See CORE-6551.

svn path=/trunk/; revision=57704
2012-11-14 03:45:55 +00:00
Hermès Bélusca-Maïto 6716529b84 [CSRSRV]
- Comments formatting.
- Correct a nasty initialization bug which unveiled itself as, eg., critical sections being already initialized in consoles, whereas we were creating new ones. It was because we didn't copy correctly per-process server data from parent process to child process. Now consoles initialize finely.

Now, only modifications to the console subsystem remain to make it totally conform to the new messaging structures of csrss (I mean, using the capture buffers).

svn path=/branches/ros-csrss/; revision=57703
2012-11-13 23:45:02 +00:00
Hermès Bélusca-Maïto e03c8d5702 [CONSRV]
- Initialize the per-process structure size : fixes console initialization.

svn path=/branches/ros-csrss/; revision=57702
2012-11-13 21:11:30 +00:00
Hermès Bélusca-Maïto bc0af6b272 [CSRSRV]
- Use a variable ServerDll instead of using each time CsrLoadedServerDll[i], as it is done in some other places.
- Clean the code (remove extra-parentheses).
- Zero-out the memory buffer allocated for CsrSrvSharedStaticServerData.

svn path=/branches/ros-csrss/; revision=57701
2012-11-13 21:08:19 +00:00
Eric Kohl 809352b8d8 [NETAPI32]
NetLocalGroupEnum: Add code to return information about a single alias to the caller.
Now, the user account control panel enumerates the built-in groups. ;-)

svn path=/trunk/; revision=57700
2012-11-11 22:28:08 +00:00
James Tabor 22bcb6ceaf [Win32k]
- Implement Gdi32 counterpart SetStretchBltMode for Win32k.

svn path=/trunk/; revision=57699
2012-11-11 03:18:21 +00:00
James Tabor 5b39db6a1e [Win32k]
- Fix api test crash.

svn path=/trunk/; revision=57698
2012-11-11 03:01:58 +00:00
Hermès Bélusca-Maïto c2ad2fb56b [MSGINA]
Resize the dialogs to fit the ReactOS image, and add the logo to the "Please wait..." dialog
(which is displayed when a user is logging-on or quitting his session and the "Save your parameters..."
message is displayed). Now ReactOS looks perfect.

svn path=/trunk/; revision=57697
2012-11-11 01:54:11 +00:00
Hermès Bélusca-Maïto 86683a28ff [MSGINA]
Introduce a new logon image.
Resizing the dialog boxes remains to do.

svn path=/trunk/; revision=57696
2012-11-10 23:45:08 +00:00
Jérôme Gardou 6f481467d5 [WIN32K]
- Implement usage of alpha cursors (does not work yet due to a bug in windres)
- Directly use bitmaps passed to NtUserSetCursorIconData instead of copying them

svn path=/trunk/; revision=57695
2012-11-10 15:56:42 +00:00