Commit graph

95 commits

Author SHA1 Message Date
Amine Khaldi 08a0346e9f [SDK] One step further towards ReactOS source code tree restructure: the sdk folder that groups includes, libraries and tools. CORE-9111
svn path=/trunk/; revision=71184
2016-04-20 12:36:25 +00:00
Sylvain Petreolle 69a888dc46 [SMSS]
Less debug, better diagnostis.

svn path=/trunk/; revision=71034
2016-03-22 18:34:18 +00:00
Hermès Bélusca-Maïto 762e2a1af4 [SMSS]
- Reenable RTL_QUERY_REGISTRY_DELETE: the "PendingFileRenameOperations(2)" and "AllowProtectedRenames" registry values are deleted after being parsed: we don't retry at every reboot to remove/rename files that were already deleted/renamed.
- Remove superfluous parentheses.
- Warn a FIXME if SFC-protected file renames are allowed and we are processing file renames (the "protected file renames" stuff is unimplemented atm.)

svn path=/trunk/; revision=70530
2016-01-07 19:03:35 +00:00
Hermès Bélusca-Maïto ae0b31a24a [SMSS]
- Use CRT string functions to loop through multi-strings.
- Do not fail the full KnownDll setup if one dll fails to load. Instead, just properly skip the file (and related to that, fix a bug when skipping excluded known dll files).
- Page files should be created only when we are not in WinPE mode (aka. MiniNTBoot = FALSE).
- Formatting fix in smloop.c, no code change.

svn path=/trunk/; revision=70529
2016-01-07 16:57:05 +00:00
Amine Khaldi 852be46e0a [DISKPART][EXPLORER][LOGONUI][SMSS][USERINIT][WINLOGON] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69264
2015-09-18 10:13:50 +00:00
Stefan Ginsberg 6b5b096ee2 Fix a load of assumptions about default calling convention, a lot more remain.
svn path=/trunk/; revision=69242
2015-09-15 13:15:28 +00:00
Pierre Schweitzer 80bdaf1f3e [SMSS]
Fix broken if statement. It couldn't evaluate to true.

svn path=/trunk/; revision=67077
2015-04-06 19:19:35 +00:00
Hermès Bélusca-Maïto 8c77dacbfe Fix 3 misspellings. No code changes.
svn path=/trunk/; revision=66896
2015-03-26 01:43:47 +00:00
Hermès Bélusca-Maïto 5622302062 [SMSS]: Improve some dprints (that prints strings; sometimes they happen to print empty strings for unknown reasons so I need to really check whether they are empty or not); remove extra whitespace at the end of dprints. Initialize a variable.
svn path=/trunk/; revision=66375
2015-02-20 22:03:23 +00:00
Timo Kreuzer c7fe9e7521 [PSDK/...]
- Add/improve some definitions in ntdef.h
- fix definition of SUBLANG_SINDHI_PAKISTAN in winnt.h
- enable ARRAYSIZE in winnt.h
- #undef ARRAYSIZE in certain wine code to avoid redefinition
- Use PCCH instead of PCCHAR in ext2lib (PCCHAR is ntdef.h only)
- remove obsolete definitions from smss.h

svn path=/trunk/; revision=64000
2014-08-30 22:26:42 +00:00
Hermès Bélusca-Maïto b45ed87bd3 [SMSS][CSRSRV]: Typo fix.
[CSRSRV]: Fix an assertion.

svn path=/trunk/; revision=63660
2014-06-28 21:40:34 +00:00
Amine Khaldi 06510e690b [BASE/SYSTEM]
* Prepare the CMake scripts for PCH.
CORE-7716

svn path=/trunk/; revision=62063
2014-02-09 10:40:34 +00:00
Amine Khaldi ac6d2b8781 [SMSS]
* Remove one time inclusions from the main header and put them back where they belong.
CORE-7716

svn path=/trunk/; revision=61615
2014-01-13 13:16:07 +00:00
Amine Khaldi b67b1e2caf [BASE/SYSTEM]
* Improve resource files.
CORE-7637

svn path=/trunk/; revision=61126
2013-11-28 22:09:27 +00:00
Hermès Bélusca-Maïto 2fff802939 \r\n for strings being displayed by NtDisplayString.
[AUTOCHK]: Fix some DPRINTs

svn path=/trunk/; revision=60656
2013-10-13 23:22:03 +00:00
Timo Kreuzer 76dd7e5f1d [SMSS]
Fix some MSVC warnings.

svn path=/trunk/; revision=60096
2013-09-14 10:25:59 +00:00
Alex Ionescu 18bb4e2eaf [SMLIB]: Use the right API port name. Now Windows's SMSS works fine in ROS.
svn path=/trunk/; revision=60057
2013-09-12 08:02:05 +00:00
Alex Ionescu b483aad5f9 [NTOSKRNL]: Make MiCreateImageSection return STATUS_SUCCESS, not some fucked-up ROS-specific status code.
[NTOSKRNL]: Make MmCreateSection do the correct access checks and parameter checks, just like ARM3 does. For example, asking for PAGE_EXECUTE on a non-image file no longer requests SYNCHRONIZE and FILE_READ_DATA...it asks... FILE_EXECUTE. Cause you know... that's what the caller..wants. Anyway, this, among other things, fixes LdrValidateImageChecksum (and those annoying errors 0xC0000022 in the logs). SMSS is now checking the checksums of Known DLLs just like before (in Win7 they stopped doing this to improve boot performance, lol). It also makes Windows' SMSS happy.

svn path=/trunk/; revision=60055
2013-09-12 06:01:52 +00:00
Amine Khaldi 62b8ac070f [SMSS]
* Fix some print specifiers.

svn path=/trunk/; revision=59972
2013-09-03 12:02:52 +00:00
Hermès Bélusca-Maïto 3a79dade5f [SMSS]
- In the token parsing function SmpParseToken, just return success directly if the input string has zero length, instead of running code which does nothing at the end, because the length was zero...
- Give a default value for the "BootExecute" entry in the SMSS registry configuration table (this value is used when there is no BootExecute registry value inside HKLM\System\CurrentControlSet\Control\Session Manager) and precise that it is a multi-string value.
- Remove a redundant "Environment" entry in this table, too.

svn path=/trunk/; revision=59518
2013-07-19 22:32:34 +00:00
Hermès Bélusca-Maïto a24ce168b5 Fix ASSERTMSG definition and usage (which is: ASSERTMSG(Message, expression) and not the other way around, see http://msdn.microsoft.com/en-us/library/windows/hardware/ff542113(v=vs.85).aspx , http://www.osronline.com/DDKx/ddtools/debugfns_41yr.htm and google...) (Part 3/4)
NOTE: Fixing builds ;)

svn path=/trunk/; revision=59510
2013-07-19 13:11:25 +00:00
Hermès Bélusca-Maïto 599a7affa3 [REACTOS]
Merge of the ros-csrss branch created with a three-fold purpose:

- Use the new Windows-compatible Client-Server Runtime Subsystem (csrss + csrsrv)
written by Alex Ionescu to replace the old hacked one. Also the CSR client part,
residing in ntdll, is updated. Some work also done on the dlls side, which
communicate with CSR, namely kernel32.

- Replace our very old win32csr.dll CSR server by the collection basesrv.dll /
winsrv.dll as it is done under Windows.

- Since the console subsystem is (for historical purposes on Windows) the
only subsystem which exploits all the possibilities of the CSR, I decided to
put it in a new CSR dll called 'consrv.dll', even if on Windows it is included
together with other APIs inside the winsrv dll (since Windows NT 3.1 release)
(I took the name 'consrv' from the dll where it was included in Windows NT 3.1
beta from October 1991). Some work was also done on its internal architecture
(the external interface is of course unchanged for compatibility reasons) and a
two-layer approach was developed, using the existing idea of console functions +
GUI or TUI we already had in win32csr:
	* the "console server" which dialogs with the console applications,
and which maintains a list of all the created consoles.
	* different "front-ends" corresponding to where you want to output
the information (~= console hardware) (Work-In-Progress).
Another idea would be to make those front-ends dynamically-loadable (instead
of being compiled inside consrv).
- I also fixed some parts of the console properties dialog box.

More information can be found in http://www.reactos.org/archives/public/ros-dev/2013-April/016121.html

CORE-122 CORE-2510 CORE-7002 #resolve #comment Committed in revision r58xxx.

svn path=/trunk/; revision=58770
2013-04-15 19:32:00 +00:00
Hermès Bélusca-Maïto 9fd0632528 [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
2013-01-27 13:55:04 +00:00
Hermès Bélusca-Maïto 0b3f274e0e [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
2013-01-27 00:19:43 +00:00
Hermès Bélusca-Maïto 7ef6decbcf [SMSS]
Clarify a bit the code. No logical changes.

svn path=/trunk/; revision=58236
2013-01-26 23:56:07 +00:00
Hermès Bélusca-Maïto 3f7404e73b [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
2013-01-26 23:43:28 +00:00
Amine Khaldi 2bd930547c * 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
2013-01-24 23:00:42 +00:00
Hermès Bélusca-Maïto 65ce146169 Create a branch for working on csrss and co.
svn path=/branches/ros-csrss/; revision=57561
2012-10-14 13:04:31 +00:00
Amine Khaldi 81eb633247 [CMAKE]
* Refer to the PSEH lib using its variable.

svn path=/trunk/; revision=57260
2012-09-09 23:59:16 +00:00
Amine Khaldi 0f50eca2a8 [SMSS]
* Rename the folder back to smss now.
See issue #7278 for more details.

svn path=/trunk/; revision=57239
2012-09-04 21:05:16 +00:00
Alex Ionescu 9829c56509 [SMSS2/SMSS]: Nuke SMSS. SMSS2 is now in full control.
svn path=/trunk/; revision=55589
2012-02-14 06:06:39 +00:00
Alex Ionescu 14ba04899c [SMSS2]: Implement SmpCallCsrCreateProcess and SmpLoadSubsystem. We now load CSRSS and everything works 100%! Winlogon is now launched by SMSS2 and no regressions have been found.
[SMSS]: Turn off all code other than setting up the pagefile.
There's a lot of debug prints, as soon as things seem stable after a few days, SMSS will be gone and SMSS2 will take over and DPRINT1s will mostly be gone.

svn path=/trunk/; revision=55509
2012-02-09 02:21:56 +00:00
Alex Ionescu 560ff3fed9 [SMSS2/SMSS]: Put SMSS back in charge of the pagefile as yet another attempt to fix KVM.
[NTOSKRNL]: Stub-plement SystemSessionDetachInformation.

svn path=/trunk/; revision=55465
2012-02-06 18:14:36 +00:00
Alex Ionescu ed64af75b6 [SMSS]: Nuke the environment code and instead inherit SMSS2's, which does all the right things. #if 0 all the non-used code, and nuke support for the "debug" subsystem as well as the custom "SmQuery" APIs.
[SMSS2]: Use SMSS2's environment when creating SMSS.

svn path=/trunk/; revision=55455
2012-02-06 09:29:33 +00:00
Alex Ionescu 12f8a6d6a6 [SMSS2]: Implement SmpProcessFileRenames and actually create the paging file now. All initialization work is now done by SMSS2.
[SMSS]: Neuter away most of the code and only keep SMSS around for managing the API port.
Next step is to make the SMSS2 API port go into use.

svn path=/trunk/; revision=55453
2012-02-06 09:06:38 +00:00
Alex Ionescu b12e5cfc77 [SMSS2]: Implement SmpCreateDynamicEnvironmentVariables such that all the SMSS-generated variables are created. Compared to SMSS it has some bug fixes and also handles the safe-mode options key. Next step is to handle boot/setup/execute keys and get autochk running from SMSS2.
[SMSS]: No longer initialize the registry, let SMSS2 do that now.

svn path=/trunk/; revision=55343
2012-01-31 01:19:14 +00:00
Alex Ionescu b42b421bea [SMSS]: Co-exist with SMSS2 by using OBJ_OPENIF when creating object directories and sections, in case SMSS2 has already done so (which now it probably will).
[SMSS2]: Implement all the required registry configuration parsing functions. KnownDLLs, DosDevices, PageFiles, Subsystems, ExcludedKnownDLLs, PendingFileRenameOperations, ObjectDirectories, Environment keys are all processed and put into lists. Other than creating the object directories and setting the environment variables, though, no other work happens -- but we do DPRINT1 what should happen.

svn path=/trunk/; revision=55319
2012-01-30 08:02:17 +00:00
Dmitry Gorbachev e4382eb7d6 [SMSS]
Limit the size of swapfile (to 2GiB). Bug #4760.

svn path=/trunk/; revision=54411
2011-11-17 20:22:16 +00:00
Timo Kreuzer 2165832424 [SMSS]
Remove a hack for MSVC.

svn path=/trunk/; revision=54049
2011-10-07 18:25:41 +00:00
Eric Kohl 388f99e67e [SMSS]
Fix wrong behavior of the "native applications startup at boot time" feature in SMSS.

Modifications:
- Added missing buffer allocation checks.
- Check for presence of default path.
- Minor clean-ups.
- Fix bad indentation/coding style.

Original patch by Hermès BÉLUSCA.
See issue #6180 for more details.

svn path=/trunk/; revision=53839
2011-09-24 15:12:52 +00:00
Amine Khaldi 4e616754a5 * Fix some more unused but set variables.
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53680
2011-09-10 23:54:02 +00:00
Dmitry Chapyshev 74b3d51978 - Fix multiple typos and bugs, found by PVS-Studio
svn path=/trunk/; revision=53519
2011-09-01 15:30:19 +00:00
Amine Khaldi 704a9a3f49 * Include NDK headers on-demand.
svn path=/trunk/; revision=53231
2011-08-14 12:59:05 +00:00
Timo Kreuzer 99c75ee1fc [SMSS]
- really remove the link command
- fix an integer overflow

svn path=/trunk/; revision=52265
2011-06-15 22:47:29 +00:00
Timo Kreuzer 487f20e2e3 [SMSS]
- Use integer instead of floating point
- Don't link to msvcsup

svn path=/trunk/; revision=52264
2011-06-15 22:44:21 +00:00
Jérôme Gardou 989c121257 [CMAKE]
fix pch support, with proper dependancies.
  Use cmake built-in functions instead of doing weird "magic" with tabs and spaces.
  According to gcc doc, if header.h is precompiled, the output should be named "header.h.gch" and not anything else.

svn path=/trunk/; revision=52058
2011-06-02 12:18:22 +00:00
Timo Kreuzer 597107fc28 [CMAKE]
- Remove last traces of mingw_common
- adopt msvcrtex on msvc builds
- Fix MSVC warnings in crtexe.c, already pushed upstream

svn path=/trunk/; revision=51868
2011-05-23 18:27:16 +00:00
Timo Kreuzer fae2044a23 [CMAKE]
Integrate cmake stuff into trunk
Only files added.

svn path=/trunk/; revision=51783
2011-05-16 13:12:07 +00:00
Hervé Poussineau eac4b331b0 [smss] Display program which failed to run
svn path=/trunk/; revision=51624
2011-05-07 16:31:49 +00:00
Eric Kohl a4b0bea539 [SMSS]
Fix for the loading of the "KnownDlls" in SMSS. Patch by Hermès BÉLUSCA - MAÏTO.
The patch was applied without changes to comments, indentation and coding style. 

See issue #6159 for more details.

svn path=/trunk/; revision=51511
2011-04-30 22:09:16 +00:00