Commit graph

52785 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto bdd2cf15af [CONSOLE.DLL]
- Add an icon.
- Fix some labels in the property box and the disposition of controls in english and french resources (not in all because positions change between languages and I've no time synchronizing by hand all the resource files, removing the differences).

svn path=/branches/ros-csrss/; revision=58343
2013-02-19 00:18:37 +00:00
Hermès Bélusca-Maïto a7bd922efb [CONSOLE.DLL]
- Fix edit controls flag style
- Remove that ugly WS_BORDER style to the spin controls.

svn path=/branches/ros-csrss/; revision=58325
2013-02-16 21:39:57 +00:00
Hermès Bélusca-Maïto 4738893a1d [KERNEL32]
Code reorganization only : move the console-related initialization functions into a dedicated file, and create a specific header to hold console function definitions.

svn path=/branches/ros-csrss/; revision=58306
2013-02-10 13:59:09 +00:00
Hermès Bélusca-Maïto f4d53fbd91 [KERNEL32-CONSRV]
- Introduce a CONSOLE_PROPS structure to hold console properties such as its title or startup attributes it should have. Initialized at console application launch time. I have to see how could it be possible to merge this structure with some parts of the GUI_CONSOLE_DATA structure and of the ConsoleInfo structure from console.dll (in /dll/cpl).
- Use a helper function to initialize the CONSOLE_PROPS structure in kernel32, at console app start or when calling AllocConsole.
- In BasepInitConsole, do initialization of CONSOLE_PROPS and related only if we are about to launch a console app.

[CONSRV]
- Adapt CONSOLE_CONNECTION_INFO and CONSOLE_ALLOCCONSOLE structures to take into account CONSOLE_PROPS.
- Fix the way we are setting console titles.
- Add experimental support for loading console properties and title and icon from shell links, thanks to the helper LoadShellLinkInfo. However I'm using there Shell COM facility to extract link properties (I could do it "the RAW way", however I would then know the format of link files, that I don't know and that I don't want to mix up with the console code). Therefore I must add dependencies to uuid and ole32 libraries. Note that icons are used in GUI consoles only (use the PrivateExtractIconExW function to retrieve both handles to the big and small icons at the same time).

Part 1/2

[CONSRV]
- Remove an unuseful xxxInitScreenBuffer function in the virtual functions console table.
- In GUI_CONSOLE_DATA structure and related functions, temporarily explicitely mark which members may be used for both GUI and TUI consoles (for a future simplification).
- Add temporary debug prints when we are setting console icon, to see the flow of calls (will be removed just before merging back to trunk).
- Add temporary debug prints in ConSrvInitConsoleScreenBuffer and ConioDeleteScreenBuffer, to figure out how SBs are initialized.

svn path=/branches/ros-csrss/; revision=58305
2013-02-10 12:36:57 +00:00
Hermès Bélusca-Maïto 8cf2fce7be Fix Japanese translation
svn path=/branches/ros-csrss/; revision=58277
2013-02-02 22:42:05 +00:00
Hermès Bélusca-Maïto 00fb4825ec [CONSOLE.CPL]
Convert language resource files to UTF-8

svn path=/branches/ros-csrss/; revision=58275
2013-02-02 22:31:27 +00:00
Hermès Bélusca-Maïto 927f80ab76 [CONSRV]
Convert language resource files into UTF-8

svn path=/branches/ros-csrss/; revision=58273
2013-02-02 22:08:18 +00:00
Hermès Bélusca-Maïto 54293ba008 [CONSRV]
- Further compactify console allocation / attach code by putting common code into helper functions.
- Now, the default title of a console window is... "ReactOS Console" (and not command prompt since a console window isn't only reserved to command prompts).

svn path=/branches/ros-csrss/; revision=58260
2013-02-01 23:36:23 +00:00
Hermès Bélusca-Maïto 03d1c009f0 [CONSRV]
- Add a macro which specifies how much space chars a TAB is.
- Implement BELL ANSI character handling (basic) and add temporary DPRINTs to see who is called (by the way, Beep() functions seems not to work correctly).

svn path=/branches/ros-csrss/; revision=58253
2013-01-30 22:59:47 +00:00
Hermès Bélusca-Maïto bb519801e2 - Sync with trunk r58248 to bring the latest changes from Amine (headers) and others (hebrew translation, etc...)
- Include only the necessary headers in csrss/csrsrv/basesrv/consrv/winsrv.

svn path=/branches/ros-csrss/; revision=58249
2013-01-28 22:45:53 +00:00
Pierre Schweitzer 55be9e4adc [NTOSKRNL]
Properly queue the IRP in IoCancelFileOpen()

svn path=/trunk/; revision=58245
2013-01-27 16:38:24 +00:00
Pierre Schweitzer 48c45bbe68 [NTOSKRNL]
Implement IoCancelFileOpen().

You can read: http://www.osronline.com/showThread.cfm?link=20807
Even though the proposed implementation is closer to W2K implementation than to W2K3 implementation

In W2K3, no IRP is issued with major close.

svn path=/trunk/; revision=58244
2013-01-27 16:18:00 +00:00
Pierre Schweitzer fc5c683b7b [NTOSKRNL]
Implement IopAllocateIrpMustSucceed() which is designed to *normally* always return an IRP.
Even in low memory situations (if you wait enough). 

svn path=/trunk/; revision=58243
2013-01-27 16:11:55 +00:00
Pierre Schweitzer a12df33047 [BUGCODES]
Add the bug code for IoCancelFileOpen()

svn path=/trunk/; revision=58242
2013-01-27 16:08:54 +00:00
Hermès Bélusca-Maïto 9fd0632528 [SMSS]
Revert my change of loading the win32k kernel-mode subsystem driver by reading the Kmode value and use instead a hardcoded value, per request of Alex.
I'm wondering why Windows wouldn't allow you to use a personalized value there and forces you to use win32k with this name, placed in \SystemRoot\System32 directory and not in an other place.

svn path=/trunk/; revision=58241
2013-01-27 13:55:04 +00:00
Thomas Faber 50b1d52ba9 [KSPROXY]
- Fix some MSVC and GCC 4.7 warnings

svn path=/trunk/; revision=58240
2013-01-27 11:39:09 +00:00
Pierre Schweitzer f7a609c7fc [NTOSKRNL]
In ObpCheckTraverseAccess() first try to perform a fast traverse check
before doing the entire access check.

svn path=/trunk/; revision=58239
2013-01-27 09:50:20 +00:00
Hermès Bélusca-Maïto 0b3f274e0e [SMSS]
- Uniformize the error messages and also, SmpParseCommand is SmpParseCommandLine in fact.
- Remove an unneeded cast since Flags is already ULONG.

svn path=/trunk/; revision=58238
2013-01-27 00:19:43 +00:00
Hermès Bélusca-Maïto 20acbf7dfa [BOOTDATA-SMLIB]
"SubSystems" name letter-case consistency modification.

svn path=/trunk/; revision=58237
2013-01-27 00:07:58 +00:00
Hermès Bélusca-Maïto 7ef6decbcf [SMSS]
Clarify a bit the code. No logical changes.

svn path=/trunk/; revision=58236
2013-01-26 23:56:07 +00:00
Hermès Bélusca-Maïto 3f7404e73b [SMSS]
Load the Win32k driver from the path mentioned in the Kmode value of the registry, not via a hardcoded value.

svn path=/trunk/; revision=58235
2013-01-26 23:43:28 +00:00
Hermès Bélusca-Maïto 49ea03a6b9 [CONSRV]
Modify driver acquiring/releasing privilege according to r58233. The corresponding modification in services.c will be done at the next synchronization.

svn path=/branches/ros-csrss/; revision=58234
2013-01-26 23:16:34 +00:00
Hermès Bélusca-Maïto 4ad0f2245b [SERVICES]
Fix acquiring/releasing driver-loading and unloading privilege (see r57754) by using the RtlAdjustPrivilege API instead of using the standard user-mode Win32 API (thus get rid of calling LSA when calling LookupPrivilegeValueW).

svn path=/trunk/; revision=58233
2013-01-26 23:14:05 +00:00
Hermès Bélusca-Maïto b75ee7fd14 [CSRSRV]
- Zero-out some allocated memory.
- During my investigations preceding the implementation of AttachConsole (r58166), I wanted (in a first attempt; finally I've found a better way to achieve what I wanted to do) to retrieve the CSR_PROCESS structure of the parent of a given process. I've found the 'Parent' member in the CSR_PROCESS structure, however this member was always initialized to NULL when new processes were created via CsrCreateProcess (and via the call to CsrInsertProcess). After looking at some informating here (http://svn.reactos.org/svn/reactos/trunk/reactos/include/subsys/csr/server.h?r1=17363&r2=17362&pathrev=17363) and there (http://forum.sysinternals.com/csrwalker-processes-detection-from-user-mode_topic15457.html), I became convinced that the 'Parent' member was unexistent starting from Windows Server 2003. Also, after much more investigation, I've found that the CsrInsertProcess function was called with only two parameters starting from Windows Server 2003 (and still continues in Windows 7), the always-NULL paramater being removed.
Therefore, I remove that unneeded parameter from CsrInsertProcess and the corresponding 'Parent' member from CSR_PROCESS.

svn path=/branches/ros-csrss/; revision=58232
2013-01-26 21:23:10 +00:00
Pierre Schweitzer 705173ebd5 [NTOSKRNL]
Fix a fixme in IopParseDevice() by calling SeFastTraverseCheck for traverse access check

svn path=/trunk/; revision=58231
2013-01-26 19:37:01 +00:00
Pierre Schweitzer e6f8602d9d [NTOSKRNL]
Implement SeFastTraverseCheck().
For more information, see:
- http://msdn.microsoft.com/en-us/library/windows/desktop/aa374872(v=vs.85).aspx
- http://msdn.microsoft.com/en-us/library/windows/desktop/aa446683(v=vs.85).aspx

svn path=/trunk/; revision=58230
2013-01-26 19:33:54 +00:00
Hermès Bélusca-Maïto 7846f054ff [KERNEL32]
Clean-up IntReadConsoleOutputCode a little bit.

[CONSRV]
Fix a buffer overflow in SrvReadConsoleOutputString, which was translated sometimes into heap corruption and assert, triggered when freeing a remote captured buffer in csrsrv, when executing kernel32_winetest console, just during a call to ReadConsoleOutputCharacterA.
Nevertheless I still keep the culprit code (commented-out now) because it might be useful in the future.

svn path=/branches/ros-csrss/; revision=58229
2013-01-26 19:07:59 +00:00
Thomas Faber 073f350f87 [INCLUDE]
- Actually put in the C++ headers what our CRT implements, instead of some random mix of libstdc++ and who knows what. This means the header contents are somewhat outdated and non-standard, but that's preferable to unusable
- Fix a forward declaration in math.h

svn path=/trunk/; revision=58228
2013-01-26 18:34:33 +00:00
Thomas Faber 25c6b6c631 [STLPORT] - Add basic_fstream(FILE *) constructor to make up for the completely broken basic_fstream(int) one
[EXPLORER] - Fix accordingly. Also fix totally broken initialization order in t[io]fstream

svn path=/trunk/; revision=58227
2013-01-26 18:21:39 +00:00
Pierre Schweitzer 6e0c97bcbe [NTOSKRNL]
Fix a fixme in IopParseDevice() by calling SeOpenObjectAuditAlarm().
Won't change anything right now since it calls a stub.

svn path=/trunk/; revision=58226
2013-01-26 17:29:18 +00:00
Hermès Bélusca-Maïto 6d28ec8640 [CONSRV]
Fix input/output (read/write) waiter threads notifications. Now console is usable.
Go and test it! :D

svn path=/branches/ros-csrss/; revision=58225
2013-01-26 16:12:05 +00:00
Thomas Faber 94bb4b7aaf [EXPLORER]
- Use set_cpp instead of hand-coding all the parameters
- Use comutil.h and link with comsupp unconditionally, since we now have them
- Use STLPort-compatible filebuf constructor for TCHAR iostreams
- Fix a few MSVC and GCC 4.7 errors/warnings

svn path=/trunk/; revision=58224
2013-01-26 15:06:49 +00:00
Thomas Faber 9f6d7cdd67 [CRT]
- Import C++ compiler support headers from mingw-w64 (with some fixes)
- Implement the required parts of the comsupp library

svn path=/trunk/; revision=58223
2013-01-26 13:33:15 +00:00
Eric Kohl 8479fd6f47 [SAMSRV]
Implement SamrQueryDisplayInformation2, SamrGetDisplayEnumerationIndex2 and SamrQueryDisplayInformation3.

svn path=/trunk/; revision=58222
2013-01-26 13:03:33 +00:00
Eric Kohl 31309d62c1 [SAMSRV]
Implement SamrQueryInformationDomain2 and SamrQueryInformationUser2.

svn path=/trunk/; revision=58221
2013-01-26 12:18:55 +00:00
Eric Kohl 085adf3da0 [SAMSRV]
Start implementing SamrDeleteAlias and SamrDeleteUser. WIP

svn path=/trunk/; revision=58220
2013-01-26 11:23:05 +00:00
Timo Kreuzer 1cb3985a69 [FREELDR]
Return NULL, not FALSE on failure in Ext2ReadBlockPointerList

svn path=/trunk/; revision=58219
2013-01-26 09:34:12 +00:00
Thomas Faber 5994749f53 [BROWSEUI_APITEST]
- Add a test for SHExplorerParseCmdLine.
CORE-5568

svn path=/trunk/; revision=58218
2013-01-25 23:24:46 +00:00
Thomas Faber 8900ea9af6 [EXPLORER_NEW]
- Do not allow multiple "Taskbar and Start Menu Properties" windows. Based on patch by Edijs Kolesnikovičs & Grégori Macário Harbs.
CORE-6885 #resolve

svn path=/trunk/; revision=58217
2013-01-25 22:28:41 +00:00
Eric Kohl 97d934c8be [SAMSRV]
- Add missing domain information types to ntsam.h and fix conflicts in ntsecapi.h and sam.idl.
- Add SamChangePasswordUser, SamChangePasswordUser2 and SamChangePasswordUser3 stubs.

svn path=/trunk/; revision=58216
2013-01-25 20:36:23 +00:00
Sylvain Petreolle 379c1bba14 [USP10]
Fix ros_diff line endings.

svn path=/trunk/; revision=58215
2013-01-25 18:07:06 +00:00
Amine Khaldi 2bd930547c * Slap *some* sense into our header inclusions.
* This significantly shrinks the dependency tracking data and the compiled objects size, which speeds up the whole build process (especially the incremental builds) accelerating the daily development as a result.
* No intended code changes, ~27% smaller build. Enjoy ;)

svn path=/trunk/; revision=58214
2013-01-24 23:00:42 +00:00
Hermès Bélusca-Maïto 50a9e6a485 [CONSRV]
Rename functions to their new scheme: ConSrv* instead of Win32Csr* or Conio* (with some exceptions for the latter case).
No code changes.

svn path=/branches/ros-csrss/; revision=58213
2013-01-24 22:41:33 +00:00
Amine Khaldi 7d4974af75 [SHELL32_WINETEST]
* Add some missing includes.

svn path=/trunk/; revision=58212
2013-01-24 22:20:54 +00:00
Hermès Bélusca-Maïto fe7b0f74d3 [CONSRV]
- Start to implement waiting threads notifications. They can be notified by:
  * the required action (screen displaying lock/unlock, presence of new characters in the input buffer),
  * the fact that the application terminates,
  * we close a (input) handle.
  TODO: When we notify them by calling CsrNotifyWait, they are not dereferenced automatically, but they can be
  by calling a dedicated CSR function. We need to know where it is the best to dereference them.
- Correct a bug introduced in revision r58191, which broke console input mode changes (in SrvSetConsoleMode and SrvGetConsoleMode).

svn path=/branches/ros-csrss/; revision=58211
2013-01-24 20:48:42 +00:00
Hermès Bélusca-Maïto 670f805765 Revert unwanted changes.
svn path=/branches/ros-csrss/; revision=58210
2013-01-23 23:21:39 +00:00
Amine Khaldi d6e068a86c [EXPAT]
* Don't compile a static lib out of it.

svn path=/trunk/; revision=58209
2013-01-23 22:55:35 +00:00
Thomas Faber 8c4e91a1fc [EXPLORER_NEW]
- Do not allow multiple run dialogs. Based on patch by Edijs Kolesnikovičs & Grégori Macário Harbs.
CORE-6871 #resolve

svn path=/trunk/; revision=58208
2013-01-23 21:07:37 +00:00
Amine Khaldi 87644827ce [LIB/ATL]
* Fix a typo.
* Remove a redundant assign.

svn path=/trunk/; revision=58207
2013-01-23 19:09:52 +00:00
Dmitry Gorbachev 015d42cf42 Fix MSVC build.
svn path=/trunk/; revision=58206
2013-01-22 23:50:02 +00:00