Commit graph

52786 commits

Author SHA1 Message Date
Dmitry Gorbachev
015d42cf42 Fix MSVC build.
svn path=/trunk/; revision=58206
2013-01-22 23:50:02 +00:00
Hermès Bélusca-Maïto
85da7a06cd [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
2013-01-22 23:28:51 +00:00
Timo Kreuzer
062d16ac10 [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
2013-01-22 22:51:51 +00:00
Dmitry Gorbachev
9ba418e493 [TRANSLATION]
Hebrew translations by Baruch Rutman. CORE-6904.

svn path=/trunk/; revision=58203
2013-01-22 22:46:45 +00:00
Dmitry Gorbachev
73e8d00d1d [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
2013-01-22 22:41:31 +00:00
Dmitry Gorbachev
e368e3af90 [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
2013-01-22 22:38:40 +00:00
Timo Kreuzer
7bc3ce6d8e [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
2013-01-21 20:58:23 +00:00
Hermès Bélusca-Maïto
d064e48b32 Code formatting only.
svn path=/branches/ros-csrss/; revision=58199
2013-01-20 22:26:06 +00:00
Hermès Bélusca-Maïto
40ee602754 [CONSRV]
Add extra parentheses in macros arguments usage.

svn path=/branches/ros-csrss/; revision=58198
2013-01-20 22:15:21 +00:00
Timo Kreuzer
154f585353 [RTL]
Formatting, no code change

svn path=/trunk/; revision=58197
2013-01-20 11:03:10 +00:00
Eric Kohl
7a779210ab [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
2013-01-20 10:22:15 +00:00
Thomas Faber
56704cdb76 [BROWSEUI]
- Build an import library

svn path=/trunk/; revision=58195
2013-01-20 08:57:34 +00:00
Hermès Bélusca-Maïto
c01d4cbb85 [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
2013-01-19 22:06:28 +00:00
Timo Kreuzer
474c3afc11 [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
2013-01-19 21:49:12 +00:00
Thomas Faber
f70cfa3c30 [EXPLORER_NEW]
- Restructure TaskSwitchWnd_CheckActivateTaskItem. No logic change intended.

svn path=/trunk/; revision=58192
2013-01-18 23:34:51 +00:00
Hermès Bélusca-Maïto
f2e3e7ac9d [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
2013-01-18 22:31:16 +00:00
Hermès Bélusca-Maïto
10422cd7e2 [BASESRV]
Remove an unneeded comment.

svn path=/branches/ros-csrss/; revision=58190
2013-01-18 22:28:14 +00:00
Amine Khaldi
de76dbe73f [SHELL32]
* Fix a typo.

svn path=/trunk/; revision=58189
2013-01-18 17:19:23 +00:00
Amine Khaldi
b0376fc9fa [SETUPAPI]
* Don't check the return twice here.

svn path=/trunk/; revision=58188
2013-01-18 15:52:10 +00:00
Eric Kohl
8c365a1421 [SAMSRV]
Fix SamrRemoveMemberFromGroup.

svn path=/trunk/; revision=58187
2013-01-17 22:05:37 +00:00
Thomas Faber
b8577036db [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
2013-01-17 11:02:30 +00:00
Hermès Bélusca-Maïto
a5192cf84c [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
2013-01-16 23:24:07 +00:00
Hermès Bélusca-Maïto
44782833a8 [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
2013-01-16 22:25:12 +00:00
Hermès Bélusca-Maïto
8d5316a95e [KERNEL32]
No need to use a UNICODE_STRING there.

svn path=/trunk/; revision=58183
2013-01-16 00:28:09 +00:00
Hermès Bélusca-Maïto
573e7edb6f [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
2013-01-16 00:16:06 +00:00
Hermès Bélusca-Maïto
3297132e50 "always", not "allways" !!!!!!!!!!!!!!
svn path=/trunk/; revision=58181
2013-01-15 23:26:45 +00:00
Hermès Bélusca-Maïto
05bc0402cc Forgot this one.
svn path=/trunk/; revision=58180
2013-01-15 23:25:56 +00:00
Hermès Bélusca-Maïto
ccf292a193 "always", not "allways" !!!!
svn path=/trunk/; revision=58179
2013-01-15 23:23:20 +00:00
Hermès Bélusca-Maïto
91e34202c7 [CONSRV]
Code reorganization only.

svn path=/branches/ros-csrss/; revision=58178
2013-01-15 00:10:01 +00:00
Hermès Bélusca-Maïto
d3af9fbaf2 [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
2013-01-15 00:02:07 +00:00
Eric Kohl
6b883db864 [SAMSRV]
Implement SamrSetMemberAttributesOfGroup.

svn path=/trunk/; revision=58176
2013-01-14 21:56:45 +00:00
Timo Kreuzer
813f23e2bd [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
2013-01-14 13:55:12 +00:00
Timo Kreuzer
ece7ea44f6 [RTL] Inititalize the heap lock pointers with actual storage before calling RtlInitializeHeapLock
svn path=/trunk/; revision=58174
2013-01-14 10:58:16 +00:00
Timo Kreuzer
69bc32e0f6 [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
2013-01-14 09:35:50 +00:00
Thomas Faber
70ff0357a0 [MSVCRT]
- Improve file description. Patch by Lee Schroeder.
CORE-6895 #resolve

svn path=/trunk/; revision=58172
2013-01-14 09:31:15 +00:00
Thomas Faber
6864baa2aa [EXPLORER_NEW]
- Check policy before processing startup items. Simplify startup code. Patch by Edijs Kolesnikovičs.

svn path=/trunk/; revision=58171
2013-01-13 20:13:30 +00:00
Eric Kohl
ce07958bd9 [SAMSRV]
Implement SamrGetMembersInGroup.

svn path=/trunk/; revision=58170
2013-01-13 19:51:33 +00:00
Hermès Bélusca-Maïto
9967600abf [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
2013-01-13 19:50:52 +00:00
Hermès Bélusca-Maïto
bc73176945 [CONSRV]
HeapAlloc --> RtlAllocateHeap
HeapFree --> RtlFreeHeap
GetProcessHeap --> RtlGetProcessHeap

svn path=/branches/ros-csrss/; revision=58168
2013-01-13 19:18:54 +00:00
Hermès Bélusca-Maïto
975ef54c09 [WINSRV]
Compile Winsrv as a win32dll UNICODE

svn path=/branches/ros-csrss/; revision=58167
2013-01-13 19:17:29 +00:00
Hermès Bélusca-Maïto
df7477717c [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
2013-01-13 17:07:25 +00:00
Timo Kreuzer
823910690a [NDK] Revert accidental changes.
svn path=/trunk/; revision=58165
2013-01-13 15:02:38 +00:00
Timo Kreuzer
4526c85235 [NDK] Add SAL 2 annotations, use dummy annotations, if no SAL is available
[PSDK/DDK/XDK] Fix a number of annotations, change the order in wdm.h fix IRQL annotations

svn path=/trunk/; revision=58164
2013-01-13 14:49:21 +00:00
Thomas Faber
c7e752270c [EXPLORER_NEW]
- Process autostart registry entries. Patch by Edijs Kolesnikovičs.
CORE-6887

svn path=/trunk/; revision=58163
2013-01-13 10:38:47 +00:00
Eric Kohl
fc8c223f28 [SAMSRV]
Implement SamrGetGroupsForUser.

svn path=/trunk/; revision=58162
2013-01-13 10:19:56 +00:00
Eric Kohl
b9272a3090 [SAMSRV]
- SamrAddMemberToGroup: Add the group membership to the user object.
- SamrRemoveMemberFromGroup: Remove the group membership from the user object.

svn path=/trunk/; revision=58161
2013-01-12 21:32:26 +00:00
Eric Kohl
23174045bf [SAMSRV]
- Move domain specific helper functions to a separate file.
- Implement SampRemoveAccountNameFromDomain.

svn path=/trunk/; revision=58160
2013-01-12 16:22:46 +00:00
Eric Kohl
542200a48d [SAMSRV]
- Implement SamrAddMemberToGroup and SamrRemoveMemberFromGroup partially.
- Constify some parameters.

svn path=/trunk/; revision=58159
2013-01-12 15:30:28 +00:00
Hermès Bélusca-Maïto
074466b15e [CSRSRV]
Initialize an uninitialized variable.

svn path=/branches/ros-csrss/; revision=58158
2013-01-12 00:33:55 +00:00
Hermès Bélusca-Maïto
741b1a9b33 [CRT]
Add an error icon to the C Runtime termination message box.
Patch by Lee Schröder.

CORE-6886 #resolve #comment Committed in r58157, thanks :)

svn path=/trunk/; revision=58157
2013-01-11 22:35:44 +00:00