Commit Graph

51 Commits

Author SHA1 Message Date
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 0932d858aa schedsvc: Pass full task file name to remove_job()/add_job().
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 7d96703016 schedsvc: Explicitly terminate the received name in the notification buffer.
And print a FIXME if we've got multiple entries.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-08 15:42:58 +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 0f77a4cb82 schedsvc: Print an error if the service couldn't start monitoring the tasks directory.
This happens for old prefixes with disabled updates.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-24 10:33:09 +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 2eb6f88670 schedsvc: Add a thread for monitoring version 1 task 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 eacbcd725a schedsvc/tests: Add ATSvc RPC API tests.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-09 19:53:33 +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
André Hentschel b164e4dc8d schedsvc/tests: Recognize newer Windows 10's RPC version.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 10:52:12 +02:00
Michael Stefaniuc f3b18e68a5 schedsvc: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 09:53:26 +01:00
Nikolay Sivov f8031d0648 schedsvc: Fix xml buffer leak (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:39:43 +01:00
Francois Gouget e5eba4b7d1 schedsvc/tests: Add the current process id to the test summary line.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:27:59 +01:00
Sebastian Lackner be0e05604a schedsvc: Simplify and standardize the heap_xxx() declarations.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-09 20:13:24 +01:00
Francois Gouget 223ea1312b schedsvc: Simplify and standardize the heap_xxx() declarations.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-09 11:23:36 +01:00
Huw Davies bdec0b2031 schedsvc/tests: Early versions of Windows 10 return S_OK whether or not the element exists.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 11:25:29 +01:00
Sebastian Lackner bd31e320dd schedsvc: Avoid deadlock when scheduler service starts rpcss.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 11:27:57 +09:00
Francois Gouget d03c5b483c schedsvc/tests: Recognize Windows 10's RPC version.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-18 21:05:50 +09:00
Michael Stefaniuc b39b37c0ae schedsvc: Simplify an if-condition (PVS-Studio).
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-14 12:51:05 +09:00
Michael Stefaniuc 6f6aa9b8a6 schedsvc: Drop WINE_ prefix from ERR(). 2015-03-24 18:16:20 +09:00
Alexandre Julliard 75a2e85a27 schedsvc/tests: Don't depend on folder enumeration order. 2015-02-24 16:11:28 +09:00
Michael Stefaniuc 4d01e6f3fc schedsvc/tests: Actually test a return value (PVS-Studio). 2015-01-21 15:29:09 +01:00
Dmitry Timoshkov a484dadf4a schedsvc: Add support for generating new task name in SchRpcRegisterTask. 2014-04-10 13:54:27 +02:00
Dmitry Timoshkov af0ede42d5 schedsvc/tests: Add a test for NULL task name passed to SchRpcRegisterTask. 2014-04-10 13:54:06 +02:00
Dmitry Timoshkov 67100eb29c schedsvc: Add SchRpcGetTaskInfo stub implementation. 2014-04-09 13:16:31 +02:00
Dmitry Timoshkov 9b9b07e4cd schedsvc: Add some tests for SchRpcGetTaskInfo. 2014-04-09 13:16:23 +02:00
Dmitry Timoshkov 96452fc810 schedsvc: Return correct error code when a being loaded xml doesn't exist. 2014-04-09 13:16:13 +02:00
Dmitry Timoshkov 96760c3b51 schedsvc/tests: Avoid test failures on file systems with enabled directory randomization. 2014-04-08 09:26:10 +02:00
Dmitry Timoshkov 8dee40e65a schedsvc/tests: Fix a couple of typos. 2014-04-08 09:26:05 +02:00
Dmitry Timoshkov 7e871b94d3 schedsvc: Handle directory creation failure in SchRpcRegisterTask. 2014-04-07 15:34:37 +02:00
Dmitry Timoshkov 92450cb4f2 schedsvc: Add some tests for scheduler RPC API. 2014-04-04 10:49:17 +02:00
Dmitry Timoshkov a67565edc4 schedsvc: Implement SchRpcEnumTasks. 2014-04-04 10:47:42 +02:00
Dmitry Timoshkov 1f717504cb schedsvc: Implement SchRpcEnumFolders. 2014-04-04 10:47:35 +02:00
Dmitry Timoshkov 285922ca71 schedsvc: Skip the UTF-8 byte order mark when returing XML to the client. 2014-03-24 11:46:51 +01:00
Dmitry Timoshkov 0e802b9c92 schedsvc: Replace external trace statements by internal versions. 2014-03-18 11:42:48 +01:00
Dmitry Timoshkov c2148f9e2a schedsvc: Mark service as auto-start once a task is registered. 2014-03-14 16:14:20 +01:00
Dmitry Timoshkov c751ec6a65 schedsvc: Implement SchRpcRetrieveTask. 2014-03-13 20:22:26 +01:00
Dmitry Timoshkov adab8514e4 schedsvc: Implement SchRpcRegisterTask. 2014-03-13 20:22:25 +01:00
Dmitry Timoshkov b6a3e9be42 schedsvc: Implement SchRpcDelete. 2014-03-13 20:22:24 +01:00
Dmitry Timoshkov 3266b490f7 schedsvc: Implement SchRpcCreateFolder. 2014-03-13 20:22:23 +01:00
Dmitry Timoshkov 2463e44f61 schedsvc: Implement SchRpcHighestVersion. 2014-03-13 20:22:22 +01:00