Commit graph

52580 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto 31776e274a [CONSRV]
Revert unwanted changes brought accidentally in r58104.

svn path=/branches/ros-csrss/; revision=58105
2013-01-03 17:47:34 +00:00
Hermès Bélusca-Maïto e4d97e422f [KERNEL32]
Silent more debug prints and remove an unused DPRINT1 I've introduced in r57666.

svn path=/branches/ros-csrss/; revision=58104
2013-01-03 17:42:27 +00:00
Hermès Bélusca-Maïto 0345e745fd [BASESRV]
Remove a temporary DPRINT1.

[CSRSRV]
- Shut down debug output.
- Fix some misspellings.
- Fix a bug in CsrMoveSatisfiedWaits ("satisfied" waits are waits where WaitFunction was put to NULL during a previous call to CsrNotifyWait, but still not dereferenced, and which can be dereferenced by a call to CsrDereferenceWait).

svn path=/branches/ros-csrss/; revision=58103
2013-01-03 17:18:19 +00:00
Hermès Bélusca-Maïto dd5a9c5231 [CONSRV]
- Fix console apps initialization.
- Add some debug output (NOTE TO MYSELF: remove them when all things work).
- Rewrite ConsoleNewProcess.
- Reorganize SrvAllocConsole and create ConsoleConnect based on SrvAllocConsole.
- Create ConsoleDisconnect which undoes what ConsoleConnect and ConsoleNewProcess did.
- Rework a little bit CsrInitConsole.

Now the console app. initialization algorithm is the following:

1- A process is created, its type (GUI or CUI) is determined (kernel32 and basesrv).
2- ConsoleNewProcess is called (consrv) and makes this new process inherit the console handles table from its parent
   (NOTE: this is done for all CUI processes, because at this point, we still don't know whether we must inherit
   the handles from the parent or not).
3- (back in kernel32) In BasepInitConsole, we determine whether or not we must create a new console window or use
   the parent's one or not using one at all. We (as a client) connect to the console server (consrv) (via CsrClientConnectToServer)
   which in turn (via CSRSS mechanism) calls ConsoleConnect. For GUI processes we do nothing. For CUI processes, we initialize
   a new console based on properties set in BasepInitConsole.
4- When a process dies, ConsoleDisconnect is called and whether it is a GUI or CUI process, we revert the actions done previously.

Part 2/2

TODO: - Debug the CSR waits.
      - Work on the console properties property-sheet.
      - See what can be done on http://jira.reactos.org/browse/CORE-122

svn path=/branches/ros-csrss/; revision=58098
2013-01-02 00:32:20 +00:00
Hermès Bélusca-Maïto e635242284 [KERNEL32/BASESRV]
Remove now unneeded bInheritHandles member / parameter.

svn path=/branches/ros-csrss/; revision=58097
2013-01-01 23:41:42 +00:00
Hermès Bélusca-Maïto d820098fa6 [KERNEL32/BASESRV/CONSRV]
- Fix console apps initialization.
- Introduce a helper function InitConsoleCtrlHandling for initializing console control handling.
- We now initialize the new created console when connecting the client (kernel32) to the server (consrv) by calling CsrClientConnectToServer with real parameters (not dummy ones).
- Add/activate some debug prints (will be removed when all things work).

Part 1/2

svn path=/branches/ros-csrss/; revision=58096
2013-01-01 23:36:19 +00:00
Hermès Bélusca-Maïto 0444a3a392 [CONSRV]
- Be sure that we reply to the dying client when he dies.
- "Improve" a debug output (display the client process).
- Use existing helper functions for incrementing reference counts for threads and processes.

svn path=/branches/ros-csrss/; revision=58075
2013-01-01 02:59:31 +00:00
Hermès Bélusca-Maïto fc76ef76f0 [CSRSRV]
Be sure to REALLY compare the Client ID (both Process and Thread handles).

svn path=/branches/ros-csrss/; revision=58074
2013-01-01 02:21:05 +00:00
Hermès Bélusca-Maïto c61063134c [CSRSRV]
Do NOT confuse a handle and a pointer to a handle !! In this case we need a handle.

Caught in the following situation :

1- Launch a process A which initializes a console A (say, cmd.exe).
2- Launch a process B which also initializes a console B (for instance, in the first cmd.exe, do: start cmd.exe)
3- Click on the "Close" button (the "Cross" button in the right upper side) of the windows of the console A.
4- Notice that the console B closes but the process B remains alive, whereas the console A remains open but the process A is killed...
   (contrary to what you expected, closing the console A and the process A)

(when clicking on the "Close" button, the Console Server launches a remote thread in the context of the target process, and it appeared in the described situation
that it was the wrong process, because of bad parameter passing to the sub-function CsrLockProcessByClientId called when creating the remote thread).

svn path=/branches/ros-csrss/; revision=58073
2013-01-01 02:12:19 +00:00
Hermès Bélusca-Maïto 2e57ad7cbd [CONSRV]
I replaced by error the mask 0x10000003 by 0x3, which had as an effect to match handles of value 0xffffffff (invalid_handle_value). Fichtre !

svn path=/branches/ros-csrss/; revision=58064
2012-12-30 22:00:20 +00:00
Hermès Bélusca-Maïto c0399e88a6 [KERNEL32/CONSRV]
- Code reorganization.
- In particular, move IsConsoleHandle macro to a place which it can be used by both kernel32 and consrv.

svn path=/branches/ros-csrss/; revision=58063
2012-12-30 21:02:12 +00:00
Hermès Bélusca-Maïto d6769b4364 [KERNEL32-CONSRV]
* HANDLE_TYPE --> CONSOLE_HANDLE_TYPE because it hits "previous" definition of this enumeration (a totally different one from win32ss/include/ntuser.h)
* Temporarily add a dummy member to the CONSOLE_CONNECTION_INFO structure, to make MSVC happy.

svn path=/branches/ros-csrss/; revision=58055
2012-12-30 13:25:50 +00:00
Hermès Bélusca-Maïto dba80b614b Sync with trunk revision r58045 to bring the corrections on configure.cmd and on widl/wpp.
svn path=/branches/ros-csrss/; revision=58046
2012-12-29 20:57:10 +00:00
Hermès Bélusca-Maïto f44e914e80 Sync with trunk r58033.
svn path=/branches/ros-csrss/; revision=58034
2012-12-28 23:37:33 +00:00
Johannes Anderwald d697105863 [LIBUSBAUDIO]
- Start implementing a library which is used to parse USB configuration descriptors and construct KSFILTER_DESCRIPTOR structure, which is used with the kernel streaming driver (ks.sys) 
- The library will be used in USBAUDIO driver

svn path=/trunk/; revision=58033
2012-12-28 19:38:10 +00:00
Hermès Bélusca-Maïto 426a79eba3 [INPUT]
Add a new property sheet which aim is to manage text services (and the language bar).

svn path=/trunk/; revision=58032
2012-12-28 19:31:17 +00:00
Hermès Bélusca-Maïto 075c413d8f [INPUT]
Add the awaited ending new-line to make msvc resource compiler happy.

svn path=/trunk/; revision=58031
2012-12-28 17:57:10 +00:00
Amine Khaldi d2c2158e78 [SHELL32]
* Correct a typo that led to incorrect Capacity value (shown in the disk properties).
* Correct some colors inversion in the Free/Used disk space chart.
* Brought to you by Victor Martinez Calvo.
CORE-6838 #resolve #comment Committed in r58030. Gracias ;)

svn path=/trunk/; revision=58030
2012-12-28 17:42:50 +00:00
Hermès Bélusca-Maïto 059e3cee33 [INPUT]
UTF-8 translation

svn path=/trunk/; revision=58029
2012-12-28 17:27:30 +00:00
Hermès Bélusca-Maïto 7c71339370 [INTL]
Fix UTF-8 Translation

svn path=/trunk/; revision=58028
2012-12-28 17:23:29 +00:00
Hermès Bélusca-Maïto 26df1dc11e [INTL]
"saise" --> "saisie"

svn path=/trunk/; revision=58027
2012-12-28 16:43:54 +00:00
Hermès Bélusca-Maïto d8e440bc72 [INTL]
UTF-8 translation

svn path=/trunk/; revision=58026
2012-12-28 16:39:16 +00:00
Hermès Bélusca-Maïto d023c1a9ce [INTL]
Fix French translation

svn path=/trunk/; revision=58025
2012-12-28 16:28:49 +00:00
Hermès Bélusca-Maïto 2476bad526 [NOTEPAD]
- Do not close Notepad when 'Save As' dialog is canceled (behaviour correction, makes it as under Windows). Patch by Peter Hater.
- Temporarily fix saving with invalid file name --> now return an error, don't save the file, reset the internal file name to "" (untitled) and keep Notepad opened.
  This is due to the lack of file name validation when calling Save-As file box (should be done by default, but it is not under ROS).

CORE-6836 #resolve #comment Committed in r58024. Thanks :)

svn path=/trunk/; revision=58024
2012-12-28 15:50:38 +00:00
Cameron Gutman be1984907c - Never queue a DPC for MiniportHandleInterrupt regardless of what MiniportISR requests if MiniportInitialize is executing
- Very likely fixes CORE-6064

svn path=/trunk/; revision=58022
2012-12-28 00:36:28 +00:00
Amine Khaldi ff6c1ce972 [CRT/BUILTINS]
* memcpy should behave exactly like memmove for Windows compatibility.
CORE-6833 #resolve #comment Committed in r58021.

svn path=/trunk/; revision=58021
2012-12-27 22:26:35 +00:00
Hermès Bélusca-Maïto b8b7caccfe [FREELDR]
- Move PcBeep function declaration to a better header.
- Resuscitate OptionMenuCustomBootReactOS() from revision r52491, update it to match recent changes in freeldr as well as making it using new boot method, and reuse ConstructArcPath.
  Why I'm doing this ? Because it can be useful to enter personalized boot options by hand at boot time rather than being obliged to edit freeldr.ini. This needs care, not brutal deletion.

svn path=/trunk/; revision=58020
2012-12-27 21:52:40 +00:00
Amine Khaldi dcb9fa5856 * Addendum to r58018. Altered the wrong function. Also: "Should be sent to Wine (TM)" ;)
svn path=/trunk/; revision=58019
2012-12-27 12:42:31 +00:00
Amine Khaldi 69f9dc84ad [SETUPAPI]
* Fix allocating the required bytes in SetupGetFileCompressionInfoW. Brought to you by Peter Hater (7element {at} mail [dot] bg)
CORE-6815 #resolve #comment Committed in r58018. Cheers ;)

svn path=/trunk/; revision=58018
2012-12-27 12:35:10 +00:00
Eric Kohl b2b4d4f502 [NETAPI32]
- Include a netapi32.h in most files and move the other includes into netapi32.h.
- Add functions to open account and builtin domains directly and use these functions.

svn path=/trunk/; revision=58017
2012-12-26 21:07:13 +00:00
Hermès Bélusca-Maïto ed10069057 [MSVCRT]
Export __crtLCMapStringW and correct __crtLCMapStringA: their prototypes are :

int CDECL __crtLCMapStringW(LCID lcid, DWORD mapflags, const wchar_t *src,
    int srclen, wchar_t *dst, int dstlen, unsigned int codepage, int xflag)

and

int CDECL __crtLCMapStringA(LCID lcid, DWORD mapflags, const char* src,
    int srclen, char* dst, int dstlen, unsigned int codepage, int xflag)

Needed by SVN.

svn path=/trunk/; revision=58016
2012-12-26 19:26:08 +00:00
Eric Kohl 2d39279b16 [NETAPI32]
- Implement NetLocalGroupAdd.
- Implement and use a helper function that opens aliases by name.

svn path=/trunk/; revision=58015
2012-12-26 16:31:28 +00:00
Hermès Bélusca-Maïto 22b449d34b [MSVCRT]
Export ___lc_collate_cp_func since it exists in Win2k3 msvcrt.dll AND it is needed by SVN in RosBE 2.1.

svn path=/trunk/; revision=58014
2012-12-26 16:28:44 +00:00
Thomas Faber ce123b9acc [EXPLORER_NEW]
- Fix some formatting and GetWindowLong[Ptr] confusion

svn path=/trunk/; revision=58013
2012-12-26 15:48:49 +00:00
Hermès Bélusca-Maïto 33e087ed1a [MAGNIFY]
Fix French translation

svn path=/trunk/; revision=58012
2012-12-26 15:28:28 +00:00
Thomas Faber c15e94cbfc [EXPLORER_NEW]
- Add Advanced tab in task bar properties to support ReactOS-specific options (currently: show seconds in tray clock). Patch by Edijs Kolesnikovics.
CORE-5410 #comment Patch committed, thanks! Awaiting the updated save-to-registry functionality.

svn path=/trunk/; revision=58011
2012-12-26 15:14:41 +00:00
Hermès Bélusca-Maïto a894b7ab0b [FREELDR]
Improve the way we are doing the timing: When the timeout is > 0, we refresh its display. When it becomes == 0, we exit the waiting-loop and do the right action (start the default OS, ...). However, when we press a key, it is set to -1 by convention, that means, no timeout. The timeout display is then cleared ONLY ONCE since there is no need to refresh it each time we do a waiting-loop-turn when the timeout is == -1.

svn path=/trunk/; revision=58010
2012-12-26 02:14:46 +00:00
Hermès Bélusca-Maïto 67f7502ca4 [FREELDR]
Code formatting only

svn path=/trunk/; revision=58009
2012-12-26 01:59:39 +00:00
Hermès Bélusca-Maïto 4434b64659 [FREELDR]
- Show the selected boot options as NTLDR does (in light blue under the "For troubleshooting... press F8" message).- The different safe modes are now mutually exclusive, as they must be.
- They can be coupled to the "boot logging", "vga mode" and "debugging" modes, enlarging possibilities (contrary to NTLDR. However you'll remark that these combinations are allowed when set with msconfig...).
- Since the safe modes come by default with boot logging, don't show "Boot Logging" when one of the safe modes is selected, but instead show the corresponding safe mode name.
- Modify the needed functions.

svn path=/trunk/; revision=58008
2012-12-26 01:40:18 +00:00
Aleksey Bragin da0a3154ac [FONTVIEW]
- Lee Schroeder: Replaces the current fontview icon with the icon found in the tango icon set (apps/preferences-desktop-font.png). This creates better consistency since that is where the majority of the icons come from. 
CORE-6827 #resolve

svn path=/trunk/; revision=58007
2012-12-25 18:11:55 +00:00
Hermès Bélusca-Maïto d19b9402fb [FREELDR]
Remove commented-out code (since the new one works) - ThFabba: :P

svn path=/trunk/; revision=58006
2012-12-25 13:24:56 +00:00
Hermès Bélusca-Maïto 48c15d9799 [FREELDR]
Allow VideoMode to be set via decimal, hexadecimal, ... number representation in bootcd/livecd/freeldr.ini (see the Brian Palmer's FREELDR.INI example).

svn path=/trunk/; revision=58005
2012-12-25 12:54:31 +00:00
Eric Kohl 8cc13f35dd [NETAPI32]
- Implement NetLocalGreoupGetInfo.
- Move shared code into separate functions.

svn path=/trunk/; revision=58004
2012-12-25 09:54:53 +00:00
Hermès Bélusca-Maïto f9bb0ce058 [FREELDR]
Code formatting only

svn path=/trunk/; revision=58003
2012-12-25 00:54:20 +00:00
Hermès Bélusca-Maïto 570a635124 [FREELDR]
Use NULL string pointers as separators instead of a special "SEPARATOR" string.

svn path=/trunk/; revision=58002
2012-12-25 00:53:23 +00:00
Hermès Bélusca-Maïto f8917522e4 [FREELDR]
- Menu titles --> Menu headers (see r57842).
- In the same way we introduced menu headers, introduce menu footers, therefore we add the possibility, in mini-tui,
  of showing or hiding the "For troubleshooting and advanced startup options for ReactOS, press F8." message, only
  useful for the main menu (the one which shows the list of available OSes installed on the system).

svn path=/trunk/; revision=58001
2012-12-24 23:03:11 +00:00
Hermès Bélusca-Maïto dcf5487663 [WIN32K]
Add some spacing (not too much) between the screen borders and the "Safe Mode" and the ReactOS version string labels, in Safe Mode.

svn path=/trunk/; revision=58000
2012-12-24 17:34:13 +00:00
Hermès Bélusca-Maïto bf4bf38543 [USETUP/BOOTDATA/FONTS]
Adjust fonts substitutions.

[WIN32K]
Adjust system stock fonts.

svn path=/trunk/; revision=57999
2012-12-24 17:31:30 +00:00
Hermès Bélusca-Maïto f3ec361350 [FONTS]
Add a suitable 'Fixedsys' TTF Unicode font, called 'Fixedsys Excelsior v3.01'.
Released into the Public Domain.
By Darien Gavin Valentine,
http://www.fixedsysexcelsior.com/

svn path=/trunk/; revision=57998
2012-12-24 17:27:04 +00:00
Eric Kohl 7b6e0d965e [NETAPI32]
- Implement NetUserGetInfo.
- Implement level 10 in BuildUserInfoBuffer.
- Zero-initialize the user info buffer after allocation.

svn path=/trunk/; revision=57997
2012-12-24 16:13:02 +00:00