Commit graph

53220 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto 6462517d32 Remove the unneeded $Id$ blabla from the source code.
svn path=/trunk/; revision=58492
2013-03-14 00:39:31 +00:00
Hermès Bélusca-Maïto 084bdac394 Remove ALL the unneeded "author date id revision" svn properties.
svn path=/trunk/; revision=58491
2013-03-14 00:02:41 +00:00
Hermès Bélusca-Maïto 57ddcaf0fa Remove ALL the unneeded "author date id revision" svn properties.
svn path=/trunk/; revision=58490
2013-03-14 00:00:01 +00:00
Hermès Bélusca-Maïto 0823512b4a - Remove ALL the unneeded "author date id revision" svn properties.
- Remove the erroneous svn:eol-syle or svn:eol-stlye properties (and replace them by svn:eol-style)

svn path=/trunk/; revision=58489
2013-03-13 23:50:08 +00:00
Hermès Bélusca-Maïto 7f6b593bb0 [SYSSETUP]
Reorder closing of handles (the service handle then the SCM handle), it clarifies the logic (but not change it dramatically).

[RSYM64]
Correct a misspelling, no code change.

svn path=/trunk/; revision=58488
2013-03-13 20:40:43 +00:00
Timo Kreuzer 9156f1fe0f [NTOSKRNL]
Disable enqueuing processes into the SessionGlobal->ProcessList, since it's broken and causes non paged pool corruption. The reason is that sometimes the process is not removed, so a dead allocation stays in the list, causing havoc, when the next or previous process in that list is removed.

svn path=/trunk/; revision=58487
2013-03-13 18:26:11 +00:00
Timo Kreuzer edbd814452 [NTOSKRNL]
Fix non-KDBG builds

svn path=/trunk/; revision=58486
2013-03-13 18:25:52 +00:00
Timo Kreuzer 7df3287315 [NTOSKRNL]
- Implement "!pool" kdbg extension that works like in WinDbg
- Implement ExpCheckPoolAllocation to check a single allocation for sanity
- Rename MEMORY_ARE::PageOpCount (which is unused) to Magic and set it to 'MAre'
- Implement MiRosCheckMemoryAreas, that checks all memory areas for integrity and PspCheckProcessList that checks the process list. The code is not used anywhere, since it can cause a major performance impact, but it proved useful to detect non paged pool corruptions. So I'll commit it in the hope that it will be useful.

svn path=/trunk/; revision=58485
2013-03-13 18:13:55 +00:00
Amine Khaldi 3637c5fa07 [CRT]
* Annotate locale.h.

svn path=/trunk/; revision=58484
2013-03-13 14:19:51 +00:00
Amine Khaldi 01a913e518 [CRT]
* Annotate errno.h.

svn path=/trunk/; revision=58483
2013-03-13 12:30:49 +00:00
Amine Khaldi 77faf36cdd [PSDK]
* Annotate winnls.h.

svn path=/trunk/; revision=58482
2013-03-13 12:06:41 +00:00
Hermès Bélusca-Maïto 4fcaf1d879 *** INFORMATIONAL COMMIT !! NO CODE CHANGES !! (but svn properties, yes !) ***
The previous commit r58480 was the Part 2/2 of the commit r58305 from 4 weeks ago.

svn path=/branches/ros-csrss/; revision=58481
2013-03-13 01:44:48 +00:00
Hermès Bélusca-Maïto 471be3e868 [SHELL32]
Implement the usage of the STARTF_TITLEISLINKNAME flag (in a STARTUPINFO structure, it signals that the program was started from a shell link, and therefore its lpTitle member holds the path of the link).
What I do is that, in CShellLink::InvokeCommand (called when a shortcut is being executed), I initialize the SHELLEXECUTEINFO structure such that we know that we are starting from a shortcut (use the
SEE_MASK_HASLINKNAME flag), and to hold the path to the flag I use its lpClass member (which is not used for other things in this code path). Then the whole thing is passed to ShellExecuteExW which, in turn,
calls the SHELL_ExecuteW function. This function reads the SHELLEXECUTEINFO structure and, if it has the flag SEE_MASK_HASLINKNAME (or SEE_MASK_HASTITLE too, if somebody also uses lpClass to pass a particular
title for the startup), we use the forementioned lpClass member, holding the link path, as the title (lpTitle member) of a new STARTUPINFO object used when calling CreateProcess (and thus, launching the
new application). So that this application will be aware that she was launched via a link (therefore we become compliant with the STARTF_TITLEISLINKNAME documentation).

svn path=/branches/ros-csrss/; revision=58480
2013-03-13 01:35:46 +00:00
Hermès Bélusca-Maïto 17c0fa64de [PSDK]
- Define all the missing STARTF_* flags needed for the STARTUPINFO structure (taken from http://msdn.microsoft.com/en-us/library/windows/desktop/ms686331(v=vs.85).aspx).
  Amongst them is the STARTF_TITLEISLINKNAME flag that I use in the console server to determine whether a console app was started from a shell link, and if so, extract
  the name of the link and its icon.

- Define all the missing SEE_MASK_* flags needed for the SHELLEXECUTEINFO structure, but the Windows 8 flag (taken from http://msdn.microsoft.com/en-us/library/windows/desktop/bb759784(v=vs.85).aspx).
  Furthermore I add three undocumented flags, SEE_MASK_HASLINKNAME, SEE_MASK_HASTITLE and SEE_MASK_FLAG_SEPVDM. These three flags are undocumented and even not present in the official Windows SDK.
  However they are used in shobjidl.idl to define some CMIC_MASK_* flags, these ones being mentioned in the MSDN documentation of the CMINVOKECOMMANDINFOEX structure (see http://msdn.microsoft.com/en-us/library/windows/desktop/bb773217(v=vs.85).aspx).
  So I affect them a range of values which seems to be strangely empty (see the code). Of course their values may differ from the real ones, however I have no way of discovering them. If somebody else
  can verify them, it would be great.

svn path=/branches/ros-csrss/; revision=58479
2013-03-13 01:19:43 +00:00
Eric Kohl 0a47615a92 [SAMSRV]
Set MaxPasswordAge, LockoutDuration and LockoutObservationWindow for domains during setup.

svn path=/trunk/; revision=58478
2013-03-12 21:27:35 +00:00
Amine Khaldi 6993ef3cbb [PSDK]
* Annotate batclass.h.

svn path=/trunk/; revision=58477
2013-03-12 21:16:25 +00:00
Eric Kohl 6b643aa953 [SAMSRV]
Add helper functions SampOpenAliasObject, SampOpenGroupObject and SampRemoveUserFromAllGroups.

svn path=/trunk/; revision=58476
2013-03-12 20:07:56 +00:00
Amine Khaldi 8fc7b3332f [PSDK]
* Annotate evntprov.h.

svn path=/trunk/; revision=58475
2013-03-12 11:40:11 +00:00
Amine Khaldi 447b3b8db9 [CRT]
* Annotate malloc.h.

svn path=/trunk/; revision=58474
2013-03-11 22:06:16 +00:00
Eric Kohl 02f8bfdb8e [SAMSRV]
Implement SamrShutdownSamServer.

svn path=/trunk/; revision=58473
2013-03-11 21:49:11 +00:00
Eric Kohl 39d6a91610 [SAMSRV]
- Implement SamIConnect.
- Add a trusted caller flag to the database object type and inherit it to opened or created sub objects.
- Restrict access to SamrQueryInformationUser.UserInternal1Information for non-trusted callers.

svn path=/trunk/; revision=58472
2013-03-11 21:01:30 +00:00
Sylvain Petreolle 8caefdd06a [AUDIOSRV]
Fix log message.

svn path=/trunk/; revision=58471
2013-03-11 20:59:01 +00:00
Amine Khaldi df89cea5a4 [DDK]
* Annotate ntpoapi.h.

svn path=/trunk/; revision=58470
2013-03-11 19:49:26 +00:00
Amine Khaldi a371d82385 [PSDK]
* Annotate some structures in ntddstor.h.

svn path=/trunk/; revision=58469
2013-03-11 19:48:21 +00:00
Amine Khaldi 328a638575 [SAL]
* Add _Outptr_opt_result_buffer_ and _Outptr_opt_result_bytebuffer_ annotations.

svn path=/trunk/; revision=58468
2013-03-11 19:31:40 +00:00
Eric Kohl 8a40130a38 [SAMSRV]
Implement SamIFree_SAMPR_PSID_ARRAY.

svn path=/trunk/; revision=58467
2013-03-10 22:28:26 +00:00
Eric Kohl 65e890e0e9 [SAMSRV]
Update .spec file to Windows XP SP3.

svn path=/trunk/; revision=58466
2013-03-10 21:49:10 +00:00
Hermès Bélusca-Maïto 26cea0c412 [CSRSRV]
Clarify this one, too.

svn path=/branches/ros-csrss/; revision=58465
2013-03-10 19:44:48 +00:00
Hermès Bélusca-Maïto e2d2cb40e2 [CSRSRV]
Clarify few parts of code; remove unneeded comments and DPRINTs; start documentation of the CsrCreateProcess routine.

[BASESRV-CONSRV-WINSRV]
Correct the sizes of the API tables.

[SM]
Correct the API names.

svn path=/branches/ros-csrss/; revision=58464
2013-03-10 19:37:33 +00:00
Hermès Bélusca-Maïto 0a679dbf86 [CONSRV]
Attempt to fix terminal window positioning at initialization. Some work also needs to be done in console.dll.

svn path=/branches/ros-csrss/; revision=58463
2013-03-10 15:56:35 +00:00
Hermès Bélusca-Maïto 17c9d97fe7 [CONSRV]
- Fix console initialization / uninitialization and resources release when initialization fails.
- Remove unneeded DPRINTs.

svn path=/branches/ros-csrss/; revision=58462
2013-03-10 15:37:22 +00:00
Timo Kreuzer 4c85cfac11 [LSASRV]
In LsapCreateDatabaseObjects pass the pointer AuditEventsInfo to LsapSetObjectAttribute instead a pointer to the pointer. Fixes 1 advapi32::lsa winetest when compiled with the new BE.

svn path=/trunk/; revision=58461
2013-03-10 13:43:13 +00:00
Timo Kreuzer 8cb3ec617f [NTOSKRNL]
Implement Ke386SetGdtEntryBase and KiSetTebBase and use it in the appropriate places.

svn path=/trunk/; revision=58460
2013-03-10 11:44:04 +00:00
Hermès Bélusca-Maïto 4ec191c413 [CONSOLE.DLL-CONSRV]
Fix cursor size.

svn path=/branches/ros-csrss/; revision=58459
2013-03-10 02:23:46 +00:00
Hermès Bélusca-Maïto 840ea98cba Synchronize with trunk r58457.
svn path=/branches/ros-csrss/; revision=58458
2013-03-10 01:01:36 +00:00
Eric Kohl e850321ffc [LSASRV]
- Implement LSA dispatch routines LsapAllocateClientBuffer, LsapFreeClientBuffer, LsapCopyToClientBuffer and LsapCopyFromClientBuffer.
- LsapCallAuthenticationPackage and LsapLogonUser: Copy data from the callers address space into a local buffer and pass it to the authentication package.

svn path=/trunk/; revision=58457
2013-03-09 22:32:53 +00:00
Hermès Bélusca-Maïto b4413b4ef8 [KERNEL32-USER32]
No need to check ApiMessage.Status if you also check the returned value of CsrClientCallServer because, according to dll/ntdll/csr/connect.c:CsrClientCallServer, the (only) return value of CsrClientCallServer _is_ equal to ApiMessage.Status (vide line 169).

svn path=/branches/ros-csrss/; revision=58456
2013-03-09 22:16:26 +00:00
Hermès Bélusca-Maïto 5819952ab9 [CONSRV-USER32-WINSRV]
Pre-synchrosize with trunk, by applying some changes from revision r58411.

svn path=/branches/ros-csrss/; revision=58455
2013-03-09 21:52:12 +00:00
Hermès Bélusca-Maïto 62f4efcc97 [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
2013-03-09 21:21:37 +00:00
Hermès Bélusca-Maïto c708f46621 [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
2013-03-09 21:08:23 +00:00
Timo Kreuzer 4e493e9959 [USER32]
MsgiAnsiToUnicodeReply: Use heap buffer for MDICREATSTRUCT instead of returning a pointer to a stackbuffer.

svn path=/trunk/; revision=58452
2013-03-09 18:28:30 +00:00
Eric Kohl 3f5bf2bb48 [LSASRV]
- Move LsapLookupAuthenticationPackage, LsapCallAuthenticationPackage and LsapLogonUser from authport.c to authpackage.c.
- Make LsapCallAuthenticationPackage and LsapLogonUser call the matching authentication package functions.

svn path=/trunk/; revision=58451
2013-03-09 15:54:45 +00:00
Sylvain Petreolle e5ef5f569f [BOOTDATA]
CurrentVersion, CSDVersion and CurrentBuildNumber are REG_SZ strings, not REG_EXPAND_SZ.


svn path=/trunk/; revision=58450
2013-03-09 15:06:50 +00:00
Hermès Bélusca-Maïto fa34f9c8ee [KERNEL32]
Further correct 4 console winetests.

svn path=/branches/ros-csrss/; revision=58449
2013-03-09 14:18:10 +00:00
Hermès Bélusca-Maïto 7268b8776a [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
2013-03-09 01:39:49 +00:00
Hermès Bélusca-Maïto 818ee21a07 [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
2013-03-08 23:37:11 +00:00
Hermès Bélusca-Maïto 6a951babef [SERVICES-ADVAPI32]
- Check for possible null pointers (invalid address) before dereferencing them.
- Correct some DPRINT formatting.

svn path=/trunk/; revision=58446
2013-03-08 22:40:38 +00:00
Hermès Bélusca-Maïto 9883df5d8c The 'i' variable being only used for displaying the array of parameters (when debug output is enabled), disable it also to avoid "error: unused variable 'i'".
svn path=/trunk/; revision=58445
2013-03-08 21:22:05 +00:00
Hermès Bélusca-Maïto 5cd9147a13 [SERVICES]
- Disable an unuseful DPRINT.
- Remove a redundant variable lpConfig.

svn path=/trunk/; revision=58444
2013-03-08 21:19:12 +00:00
Hermès Bélusca-Maïto 4691b190f5 [SERVICES]
* Fix some format specifiers (part 2 of r58442). Thanks Amine :)
* Remane two "global" static variables to avoid name collision warnings.

svn path=/trunk/; revision=58443
2013-03-08 20:56:18 +00:00