Commit graph

53393 commits

Author SHA1 Message Date
Timo Kreuzer f4e6200805 [CRT]
Implement [v]s[nw]printf_s

[MSVCRT]
Enable [v]s[nw]printf_s exports

svn path=/trunk/; revision=58515
2013-03-16 13:40:28 +00:00
Giannis Adamopoulos cbed503fb8 [win32k]
- Store the session id in WINSTATION_OBJECT when we create a window station.
- Don't allow switching to a desktop that belongs to a different session
This is a modified version of the patch from CORE-5531

svn path=/trunk/; revision=58514
2013-03-16 10:12:16 +00:00
Giannis Adamopoulos aa4c4bda1e [win32csr]
- When we close a window during shutdown, switch to the desktop of the window 
CORE-5439

svn path=/trunk/; revision=58513
2013-03-16 09:09:53 +00:00
Daniel Reimer d90981b030 Update Rapps Database. Welcome to CLT2013 ^^
svn path=/trunk/; revision=58512
2013-03-16 08:17:19 +00:00
Amine Khaldi 4e177c7895 [CRT]
* Annotate stdlib_s.h.
* Annotate more functions in stdlib.h.

svn path=/trunk/; revision=58511
2013-03-15 22:04:05 +00:00
Amine Khaldi 1fe48aa611 [APPLICATIONS]
* Fix some format specifiers.

svn path=/trunk/; revision=58510
2013-03-15 21:59:57 +00:00
Amine Khaldi 5743d95036 [SAL]
* Add _Outptr_result_z_ annotation.

svn path=/trunk/; revision=58509
2013-03-15 21:36:13 +00:00
Amine Khaldi 922de4a0ad [SC]
* Fix some format specifiers.

svn path=/trunk/; revision=58508
2013-03-15 17:28:43 +00:00
Amine Khaldi dccac52c2c [CRT]
* Annotate mbctype.h.

svn path=/trunk/; revision=58507
2013-03-15 17:03:42 +00:00
Amine Khaldi d67bfcb179 [WINMINE]
* Fix some format specifiers.

svn path=/trunk/; revision=58506
2013-03-15 15:47:39 +00:00
Amine Khaldi 77f02beef8 [CRT]
* Annotate io.h.

svn path=/trunk/; revision=58505
2013-03-15 14:52:20 +00:00
Amine Khaldi 5dfaa3991c [FREELDR]
* Fix a format specifiers.

svn path=/trunk/; revision=58504
2013-03-15 14:51:02 +00:00
Amine Khaldi a1866f4f92 [CALC]
* Fix some format specifiers.

svn path=/trunk/; revision=58503
2013-03-15 13:34:52 +00:00
Amine Khaldi 97bc0bcd23 [CRT]
* Annotate float.h.

svn path=/trunk/; revision=58502
2013-03-15 13:32:56 +00:00
Hermès Bélusca-Maïto c94bff6b2e Remove the unneeded $Id$ blabla from the source code, but not in 3rd party code. (Part 3/N)
svn path=/trunk/; revision=58501
2013-03-14 22:21:37 +00:00
Hermès Bélusca-Maïto d0fa874320 Remove the unneeded $Id$ blabla from the source code. (Part 2/N)
svn path=/trunk/; revision=58500
2013-03-14 21:04:13 +00:00
Hermès Bélusca-Maïto f0b30b2360 [WIN32SS]
- Remove the unneeded $Id$ blabla from the source code.
- Translate some GreatLordish into English.

svn path=/trunk/; revision=58499
2013-03-14 20:35:39 +00:00
Amine Khaldi 9c65c1548a [CRT]
* Annotate math.h.

svn path=/trunk/; revision=58498
2013-03-14 17:54:05 +00:00
Amine Khaldi 1aaf95a11c [TASKMGR]
* Fix some format specifiers.

svn path=/trunk/; revision=58497
2013-03-14 17:47:00 +00:00
Amine Khaldi e4b7869ead [CRT]
* Annotate direct.h.

svn path=/trunk/; revision=58496
2013-03-14 16:53:56 +00:00
Amine Khaldi 8783a188c9 [EVENTLOG]
* Fix some format specifiers.

svn path=/trunk/; revision=58495
2013-03-14 16:51:39 +00:00
Amine Khaldi 284994e897 [CRT]
* Annotate conio.h.

svn path=/trunk/; revision=58494
2013-03-14 12:54:51 +00:00
Hermès Bélusca-Maïto 66a44527fd Remove the unneeded $Id$ blabla from the source code.
svn path=/trunk/; revision=58493
2013-03-14 01:14:18 +00:00
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