Commit Graph
607 Commits
Author SHA1 Message Date
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
Eric Kohl 5fd0a21ec7 [ADVAPI32/SERVICES]
Little improvements to advapi32.dll / services.exe.
Patch by Hermes Belusca.
See issue #7239 for more details.

svn path=/trunk/; revision=57146
2012-08-23 20:24:00 +00:00
Eric Kohl 50f30b7887 [SERVICES]
Remove "size_t to DWORD/int..." conversion warnings in x64 build.
Patch by Hermes Belusca.

I replaced size_t by SIZE_T, as this is the proper Win32 type. And I also used the prefix 'cch' (count of characters) instead of the generic 'dw'.

See issue #7149 for more details.

svn path=/trunk/; revision=57108
2012-08-19 10:01:05 +00:00
Amine Khaldi 6010f994bb [MSIEXEC]
* Welcome to MSVC build.

svn path=/trunk/; revision=57022
2012-08-01 23:51:06 +00:00
Amine Khaldi 614db35f56 * We've been waiting, for a long time, for the mighty GCC version upgrade, but that was easier said than done, for the Windows build at least. Many have tried, to no avail, so Amine finally decided to step up, to give it a shot.. he went on and learned the dark arts of compiling GCC... and he succeeded !
* In the journey of running his GCC 4.7.1 compiled bootcd, two issues were revealed. Thomas kindly investigated them and fixed them, and as a result the bootcd boots to shell !
[CSRSRV]
* Fix the output parameter of ProcessLUIDDeviceMapsEnabled case in NtQueryInformationProcess() to be ULONG instead of BOOLEAN (as required).
* ASSERT that the function succeeds.
[SMSS]
* Move this condition up to the commented-out part (where it belongs).

svn path=/trunk/; revision=56972
2012-07-29 00:47:58 +00:00
Thomas Faber cbe2bd44d0 [DISKPART]
- Rewrite argument parsing. Patch by Lee Schroeder.
See issue #7170 for more details.

svn path=/trunk/; revision=56966
2012-07-24 20:23:24 +00:00
Eric Kohl c27b9de07c [SERVICES]
Implement check for SERVICE_WIN32_OWN_PROCESS or SERVICE_WIN32_SHARE_PROCESS type.
Patch by Hermes Belusca.

See issue #7179 for more details.

svn path=/trunk/; revision=56900
2012-07-15 18:27:29 +00:00
Eric Kohl 84b02d3d64 [SERVICES]
Correct comments and code error introduced in rev 56844.
Patch by Hermes Belusca.

I used a helper variable to determine whether or not ScmDeleteNamedPipeCriticalSection must be called. Changing the order in which functions are called could cause a deadlock.

See issue #7172 for more details.

svn path=/trunk/; revision=56861
2012-07-08 23:08:19 +00:00
Thomas Faber 2d81eed739 [SMSS]
- Fix an NTSTATUS vs boolean issue
- Fix an MSVC warning

svn path=/trunk/; revision=56853
2012-07-08 16:04:39 +00:00
Eric Kohl 847f94cf76 [SERVICES]
First step to support control sets.

svn path=/trunk/; revision=56848
2012-07-07 18:17:59 +00:00
Eric Kohl ef482f8abd [SERVICES]
Use Unicode functions instead of generic ones and replace all TEXT macros too.

svn path=/trunk/; revision=56847
2012-07-07 17:47:25 +00:00
Eric Kohl ef354366b6 [SERVICES]
Fix the copyright message.
Hermès Bélusca is the owner of this file!

svn path=/trunk/; revision=56846
2012-07-07 15:45:37 +00:00
Eric Kohl 01cbb41fe9 [SERVICES]
Fix the build.

svn path=/trunk/; revision=56845
2012-07-07 15:39:34 +00:00
Eric Kohl 05ed889bb2 [SERVICES]
Implement service database locking via RLockServiceDatabase / RUnlockServiceDatabase etc... and use this functionality.
Patch by Hermès Bélusca.

I did not rename the database lock functions because the functions names RLockServiceDatabase and RUnlockServiceDatabase are misleading. They do not lock any database but lock the service start function. The existing functions ScmLockDatabaseExclusive, ScmLockDatabaseShared and ScmUnlockDatabase do protect (lock) the service database (service, group and image lists) form concurrent access. That is also the reason for renaming the SC_LOCK_STRUCT to START_LOCK. 


See issue #7131 for more details.

svn path=/trunk/; revision=56844
2012-07-07 15:35:40 +00:00
Sylvain Petreolle d45e33685b [FORMAT]
Handle read only devices and report them unsupported.
Forbid the formatting of the system drive.

Patch by Mikael Lyngvig.
See bug 2081 for more details.

svn path=/trunk/; revision=56808
2012-06-26 21:31:10 +00:00
Eric Kohl 63e9d00bb0 [SERVICES]
Code cleaning and bugs correction.
Patch by Hermès Bélusca.

See issue #7128 for more details.

svn path=/trunk/; revision=56754
2012-06-19 21:16:10 +00:00
Eric Kohl 235dd0a6d6 [SERVICES]
Correct behaviour of setting the service description.
Patch by Hermès Bélusca.

See issue #7124 for more details.

svn path=/trunk/; revision=56740
2012-06-16 20:36:17 +00:00
Eric Kohl 25dcec8bf3 [SERVICES]
Improve a check in RQueryServiceConfig2W and RQueryServiceConfig2A
Patch by Hermès Bélusca.

See issue #7123 for more details.

svn path=/trunk/; revision=56739
2012-06-16 20:00:55 +00:00
Eric Kohl bb5ffbd494 [SERVICES]
Implement SERVICE_CONFIG_FAILURE_ACTIONS case in RChangeServiceConfig2W.
Patch by Hermès Bélusca.

I moved the changes to RChangeServiceConfig2W into a new function (ScmSetFailureActions). I also removed the check for services that run in the services.exe process because ReactOS will not support this kind of services. We should use a separate process or svchost instead.

See issue #7122 for more details.

svn path=/trunk/; revision=56738
2012-06-16 18:32:08 +00:00
Eric Kohl cd7c0bf1da [SERVICES]
This new patch corrects bugs introduced in the implementation of
SERVICE_CONFIG_FAILURE_ACTIONS case in RQueryServiceConfig2W() and
RQueryServiceConfig2A().

Patch by Hermès Bélusca.


See issue #7101 for more details.

svn path=/trunk/; revision=56725
2012-06-12 21:42:57 +00:00
Eric Kohl 9c1cc14414 [SERVICES]
Automatically close handles and unlock database.
Patch by Hermès Bélusca.


See issue #7111 for more details.

svn path=/trunk/; revision=56722
2012-06-11 19:32:27 +00:00
Eric Kohl c8731b39d7 [SERVICES]
Removing the redundant function WaitForLSA() and use ScmWaitForLsa() instead.
Patch by Hermès Bélusca.

See issue #7110 for more details.

svn path=/trunk/; revision=56721
2012-06-11 19:02:00 +00:00
Eric Kohl 21f37478bb [SERVICES]
Implement REnumServiceGroupW.
Patch by Hermès Bélusca.


See issue #7106 for more details.

svn path=/trunk/; revision=56708
2012-06-07 14:11:07 +00:00
Eric Kohl 0d6a879b5a [SERVICES]
Removing some code defects discovered by Coverity.
Patch by Hermès Bélusca.
See issue #7105 for more details.

svn path=/trunk/; revision=56702
2012-06-06 23:01:53 +00:00
Amine Khaldi cadabab172 [SERVICES]
* Fix a typo and an indentation. By Hermès Bélusca.
See issue #7104 for more details.

svn path=/trunk/; revision=56698
2012-06-05 21:15:37 +00:00
Olaf Siejka eaf3eb0b1d [TRANSLATION]
- brasilian portugeese translation by Matheus Macabu (bug no. 7079);

[AHK]
- add scripts for including AHK tests into Reactos\Bin;

svn path=/trunk/; revision=56697
2012-06-05 14:37:58 +00:00
Eric Kohl 2fc88995de [SERVICES]
Implement SERVICE_CONFIG_FAILURE_ACTIONS case in RQueryServiceConfig2W and RQueryServiceConfig2A.

Patch by Hermès Bélusca.


See issue #7101 for more details.

svn path=/trunk/; revision=56696
2012-06-05 10:19:39 +00:00
Amine Khaldi 4d7e7f2be8 [SERVICES]
* Remove logically dead code. CID 513302.

svn path=/trunk/; revision=56695
2012-06-04 15:28:48 +00:00
Eric Kohl 734ab64dd0 [LSASS]
Load samsrv.dll and call SamIInitialize when lsass is started.

svn path=/trunk/; revision=56647
2012-05-20 21:10:53 +00:00
Sylvain Petreolle fa3a49d6e8 [ADVAPI32/SERVICES]
Fix changing a service description in (R)ChangeServiceConfig2W.

Fixes bad service description in Vmware Tools.

svn path=/trunk/; revision=56391
2012-04-23 00:17:01 +00:00
Eric Kohl c22ce87532 [SERVICES]
Log failed service starts and stops.

svn path=/trunk/; revision=56338
2012-04-08 22:27:44 +00:00
Eric Kohl 9024e05e55 [SERVICES]
- Make the handle to the shutdown event a global handle and set it when the service manager is being shut down.
- Close the start event properly.

svn path=/trunk/; revision=56337
2012-04-08 21:06:32 +00:00
Amine Khaldi b2f0e3cbda [USERINIT]
* Remove an unneeded include.
* Improve the cmake file a bit.

svn path=/trunk/; revision=56312
2012-04-01 22:03:14 +00:00
Olaf Siejka b59bb5e92e [TRANSLATION]
- romanian translation update by Stefan Fulea (bug no. 6956);
- fix unrecognized escape sequence warnings;

svn path=/trunk/; revision=56186
2012-03-19 00:09:30 +00:00
Pierre Schweitzer 0316c016e3 [SERVICES]
Fix handles leaks

svn path=/trunk/; revision=56168
2012-03-16 10:27:50 +00:00
Alex Ionescu a604834220 [SMSS]: No longer fail on invalid known DLL checksum until I can fix the loader API.
svn path=/trunk/; revision=55986
2012-03-04 03:00:01 +00:00
Amine Khaldi 5e9ad9f31b * ReactOS binaries hold resource files to *all* the languages we support, which increases their size, and increases the memory footprint, and on top of that they become useless as soon as you select a language in the 1st stage installer. Introduce a way to compile ros with one localization so that we can compile ReactOS with only one localization, which eliminates the problem mentioned above, and allows us to reduce the compile time, the disk space needed for build, and the runtime memory footprint.
* The default build will continue to include all the localizations, but you can set it otherwise through a cmake variable (I18N_LANG) at configure time.
* Brought to you by Team Localization (Kamil Hornicek and Amine Khaldi) ;)

svn path=/trunk/; revision=55891
2012-02-27 22:46:20 +00:00
Amine Khaldi 818418643e * Rbuild, our build system, has served us well so far, but its usefulness has since been vastly overshadowed by its awfulness. It's time to fix it.
svn path=/trunk/; revision=55855
2012-02-25 17:23:37 +00:00
Thomas Faber 2541f45e51 [SMSS2]
- Fix an uninitialized variable usage, CID 15345
- Fix an incorrect sizeof usage, CID 15317

svn path=/trunk/; revision=55804
2012-02-22 11:31:04 +00:00
Thomas Faber 0348878822 [SMSS2]
- When deleting an old page file, take the newly freed space into account
- Keep at least 64 MB of disk free instead of 32 so that 2nd stage can succeed with a small disk
- Miscellaneous fixes and simplifications in the page file code

svn path=/trunk/; revision=55803
2012-02-22 09:07:03 +00:00
Alex Ionescu fa51806949 Missed these guys.
svn path=/trunk/; revision=55694
2012-02-19 02:25:31 +00:00
Thomas Faber 377558ac5a [SMSS2]
- Do not print an uninitialized string

svn path=/trunk/; revision=55600
2012-02-14 23:06:28 +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 e23e0ca401 [SMSS2]: Implement SmpExecPgm and SmpSbCreateSession. Nothing happens (STATUS_OBJECT_NAME_NOT_FOUND is returned) because we don't really launch CSRSS and so we can't find a subsystem for Winlogon and fail (as expected for now).
svn path=/trunk/; revision=55508
2012-02-09 00:07:36 +00:00
Alex Ionescu 09c7bc60a5 [SMSS2]: Make not-implemented functions return a failure. Cleanup the SMSS hack in the _main function to be cleaner. Add a few more functions and flags to the header. Fix a function prototype.
svn path=/trunk/; revision=55507
2012-02-08 23:49:19 +00:00
Alex Ionescu e856535365 [SMSS2]: Implement (not yet used) Session Management APIs.
svn path=/trunk/; revision=55501
2012-02-08 22:05:53 +00:00
Alex Ionescu dfb761830d [SMSS2]: Implement executing the initial command as well as doing the SM-to-SM initial connection.
[SMSS2]: Implement the main LPC loop and handle all the supported APIs (all stubs for now). Also handle new connection requests and implement SmpHandleConnectionRequest.
[SMSS2]: Implement subsystem helper functions.
[SMSS2]: Use SmApiPort2 instead of Sm2ApiPort.
[SMSS2]: Rename the SMSRV_APIs not to conflict with the function names, nor with the client functions in smlib.

svn path=/trunk/; revision=55478
2012-02-07 07:13:42 +00:00
Amine Khaldi 3bc403f6e7 [SMSS2]
* Fix build.

svn path=/trunk/; revision=55471
2012-02-06 20:53:47 +00:00