Commit graph

18 commits

Author SHA1 Message Date
Colin Finck c2c66aff7d Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
Thomas Faber 3638c8781a [KERNEL32]
- Use JOB_OBJECT_ALL_ACCESS for job objects instead of JOB_ALL_ACCESS (which is for print jobs). Dedicated to Samuel

svn path=/trunk/; revision=70176
2015-11-28 10:21:38 +00:00
Amine Khaldi 94a73db543 [KERNEL32] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69887
2015-11-14 14:57:11 +00:00
Hermès Bélusca-Maïto 42c3492b5c Revert tree-restructure attempt: r66583, r66582, r66581, r66578, sauf ntdll changes, r66576 and r66575 sauf mvdm changes (ok with Aleksander).
svn path=/trunk/; revision=66588
2015-03-06 14:33:02 +00:00
Hermès Bélusca-Maïto ddb90f1e10 Start source tree (final, I hope!) restructuration. Part 1/X
Win32, Shell, Services, MVDM

svn path=/trunk/; revision=66575
2015-03-05 23:03:33 +00:00
Amine Khaldi 209b522093 [KERNEL32]
* Include winspool.h only where it's needed.

svn path=/trunk/; revision=59723
2013-08-13 15:27:13 +00:00
Pierre Schweitzer 2f8130c228 [KERNEL32]
Parameters of RtlAcquirePrivilege are not booleans

svn path=/trunk/; revision=58919
2013-05-04 09:23:52 +00:00
Hermès Bélusca-Maïto 582d211b8f Remove the unneeded $Id$ blabla from the source code. (Part 8/8) Done !!
svn path=/trunk/; revision=58527
2013-03-16 20:48:10 +00:00
Sylvain Petreolle 6b568374dd [KERNEL32]
Remove svn:keywords properties.

svn path=/trunk/; revision=57392
2012-09-26 17:49:14 +00:00
Pierre Schweitzer 485d80b662 [KERNEL32]
Fix c/p mistake.
Brought to you by Vincenzo Cotugno

svn path=/trunk/; revision=54306
2011-11-06 00:09:33 +00:00
Alex Ionescu d30964b0fb [KERNEL32]: Implement CreateJobSet
[KERNEL32]: Acquire SE_INCREASE_WORKING_SET_PRIVILEGE in SetInformationJobObject if needed.
[KERNEL32]: Only do conversion of Process Priority Class in SetInformationJobObject if the limit flags request it.
[KERNEL32]: Add missing size checks in QueryInformationJobObject.
[KERNEL32]: Use RtlEncode/DecodePointer to protect the top level exception handler pointer, as done on NT 5.2+
[KERNEL32]: Fix IsBadRead/WritePtr to use the correct page size from the CSRSS shared section.
[KERNEL32]: Fix IsBad(String)Read/WritePtr loops
[KERNEL32]: SetErrorMode now handles SEM_NOALIGNMENTFAULTEXCEPT.
[KERNEL32]: Set/GetErrorMode do not set LastError on failure.
[KERNEL32]: RaiseException can simply use memcpy instead of copying argument by argument.
[KERNEL32]: Minor formatting changes.

svn path=/trunk/; revision=54291
2011-11-05 01:19:52 +00:00
Alex Ionescu 9520dab132 [KERNEL32]: Get rid of SetLastErrorByStatus and use BaseSetLastNTError instead. SetLastErrorByStatus was defined to forward to some Rtl function which I don't even think exists in Server 2003, and worse, bypassed the SetLastError behavior of allowing a g_dwLastErrorToBreakOn code to be set.
svn path=/trunk/; revision=52819
2011-07-23 18:54:29 +00:00
Alex Ionescu 761add0ea0 [KERNEL32]: Create OpenNtObjectFromWin32Api macro (last one).
[KERNEL32]: Make OpenJobObjectW use this macro (nothing fixed, it was already doing the right thing).

svn path=/trunk/; revision=52790
2011-07-23 09:40:34 +00:00
Alex Ionescu d06e82af03 [KERNEL32]: Add ConvertOpenWin32AnsiObjectApiToUnicodeApi macro.
[KERNEL32]: Fix bugs #11, #12, #13: OpenJobObjectA did not correctly set the error code in case the string was too long, nor did it use the TEB's static unicode cache, nor did it enforce a 260 character object name limit. Fixed by using the new macro.

svn path=/trunk/; revision=52789
2011-07-23 09:28:15 +00:00
Alex Ionescu 5496adb4bc [KERNEL32]: Fix the object macros to be MSVC/C99 compatible. Also allow for the variadic part to contain no arguments.
[KERNEL32]: Fix bugs #7, #8, #9, #10: CreateJobObjectW did not add OBJ_OPENIF to named jobs, it did not add named objects in the BaseNamedObjects directory, it did not correctly set ERROR_ALREADY_EXISTS when collisions happened, and it did not set ERROR_SUCCESS when the object was created. All this was fixed by using the new CreateNtObjectFromWin32Api macro.

svn path=/trunk/; revision=52788
2011-07-23 02:17:26 +00:00
Alex Ionescu 19366d1781 [KERNEL32]: Fix bugs #4, #5, #6. CreateJobObjectA was building a dynamic string isntead of using the TEB. It was also not returning the right error code in case of error. It was also allowing jobs to have names past 260 characters. Fixed by using the ConvertWin32AnsiObjectApiToUnicodeApi macro from 5-6 revisions ago.
svn path=/trunk/; revision=52787
2011-07-23 00:30:56 +00:00
Alex Ionescu 222e577a94 [KERNEL32]: Remove stubs.c and instead distribute stubs in their appropriate files.
[KERNEL32]: Create vdm.c and appcache.c since no files existed for these kinds of APIs.

svn path=/trunk/; revision=52770
2011-07-22 02:13:57 +00:00
Alex Ionescu c37513d3e0 NO CODE CHANGE
[KERNEL32]: Reorganize the source tree into a "client" section (The Win32 API proper and its wrapping of the NT base system -- unsynchable with Wine until they have a proper NtDll and choose to use our code) and a "winnls" section (string/language/etc stuff easily synchable with Wine).
[KERNEL32]: Note: this is not perfect yet, but a step in the right direction.

svn path=/trunk/; revision=52738
2011-07-20 16:14:21 +00:00
Renamed from reactos/dll/win32/kernel32/process/job.c (Browse further)