Commit Graph

25 Commits

Author SHA1 Message Date
Alexandre Julliard 88680e522b schedsvc: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-20 09:07:53 +02:00
Dmitry Timoshkov 53266ac32d schedsvc: Use current time as trigger begin time when necessary.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 10:07:31 +02:00
Dmitry Timoshkov 76be2b6768 schedsvc: Avoid an infinite loop.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 10:07:31 +02:00
Dmitry Timoshkov f7a320e2e9 schedsvc: Minor cleanup.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 10:07:31 +02:00
Dmitry Timoshkov f637408a23 schedsvc: Retry opening a .job file only in case of sharing violation.
And turn loud ERR() into a TRACE() like it is in other places.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-12 23:48:47 +02:00
Dmitry Timoshkov 8d540ec7cf schedsvc: Add support for running missed tasks at the service start.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 10:50:02 +02:00
Dmitry Timoshkov ae79454989 schedsvc: Load job files at the service start up.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 10:50:02 +02:00
Dmitry Timoshkov 58afce6a38 schedsvc: Add a sanity check when loading a .job file.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 10:50:02 +02:00
Dmitry Timoshkov 70cedb3e5e schedsvc: Add support for running tasks at specified time.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-06 11:18:50 +02:00
Dmitry Timoshkov a3566fd6e1 schedsvc: Read triggers when loading a job file.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-06 11:18:44 +02:00
Dmitry Timoshkov 8d0444826d schedsvc: Add support for executing tasks.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-31 20:00:38 +02:00
Dmitry Timoshkov bfb0474e77 schedsvc: Read parameters and current directory from the job file.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-31 20:00:38 +02:00
Dmitry Timoshkov a66c6a0968 schedsvc: Read more task fields from the job file.
Print a FIXME() when the service detects a client action.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-11 17:20:41 +02:00
Dmitry Timoshkov 9823191a77 schedsvc: Reimplement FILE_ACTION_MODIFIED by remove_job()/add_job() sequence as MSDN suggests.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-08 15:43:39 +02:00
Dmitry Timoshkov f7d1e16183 schedsvc: Also watch for job file modifications.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-04 11:02:02 +02:00
Dmitry Timoshkov 325f96b952 schedsvc: Fix NetrJobDel return value in case of invalid job id.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:49:48 +02:00
Dmitry Timoshkov 31d2026537 schedsvc: Fix NetrJobGetInfo return value in case of invalid job id.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:49:42 +02:00
Dmitry Timoshkov a49f072040 schedsvc: Allow others to read the file.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-24 10:32:46 +02:00
Dmitry Timoshkov ba55cce8bc schedsvc: Implement NetrJobAdd.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 20:56:47 +02:00
Dmitry Timoshkov 934a64919d schedsvc: Implement NetrJobDel.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 20:56:47 +02:00
Dmitry Timoshkov bab40d15a0 schedsvc: Implement NetrJobEnum.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 20:56:47 +02:00
Dmitry Timoshkov be3f4a797f schedsvc: Implement NetrJobGetInfo.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 20:56:47 +02:00
Dmitry Timoshkov c85bc14d55 schedsvc: Remove job from the list when job file is deleted.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 20:56:47 +02:00
Dmitry Timoshkov 2b8d47694d schedsvc: Add support for reading .job files.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 20:56:47 +02:00
Dmitry Timoshkov 10688c5f91 schedsvc: Add ATSvc server side stubs.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-09 19:53:33 +02:00