reactos.git
11 years ago[KERNEL32-CONSRV]
Hermès Bélusca-Maïto [Sat, 9 Mar 2013 21:21:37 +0000 (21:21 +0000)]
[KERNEL32-CONSRV]
Remove the old implementation of GetConsoleInputWaitHandle which was commented-out for some time.

[BASESRV]
Correct few names.

svn path=/branches/ros-csrss/; revision=58454

11 years ago[NTDLL]
Hermès Bélusca-Maïto [Sat, 9 Mar 2013 21:08:23 +0000 (21:08 +0000)]
[NTDLL]
Fix CsrCaptureTimeout (verified against Windows Server 2003).

[KERNEL32-CSRSRV-BASESRV-CONSRV-WINSRV]
Clean the code: remove unuseful comments and dprints, reorganize a little bit few source files.

svn path=/branches/ros-csrss/; revision=58453

11 years ago[KERNEL32]
Hermès Bélusca-Maïto [Sat, 9 Mar 2013 14:18:10 +0000 (14:18 +0000)]
[KERNEL32]
Further correct 4 console winetests.

svn path=/branches/ros-csrss/; revision=58449

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Sat, 9 Mar 2013 01:39:49 +0000 (01:39 +0000)]
[CONSRV]
Fix the initialization of screen buffers (concerning the cursor size).

[KERNEL32]
Fix almost all of the console winetests. Only 26 tests remain to be fixed, concerning principally WriteConsoleInputA/W and GetNumberOfConsoleInputEvents.

svn path=/branches/ros-csrss/; revision=58448

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Fri, 8 Mar 2013 23:37:11 +0000 (23:37 +0000)]
[CONSRV]
- Start to sort out things that depends only of the internals of a console, and things which are only related to "terminal emulators". Do it especially for (what I will call starting from now) the "GUI terminal emulator".
- Temporarily deactivate starting "TUI terminals".
- Temporarily break report that the terminal window is held by the current running console application in it (see r58107). This will be fixed later on.

svn path=/branches/ros-csrss/; revision=58447

11 years ago[CONSOLE.DLL]
Hermès Bélusca-Maïto [Sun, 3 Mar 2013 17:39:44 +0000 (17:39 +0000)]
[CONSOLE.DLL]
Use a new unique sample text for fonts and colors overview.

[CONSRV]
Remove few DPRINTs.

svn path=/branches/ros-csrss/; revision=58419

11 years ago[CONSOLE.DLL]
Hermès Bélusca-Maïto [Sun, 3 Mar 2013 15:47:52 +0000 (15:47 +0000)]
[CONSOLE.DLL]
Code formatting only (tab --> space indentation)

svn path=/branches/ros-csrss/; revision=58416

11 years ago[CONSOLE.DLL-KERNEL32-CONSRV]
Hermès Bélusca-Maïto [Sun, 3 Mar 2013 15:35:12 +0000 (15:35 +0000)]
[CONSOLE.DLL-KERNEL32-CONSRV]
Fix the console properties dialog, when launching and transmitting console properties. Before, the properties dialog was directly launched by the console server (consrv), running with CSRSS (System) privileges, what constituted a security hole. Now, I create a remote thread in the running process owning the console for launching the properties dialog (thus it has only user privileges, and not System ones anymore). For that purpose, I basically took the technique described in the following paper (Cesar Cerrudo, "Story of a dumb patch", http://www.argeniss.com/research/MSBugPaper.pdf or http://www.scn.rain.com/~neighorn/PDF/MSBugPaper.pdf), where basically the console server shares the console properties via a shared memory section with the console properties dialog dll. The address of the thread which launches the dialog in the context of the console app is given to the console server the same way as we do for the control handler (called e.g. when you press Ctrl-C, etc...)
Of course this is quite hackish, because you have the GUI interface split between the console server and the console properties dialog dll. Something far more elegant would be to put all the GUI thingie into a dedicated dll or exe, running with the same privileges as the console program itself (a kind of console -- or terminal -- emulator).

[CONSOLE.DLL]
Fix retriving / setting colors.c and other things.

[CONSRV.DLL]
- Fix retrieving / setting console properties from the registry (via the HKCU\Console\* keys), via the shell shortcuts (not totally done at the moment, because somebody has to implement properly that thing : http://msdn.microsoft.com/en-us/library/windows/desktop/bb773359(v=vs.85).aspx (NT_CONSOLE_PROPS structure stored as a shortcut data block) (at application launching time), and via the console properties dialog.
- Few DPRINTs removed.

svn path=/branches/ros-csrss/; revision=58415

11 years ago[BOOTDATA]
Hermès Bélusca-Maïto [Sat, 23 Feb 2013 18:30:47 +0000 (18:30 +0000)]
[BOOTDATA]
Remove pre-saved console default settings in the registry. They will be set by consrv itself at initialization (Work In Progress).

svn path=/branches/ros-csrss/; revision=58357

11 years ago[PSDK]
Hermès Bélusca-Maïto [Wed, 20 Feb 2013 22:28:14 +0000 (22:28 +0000)]
[PSDK]
- Add ENABLE_INSERT_MODE, ENABLE_QUICK_EDIT_MODE and ENABLE_EXTENDED_FLAGS flags.
- Add GetConsoleAliasExesA/W and GetConsoleAliasExesLengthA/W api definitions.

[DOSKEY]
Remove unneeded definitions since now these are declared in the psdk.

svn path=/branches/ros-csrss/; revision=58345

11 years ago[CONSOLE.DLL]
Hermès Bélusca-Maïto [Tue, 19 Feb 2013 00:18:37 +0000 (00:18 +0000)]
[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

11 years ago[CONSOLE.DLL]
Hermès Bélusca-Maïto [Sat, 16 Feb 2013 21:39:57 +0000 (21:39 +0000)]
[CONSOLE.DLL]
- Fix edit controls flag style
- Remove that ugly WS_BORDER style to the spin controls.

svn path=/branches/ros-csrss/; revision=58325

11 years ago[KERNEL32]
Hermès Bélusca-Maïto [Sun, 10 Feb 2013 13:59:09 +0000 (13:59 +0000)]
[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

11 years ago[KERNEL32-CONSRV]
Hermès Bélusca-Maïto [Sun, 10 Feb 2013 12:36:57 +0000 (12:36 +0000)]
[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

11 years agoFix Japanese translation
Hermès Bélusca-Maïto [Sat, 2 Feb 2013 22:42:05 +0000 (22:42 +0000)]
Fix Japanese translation

svn path=/branches/ros-csrss/; revision=58277

11 years ago[CONSOLE.CPL]
Hermès Bélusca-Maïto [Sat, 2 Feb 2013 22:31:27 +0000 (22:31 +0000)]
[CONSOLE.CPL]
Convert language resource files to UTF-8

svn path=/branches/ros-csrss/; revision=58275

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Sat, 2 Feb 2013 22:08:18 +0000 (22:08 +0000)]
[CONSRV]
Convert language resource files into UTF-8

svn path=/branches/ros-csrss/; revision=58273

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Fri, 1 Feb 2013 23:36:23 +0000 (23:36 +0000)]
[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

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Wed, 30 Jan 2013 22:59:47 +0000 (22:59 +0000)]
[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

11 years ago- Sync with trunk r58248 to bring the latest changes from Amine (headers) and others...
Hermès Bélusca-Maïto [Mon, 28 Jan 2013 22:45:53 +0000 (22:45 +0000)]
- 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

11 years ago[NTOSKRNL]
Pierre Schweitzer [Sun, 27 Jan 2013 16:38:24 +0000 (16:38 +0000)]
[NTOSKRNL]
Properly queue the IRP in IoCancelFileOpen()

svn path=/trunk/; revision=58245

11 years ago[NTOSKRNL]
Pierre Schweitzer [Sun, 27 Jan 2013 16:18:00 +0000 (16:18 +0000)]
[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

11 years ago[NTOSKRNL]
Pierre Schweitzer [Sun, 27 Jan 2013 16:11:55 +0000 (16:11 +0000)]
[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

11 years ago[BUGCODES]
Pierre Schweitzer [Sun, 27 Jan 2013 16:08:54 +0000 (16:08 +0000)]
[BUGCODES]
Add the bug code for IoCancelFileOpen()

svn path=/trunk/; revision=58242

11 years ago[SMSS]
Hermès Bélusca-Maïto [Sun, 27 Jan 2013 13:55:04 +0000 (13:55 +0000)]
[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

11 years ago[KSPROXY]
Thomas Faber [Sun, 27 Jan 2013 11:39:09 +0000 (11:39 +0000)]
[KSPROXY]
- Fix some MSVC and GCC 4.7 warnings

svn path=/trunk/; revision=58240

11 years ago[NTOSKRNL]
Pierre Schweitzer [Sun, 27 Jan 2013 09:50:20 +0000 (09:50 +0000)]
[NTOSKRNL]
In ObpCheckTraverseAccess() first try to perform a fast traverse check
before doing the entire access check.

svn path=/trunk/; revision=58239

11 years ago[SMSS]
Hermès Bélusca-Maïto [Sun, 27 Jan 2013 00:19:43 +0000 (00:19 +0000)]
[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

11 years ago[BOOTDATA-SMLIB]
Hermès Bélusca-Maïto [Sun, 27 Jan 2013 00:07:58 +0000 (00:07 +0000)]
[BOOTDATA-SMLIB]
"SubSystems" name letter-case consistency modification.

svn path=/trunk/; revision=58237

11 years ago[SMSS]
Hermès Bélusca-Maïto [Sat, 26 Jan 2013 23:56:07 +0000 (23:56 +0000)]
[SMSS]
Clarify a bit the code. No logical changes.

svn path=/trunk/; revision=58236

11 years ago[SMSS]
Hermès Bélusca-Maïto [Sat, 26 Jan 2013 23:43:28 +0000 (23:43 +0000)]
[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

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Sat, 26 Jan 2013 23:16:34 +0000 (23:16 +0000)]
[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

11 years ago[SERVICES]
Hermès Bélusca-Maïto [Sat, 26 Jan 2013 23:14:05 +0000 (23:14 +0000)]
[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

11 years ago[CSRSRV]
Hermès Bélusca-Maïto [Sat, 26 Jan 2013 21:23:10 +0000 (21:23 +0000)]
[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

11 years ago[NTOSKRNL]
Pierre Schweitzer [Sat, 26 Jan 2013 19:37:01 +0000 (19:37 +0000)]
[NTOSKRNL]
Fix a fixme in IopParseDevice() by calling SeFastTraverseCheck for traverse access check

svn path=/trunk/; revision=58231

11 years ago[NTOSKRNL]
Pierre Schweitzer [Sat, 26 Jan 2013 19:33:54 +0000 (19:33 +0000)]
[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

11 years ago[KERNEL32]
Hermès Bélusca-Maïto [Sat, 26 Jan 2013 19:07:59 +0000 (19:07 +0000)]
[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

11 years ago[INCLUDE]
Thomas Faber [Sat, 26 Jan 2013 18:34:33 +0000 (18:34 +0000)]
[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

11 years ago[STLPORT] - Add basic_fstream(FILE *) constructor to make up for the completely broke...
Thomas Faber [Sat, 26 Jan 2013 18:21:39 +0000 (18:21 +0000)]
[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

11 years ago[NTOSKRNL]
Pierre Schweitzer [Sat, 26 Jan 2013 17:29:18 +0000 (17:29 +0000)]
[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

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Sat, 26 Jan 2013 16:12:05 +0000 (16:12 +0000)]
[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

11 years ago[EXPLORER]
Thomas Faber [Sat, 26 Jan 2013 15:06:49 +0000 (15:06 +0000)]
[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

11 years ago[CRT]
Thomas Faber [Sat, 26 Jan 2013 13:33:15 +0000 (13:33 +0000)]
[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

11 years ago[SAMSRV]
Eric Kohl [Sat, 26 Jan 2013 13:03:33 +0000 (13:03 +0000)]
[SAMSRV]
Implement SamrQueryDisplayInformation2, SamrGetDisplayEnumerationIndex2 and SamrQueryDisplayInformation3.

svn path=/trunk/; revision=58222

11 years ago[SAMSRV]
Eric Kohl [Sat, 26 Jan 2013 12:18:55 +0000 (12:18 +0000)]
[SAMSRV]
Implement SamrQueryInformationDomain2 and SamrQueryInformationUser2.

svn path=/trunk/; revision=58221

11 years ago[SAMSRV]
Eric Kohl [Sat, 26 Jan 2013 11:23:05 +0000 (11:23 +0000)]
[SAMSRV]
Start implementing SamrDeleteAlias and SamrDeleteUser. WIP

svn path=/trunk/; revision=58220

11 years ago[FREELDR]
Timo Kreuzer [Sat, 26 Jan 2013 09:34:12 +0000 (09:34 +0000)]
[FREELDR]
Return NULL, not FALSE on failure in Ext2ReadBlockPointerList

svn path=/trunk/; revision=58219

11 years ago[BROWSEUI_APITEST]
Thomas Faber [Fri, 25 Jan 2013 23:24:46 +0000 (23:24 +0000)]
[BROWSEUI_APITEST]
- Add a test for SHExplorerParseCmdLine.
CORE-5568

svn path=/trunk/; revision=58218

11 years ago[EXPLORER_NEW]
Thomas Faber [Fri, 25 Jan 2013 22:28:41 +0000 (22:28 +0000)]
[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

11 years ago[SAMSRV]
Eric Kohl [Fri, 25 Jan 2013 20:36:23 +0000 (20:36 +0000)]
[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

11 years ago[USP10]
Sylvain Petreolle [Fri, 25 Jan 2013 18:07:06 +0000 (18:07 +0000)]
[USP10]
Fix ros_diff line endings.

svn path=/trunk/; revision=58215

11 years ago* Slap *some* sense into our header inclusions.
Amine Khaldi [Thu, 24 Jan 2013 23:00:42 +0000 (23:00 +0000)]
* 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

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Thu, 24 Jan 2013 22:41:33 +0000 (22:41 +0000)]
[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

11 years ago[SHELL32_WINETEST]
Amine Khaldi [Thu, 24 Jan 2013 22:20:54 +0000 (22:20 +0000)]
[SHELL32_WINETEST]
* Add some missing includes.

svn path=/trunk/; revision=58212

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Thu, 24 Jan 2013 20:48:42 +0000 (20:48 +0000)]
[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

11 years agoRevert unwanted changes.
Hermès Bélusca-Maïto [Wed, 23 Jan 2013 23:21:39 +0000 (23:21 +0000)]
Revert unwanted changes.

svn path=/branches/ros-csrss/; revision=58210

11 years ago[EXPAT]
Amine Khaldi [Wed, 23 Jan 2013 22:55:35 +0000 (22:55 +0000)]
[EXPAT]
* Don't compile a static lib out of it.

svn path=/trunk/; revision=58209

11 years ago[EXPLORER_NEW]
Thomas Faber [Wed, 23 Jan 2013 21:07:37 +0000 (21:07 +0000)]
[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

11 years ago[LIB/ATL]
Amine Khaldi [Wed, 23 Jan 2013 19:09:52 +0000 (19:09 +0000)]
[LIB/ATL]
* Fix a typo.
* Remove a redundant assign.

svn path=/trunk/; revision=58207

11 years agoFix MSVC build.
Dmitry Gorbachev [Tue, 22 Jan 2013 23:50:02 +0000 (23:50 +0000)]
Fix MSVC build.

svn path=/trunk/; revision=58206

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Tue, 22 Jan 2013 23:28:51 +0000 (23:28 +0000)]
[CONSRV]
- Start to uniformize some helpers' names :
  ConioLockConsole --> ConioGetConsole and ConioUnlockConsole --> ConioReleaseConsole
  ConioLockInputBuffer --> ConioGetInputBuffer and ConioUnlockInputBuffer --> ConioReleaseInputBuffer
  ConioLockScreenBuffer --> ConioGetScreenBuffer and ConioUnlockScreenBuffer --> ConioReleaseScreenBuffer
  but the overall naming must be revamped.
- Add them a boolean parameter to determine whether or not we should lock the console. It is useful to not lock an already locked console when input / output waiting threads are called,
  because these are called from functions which lock the console.
- In the GUI console window message loop, after retrieving a pointer to the corresponding console, lock it before calling funtions in the message dispatcher (and unlock the console at the end).
- Use PostMessage instead of SendMessage for "sending" GUI messages to console windows, to avoid possible deadlocks (because of console locking).

- Add temporary /// LOCK /// comments to easily localize where I deactivated extra console (un)locking code (this remains to be analyzed further).

svn path=/branches/ros-csrss/; revision=58205

11 years ago[INCLUDE]
Timo Kreuzer [Tue, 22 Jan 2013 22:51:51 +0000 (22:51 +0000)]
[INCLUDE]
- Remove duplicate dllimport attributes CORE-6917 #resolve
- Add annotations for wcslen
- Add kernelspecs.h (complete)
- Add some more entries in driverspecs.h
- Fix a number of annotations

svn path=/trunk/; revision=58204

11 years ago[TRANSLATION]
Dmitry Gorbachev [Tue, 22 Jan 2013 22:46:45 +0000 (22:46 +0000)]
[TRANSLATION]
Hebrew translations by Baruch Rutman. CORE-6904.

svn path=/trunk/; revision=58203

11 years ago[VGAFONTS]
Dmitry Gorbachev [Tue, 22 Jan 2013 22:41:31 +0000 (22:41 +0000)]
[VGAFONTS]
Add bitmap font for code page 862. Hebrew glyphs are from X11 font
"Schumacher Clean" (see license below), modified by Baruch Rutman
(peterooch*at*gmail*dot*com). CORE-6912.

Copyright 1989 Dale Schumacher, dal@syntel.mn.org
               399 Beacon Ave.
               St. Paul, MN  55104-3527

Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that copyright notice and this permission
notice appear in supporting documentation, and that the name of
Dale Schumacher not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.  Dale Schumacher makes no representations about the
suitability of this software for any purpose.  It is provided "as
is" without express or implied warranty.

svn path=/trunk/; revision=58202

11 years ago[CMAKE]
Dmitry Gorbachev [Tue, 22 Jan 2013 22:38:40 +0000 (22:38 +0000)]
[CMAKE]
- Improve help strings for GCC optimization levels.
- Add new -Ofast and -Og levels.
- Simplify gcc.cmake a bit.
- Use MINGW_TOOLCHAIN_SUFFIX.

svn path=/trunk/; revision=58201

11 years ago[NTOSKRNL]
Timo Kreuzer [Mon, 21 Jan 2013 20:58:23 +0000 (20:58 +0000)]
[NTOSKRNL]
Some keyed event fixes: disable APCs before acquiring the pushlock, close handle on exception, check if a wait was aborted and remove the wait list entry from the list in that case.

svn path=/trunk/; revision=58200

11 years agoCode formatting only.
Hermès Bélusca-Maïto [Sun, 20 Jan 2013 22:26:06 +0000 (22:26 +0000)]
Code formatting only.

svn path=/branches/ros-csrss/; revision=58199

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Sun, 20 Jan 2013 22:15:21 +0000 (22:15 +0000)]
[CONSRV]
Add extra parentheses in macros arguments usage.

svn path=/branches/ros-csrss/; revision=58198

11 years ago[RTL]
Timo Kreuzer [Sun, 20 Jan 2013 11:03:10 +0000 (11:03 +0000)]
[RTL]
Formatting, no code change

svn path=/trunk/; revision=58197

11 years ago[SAMSRV]
Eric Kohl [Sun, 20 Jan 2013 10:22:15 +0000 (10:22 +0000)]
[SAMSRV]
- Add a generic delete function for database objects.
- Do not create Members sub keys for group objects.
- Get rid of the SamDbContainerObject object type.
- Implement SamrDeleteGroup.

svn path=/trunk/; revision=58196

11 years ago[BROWSEUI]
Thomas Faber [Sun, 20 Jan 2013 08:57:34 +0000 (08:57 +0000)]
[BROWSEUI]
- Build an import library

svn path=/trunk/; revision=58195

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Sat, 19 Jan 2013 22:06:28 +0000 (22:06 +0000)]
[CONSRV]
- Get in a simpler way the console owned by a console window: replace GuiConsoleGetDataPointers by GuiGetWindowConsole.
- Only in functions which need it, we get the GUI data held by the console.

svn path=/branches/ros-csrss/; revision=58194

11 years ago[SAL.H] "Implement" all used annotations
Timo Kreuzer [Sat, 19 Jan 2013 21:49:12 +0000 (21:49 +0000)]
[SAL.H] "Implement" all used annotations
[XDK/DDK] Add missing annotations, move some prototypes to more appropriate headers
[NDK] Fix a number of annotations
[NDK] Use SAL2 dummys from umtypes as well

svn path=/trunk/; revision=58193

11 years ago[EXPLORER_NEW]
Thomas Faber [Fri, 18 Jan 2013 23:34:51 +0000 (23:34 +0000)]
[EXPLORER_NEW]
- Restructure TaskSwitchWnd_CheckActivateTaskItem. No logic change intended.

svn path=/trunk/; revision=58192

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Fri, 18 Jan 2013 22:31:16 +0000 (22:31 +0000)]
[CONSRV]
- Isolate the members of the CONSOLE structure which are used as input buffer data, in a new structure called ... CONSOLE_INPUT_BUFFER !
- Rename some helper functions to better match what they are doing.

svn path=/branches/ros-csrss/; revision=58191

11 years ago[BASESRV]
Hermès Bélusca-Maïto [Fri, 18 Jan 2013 22:28:14 +0000 (22:28 +0000)]
[BASESRV]
Remove an unneeded comment.

svn path=/branches/ros-csrss/; revision=58190

11 years ago[SHELL32]
Amine Khaldi [Fri, 18 Jan 2013 17:19:23 +0000 (17:19 +0000)]
[SHELL32]
* Fix a typo.

svn path=/trunk/; revision=58189

11 years ago[SETUPAPI]
Amine Khaldi [Fri, 18 Jan 2013 15:52:10 +0000 (15:52 +0000)]
[SETUPAPI]
* Don't check the return twice here.

svn path=/trunk/; revision=58188

11 years ago[SAMSRV]
Eric Kohl [Thu, 17 Jan 2013 22:05:37 +0000 (22:05 +0000)]
[SAMSRV]
Fix SamrRemoveMemberFromGroup.

svn path=/trunk/; revision=58187

11 years ago[EXPLORER_NEW]
Thomas Faber [Thu, 17 Jan 2013 11:02:30 +0000 (11:02 +0000)]
[EXPLORER_NEW]
- Hide minimized window captions (and enable shell notifications, thus fixing taskbar buttons). This should have been in r57978, but got lost.
- From Andrew Green's GSoC branch. Spotted by Edijus.
CORE-6899 #resolve

svn path=/trunk/; revision=58186

11 years ago[EXPLORER_NEW]
Hermès Bélusca-Maïto [Wed, 16 Jan 2013 23:24:07 +0000 (23:24 +0000)]
[EXPLORER_NEW]
- Italian Translation and fix duplicate MENUITEM in fr-FR.rc, ko-KR, no-NO.rc files. Patch by Ivan Di Francesco.
- Adapt a little bit French translation (by me).

CORE-6908 #resolve #comment Committed in r58185. Thanks !

svn path=/trunk/; revision=58185

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Wed, 16 Jan 2013 22:25:12 +0000 (22:25 +0000)]
[CONSRV]
Introduce new helper functions Win32CsrInitHandlesTable and Win32CsrAllocateConsole and use them in many places (in ConsoleConnect, SrvAllocConsole and SrvAttachConsole).

svn path=/branches/ros-csrss/; revision=58184

11 years ago[KERNEL32]
Hermès Bélusca-Maïto [Wed, 16 Jan 2013 00:28:09 +0000 (00:28 +0000)]
[KERNEL32]
No need to use a UNICODE_STRING there.

svn path=/trunk/; revision=58183

11 years ago[KERNEL32]
Hermès Bélusca-Maïto [Wed, 16 Jan 2013 00:16:06 +0000 (00:16 +0000)]
[KERNEL32]
Fix support for CONIN$ and CONOUT$, and add support for CON special file
(now, writing to C:\CON or C:\somepath\CONIN$ or C:\anotherpath\CONOUT$ works).

svn path=/branches/ros-csrss/; revision=58182

11 years ago"always", not "allways" !!!!!!!!!!!!!!
Hermès Bélusca-Maïto [Tue, 15 Jan 2013 23:26:45 +0000 (23:26 +0000)]
"always", not "allways" !!!!!!!!!!!!!!

svn path=/trunk/; revision=58181

11 years agoForgot this one.
Hermès Bélusca-Maïto [Tue, 15 Jan 2013 23:25:56 +0000 (23:25 +0000)]
Forgot this one.

svn path=/trunk/; revision=58180

11 years ago"always", not "allways" !!!!
Hermès Bélusca-Maïto [Tue, 15 Jan 2013 23:23:20 +0000 (23:23 +0000)]
"always", not "allways" !!!!

svn path=/trunk/; revision=58179

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Tue, 15 Jan 2013 00:10:01 +0000 (00:10 +0000)]
[CONSRV]
Code reorganization only.

svn path=/branches/ros-csrss/; revision=58178

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Tue, 15 Jan 2013 00:02:07 +0000 (00:02 +0000)]
[CONSRV]
- Temporary make the property dialog working again (but it's not the ultimate solution).
- in conio.h : members reorganization only.

svn path=/branches/ros-csrss/; revision=58177

11 years ago[SAMSRV]
Eric Kohl [Mon, 14 Jan 2013 21:56:45 +0000 (21:56 +0000)]
[SAMSRV]
Implement SamrSetMemberAttributesOfGroup.

svn path=/trunk/; revision=58176

11 years ago[NTOSKRNL] Initialize MmCriticalSectionTimeout and use it to setup the value in the...
Timo Kreuzer [Mon, 14 Jan 2013 13:55:12 +0000 (13:55 +0000)]
[NTOSKRNL] Initialize MmCriticalSectionTimeout and use it to setup the value in the PEB (We currently continue to use 2.5 minutes, as opposed to the 30 days that Windows uses). Probe and copy the timeout value in NtWaitForKeyedEvent and NtReleaseKeyedEvent.
[RTL] Use RtlpTimeout for critical sections, which is initialized from the PEB. Implement using the LowMemory keyed event, when allocating the normal event failed.

svn path=/trunk/; revision=58175

11 years ago[RTL] Inititalize the heap lock pointers with actual storage before calling RtlInitia...
Timo Kreuzer [Mon, 14 Jan 2013 10:58:16 +0000 (10:58 +0000)]
[RTL] Inititalize the heap lock pointers with actual storage before calling RtlInitializeHeapLock

svn path=/trunk/; revision=58174

11 years ago[RTL/NTOSKRNL]
Timo Kreuzer [Mon, 14 Jan 2013 09:35:50 +0000 (09:35 +0000)]
[RTL/NTOSKRNL]
- Seperate some usermode only heap functions into their own file and implement dummys in the kernel rtl so that they don't get included in the kernel
- Convert usage of RTL_CRITICAL_SECTION in heappage.c to use of HEAP_LOCK
- Implement A kernel dummy for RtlCallVectoredExceptionHandlers, so we don't put vectored exception handler code into ntoskrnl
- Now we don't have critical section code in the kernel anymore, which wasn't working anyway.

svn path=/trunk/; revision=58173

11 years ago[MSVCRT]
Thomas Faber [Mon, 14 Jan 2013 09:31:15 +0000 (09:31 +0000)]
[MSVCRT]
- Improve file description. Patch by Lee Schroeder.
CORE-6895 #resolve

svn path=/trunk/; revision=58172

11 years ago[EXPLORER_NEW]
Thomas Faber [Sun, 13 Jan 2013 20:13:30 +0000 (20:13 +0000)]
[EXPLORER_NEW]
- Check policy before processing startup items. Simplify startup code. Patch by Edijs Kolesnikovičs.

svn path=/trunk/; revision=58171

11 years ago[SAMSRV]
Eric Kohl [Sun, 13 Jan 2013 19:51:33 +0000 (19:51 +0000)]
[SAMSRV]
Implement SamrGetMembersInGroup.

svn path=/trunk/; revision=58170

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Sun, 13 Jan 2013 19:50:52 +0000 (19:50 +0000)]
[CONSRV]
- Finish to do the replacements HeapAlloc --> RtlAllocateHeap and Co.
- Finish to UNICODify consrv (it happens that it has been almost done already).
- Modify the way we start BlueScreen driver (in TUI mode): instead of using the SCM which, at that moment, is starting (and is not ready to answer to start/stop services requests), use the NT apis to start the driver (in the same way the SCM performs driver starting).
- Add a note on HAVE_WMEMSET.

svn path=/branches/ros-csrss/; revision=58169

11 years ago[CONSRV]
Hermès Bélusca-Maïto [Sun, 13 Jan 2013 19:18:54 +0000 (19:18 +0000)]
[CONSRV]
HeapAlloc --> RtlAllocateHeap
HeapFree --> RtlFreeHeap
GetProcessHeap --> RtlGetProcessHeap

svn path=/branches/ros-csrss/; revision=58168

11 years ago[WINSRV]
Hermès Bélusca-Maïto [Sun, 13 Jan 2013 19:17:29 +0000 (19:17 +0000)]
[WINSRV]
Compile Winsrv as a win32dll UNICODE

svn path=/branches/ros-csrss/; revision=58167

11 years ago[KERNEL32]
Hermès Bélusca-Maïto [Sun, 13 Jan 2013 17:07:25 +0000 (17:07 +0000)]
[KERNEL32]
- Correct a error return code (in AllocConsole).
- Implement AttachConsole (inspired by AllocConsole).

[CONSRV]
- Correct a error return code (in AllocConsole).
- Introduce helper functions to simplify console-initialization code.
- Implement server-side of AttachConsole (I used pieces of code from ConsoleNewProcess, ConsoleConnect and SrvAllocConsole).

Some debug prints were introduced (for debug-purposes :P), will be removed when all things work.

TODO: have a look on the handles code.

svn path=/branches/ros-csrss/; revision=58166