Commit Graph

157 Commits

Author SHA1 Message Date
Dmitry Timoshkov 8d7d858d2b mstask: Improve ITask::GetNextRunTime() stub.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-26 11:56:13 +02:00
Dmitry Timoshkov c3a30bcfb9 mstask: Add dirty flag management.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-26 11:55:40 +02:00
Dmitry Timoshkov 37ae95dfd9 mstask: Forward IPersistFile::AddRef()/Release() to parent object.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-26 11:55:35 +02:00
Dmitry Timoshkov 98241dfa5a mstask: Switch to using heap wrappers.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-26 11:55:31 +02:00
Dmitry Timoshkov c65df521a4 mstask/tests: Add more tests for ITaskScheduler::AddWorkItem().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:51:21 +02:00
Dmitry Timoshkov f429c8188b mstask: Implement ITaskScheduler::AddWorkItem().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:51:13 +02:00
Dmitry Timoshkov bf635fd4f7 mstask: Implement ITaskScheduler::Activate().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:51:08 +02:00
Dmitry Timoshkov 71c264526f mstask: Return S_OK from ITask::SetFlags().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:51:04 +02:00
Dmitry Timoshkov 114f86e74e mstask: Implement IPersistFile::Load().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:51:01 +02:00
Dmitry Timoshkov ce0d9956f5 mstask: Implement IPersistFile::GetCurFile().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:49:57 +02:00
Dmitry Timoshkov caafc3c637 mstask/tests: Also test the ITask::GetStatus() return value.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:49:52 +02:00
Dmitry Timoshkov fffed17f80 mstask/tests: Add some tests for trigger management.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-24 10:33:47 +02:00
Dmitry Timoshkov 0ad429aff6 mstask: Implement ITask::GetTrigger().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-24 10:33:42 +02:00
Dmitry Timoshkov 0049deca7a mstask: Implement ITask::DeleteTrigger().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-24 10:33:39 +02:00
Dmitry Timoshkov bcb50e2d12 mstask: Implement ITask::CreateTrigger().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-24 10:33:35 +02:00
Dmitry Timoshkov 90160bd65d mstask: Implement ITask::GetTriggerCount().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-24 10:33:32 +02:00
Dmitry Timoshkov bdb78491cb mstask: Fix saving the triggers.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-24 10:33:28 +02:00
Dmitry Timoshkov f997b16230 mstask: Initialize task file name in the task constructor.
IPersistFile::Save() receives full path name.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-24 10:33:25 +02:00
Dmitry Timoshkov 66d8e7f6a9 mstask: Save a task with at least 1 trigger to follow the .job file spec.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-24 10:33:17 +02:00
Dmitry Timoshkov e4b7334574 mstask: Implement IPersistFile::Save().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:10:25 +02:00
Dmitry Timoshkov be8a21f136 mstask: Implement better stub for ITask::GetMostRecentRunTime().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:09:19 +02:00
Dmitry Timoshkov 23be14b1af mstask: Implement better stub for ITask::GetExitCode().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:09:13 +02:00
Dmitry Timoshkov 2e04dd1c4a mstask: Implement ITask::GetPriority().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:09:05 +02:00
Dmitry Timoshkov d08a101a28 mstask: Implement ITask::GetIdleWait().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:09:01 +02:00
Dmitry Timoshkov 9d113d353b mstask: ITask::GetErrorRetryInterval() is not implemented.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:08:52 +02:00
Dmitry Timoshkov a933e2e040 mstask: ITask::GetErrorRetryCount() is not implemented.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:08:48 +02:00
Dmitry Timoshkov 5907782d59 mstask: Implement ITask::GetStatus().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:08:36 +02:00
Dmitry Timoshkov cbe3300b1e mstask: Implement IPersistFile::GetClassID().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:08:26 +02:00
Dmitry Timoshkov 8f81fa82d5 mstask: Store creator using IRegistrationInfo.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 16:02:55 +02:00
Dmitry Timoshkov 6ff9f7e870 mstask: Store comment using IRegistrationInfo.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 16:02:55 +02:00
Dmitry Timoshkov 52df130d29 mstask: Implement setting and getting a task comment using IExecAction.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 16:52:04 +02:00
Dmitry Timoshkov 04e240b3a7 mstask: Implement setting and getting working directory using IExecAction.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 16:52:04 +02:00
Dmitry Timoshkov cad2e5e8e2 mstask: Implement setting and getting parameters using IExecAction.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 16:52:04 +02:00
Dmitry Timoshkov b9ebac70a8 mstask: Implement setting and getting an application name using IExecAction.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 16:52:04 +02:00
Dmitry Timoshkov d42e42e3f1 mstask/tests: Add some tests for task file storage.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 16:52:04 +02:00
Dmitry Timoshkov a6866be904 mstask: Improve stubs for ITask::GetTaskFlags and ITask::GetFlags.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 16:52:04 +02:00
Dmitry Timoshkov 7ef83b2797 mstask: Switch to using ITaskDefinition instead of IRegisteredTask.
Testing under Windows revealed that task definition on disk should be
created only when IPersistFile::Save() is called, and until that ITask
should stay as a task description in memory.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 16:52:04 +02:00
Dmitry Timoshkov b4539f7136 mstask: Reimplement ITask constructor using ITaskFolder methods.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-13 22:38:59 +01:00
Dmitry Timoshkov 9fd030941b mstask: Reimplement SetTargetComputer/GetTargetComputer using ITaskService methods.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-13 22:38:59 +01:00
Dmitry Timoshkov eb408f2dd9 mstask: Make each source file self-contained.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-13 22:38:59 +01:00
Hans Leidekker 64c1353925 mstask/tests: Skip ITaskScheduler::SetTargetComputer tests if the user doesn't have admin rights.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-19 12:13:49 +01:00
Nikolay Sivov 7aa2e9a9d0 mstask: Added IEnumWorkItems stub. 2015-03-20 16:23:04 +09:00
Michael Stefaniuc 7c60a31c19 mstask/tests: Remove an unused assignment (PVS-Studio). 2015-01-16 16:53:18 +01:00
Frédéric Delanoy 2e5cb7aac8 Assorted spelling/grammar fixes. 2014-04-30 18:34:20 +02:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Alexandre Julliard d08ff3ff19 makefiles: Use a single variable for all types of idl files. 2013-12-31 18:15:17 +01:00
Alexandre Julliard c7803b885b makefiles: Add makedep pragmas for registration idl files. 2013-11-05 20:38:18 +01:00
Alexandre Julliard 7960e02b17 makefiles: Add makedep pragmas for identifier idl files. 2013-11-05 20:38:18 +01:00
Alexandre Julliard f02cdd877f Remove empty DLL_PROCESS_DETACH case statements. 2013-04-15 16:45:35 +02:00
Detlef Riekenberg 0c8dc0090b mstask/tests: Add tests for SetTargetComputer. 2012-11-08 15:37:49 +01:00
Detlef Riekenberg 5bff2fb66b mstask: Implement SetTargetComputer. 2012-11-08 15:37:48 +01:00
Detlef Riekenberg 48ddbde746 mstask/tests: Add tests for GetTargetComputer. 2012-11-06 16:02:44 +01:00
Detlef Riekenberg 493d858988 mstask: Implement GetTargetComputer. 2012-11-06 16:02:44 +01:00
Nikolay Sivov b92ea61e71 mstask: Call interface methods properly. 2012-08-20 10:59:24 +02:00
Michael Stefaniuc f70181113f mstask: Actually run a test and fix the expected behaviour. 2012-05-16 18:30:23 +02:00
Alexandre Julliard b56dc9a6f7 winecrt0: Remove the clsid parameter in __wine_(un)register_resources. 2011-08-02 20:47:49 +02:00
Marcus Meissner e7fc858328 mstask: Mark internal symbol with hidden visibility. 2011-05-23 11:14:27 +02:00
Austin English 340a4c21ce mstask/tests: Make sure return values are used (LLVM/Clang). 2011-02-08 14:45:54 -06:00
Michael Stefaniuc 591b59420d mstask: Use ifaces instead of vtbl pointers in TaskImpl. 2011-01-24 14:43:25 +01:00
Michael Stefaniuc 052de3f9a8 mstask: COM cleanup for the ITaskScheduler iface. 2011-01-24 14:43:25 +01:00
Michael Stefaniuc 73b6d21ab6 mstask: COM cleanup for the ITaskTrigger iface. 2011-01-24 14:43:25 +01:00
Michael Stefaniuc 30e90c9ace mstask: COM cleanup for the IClassFactory iface. 2011-01-24 14:43:25 +01:00
Alexandre Julliard ba709a1d45 mstask: Convert dll registration to the IRegistrar mechanism. 2010-12-10 15:09:24 +01:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Alexandre Julliard f5c35b14f6 mstask/tests: Add some error codes for Win2k. 2010-02-05 11:35:38 +01:00
Detlef Riekenberg dc28680847 mstask/tests: Skip some tests when the service is not running. 2009-12-22 15:39:49 +01:00
Alexandre Julliard ef5864fcc0 mstask/tests: Use the global wine_dbgstr_w instead of a local variant. 2009-08-19 13:36:50 +02:00
Francois Gouget 419ecb35e1 mstask/tests: Replace realloc() with HeapReAlloc(). 2009-05-19 12:01:04 +02:00
Alexandre Julliard 0e894c3444 mstask/tests: Fix test failures on XP. 2008-09-17 16:23:08 +02:00
James Hawkins a58945de84 mstask: Fix a few failing tests in win2k. 2008-09-11 11:49:52 +02:00
Alexandre Julliard 67a25b57fb mstask/tests: Use case-insensitive compare for file names. 2008-09-11 11:49:27 +02:00
Francois Gouget 4823b2c7bf Assorted spelling fixes. 2008-09-02 13:58:21 +02:00
Andrew Talbot 52c6c3fca8 mstask: Sign-compare warnings fix. 2008-09-02 11:54:33 +02:00
Paul Vriens 6cd32ffc07 mstask/tests: Skip tests for security services if they are not implemented. 2008-08-27 13:21:23 +02:00
Roy Shea 65d9871463 mstask: Implemented (Set|Get)Trigger. 2008-08-26 12:07:42 +02:00
Roy Shea 7c5f411e7a mstask: Implemented CreateTrigger. 2008-08-26 12:07:42 +02:00
Roy Shea 2172120fae mstask: Implemented PersistFile_Save stub. 2008-08-25 12:28:10 +02:00
Roy Shea f208025228 mstask: Implemented partial stub for (Set|Get)AccountInformation. 2008-08-22 11:32:08 +02:00
Roy Shea a597d9eaed mstask: Implemented (Set|Get)MaxRunTime. 2008-08-22 11:32:08 +02:00
Roy Shea 37708b1e5c mstask: Implemented (Set|Get)Comment. 2008-08-22 11:32:08 +02:00
Roy Shea 2f95e5123b mstask: Implement (Set|Get)Parameters. 2008-08-22 11:32:08 +02:00
Roy Shea aec0eb87de mstask: Task PersistFile AddRef, QueryInterface, and Release. 2008-08-22 11:32:08 +02:00
Roy Shea ca73655124 mstask: Implemented (Set|Get)ApplicationName. 2008-08-21 13:42:08 +02:00
Roy Shea c5536ef1ae mstask/tests: Conformance test for (Set|Get)Trigger. 2008-08-21 11:41:13 +02:00
Roy Shea 9c131bb056 mstask: TaskTrigger stub with AddRef, QueryInterface, and Release. 2008-08-21 11:40:42 +02:00
Roy Shea e8d22f02df mstask/tests: Basic conformance test for (Set|Get)AccountInformation. 2008-08-21 11:39:22 +02:00
Roy Shea 714c6d3a66 mstask/tests: Conformance test for (Set|Get)MaxRunTime. 2008-08-21 11:39:15 +02:00
Roy Shea 7cca21426a mstask/tests: Conformance test for (Set|Get)Comment. 2008-08-21 11:39:09 +02:00
Roy Shea cd8ac27304 mstask/tests: Conformance test for (Set|Get)Parameters. 2008-08-21 11:39:04 +02:00
Roy Shea 5b3b540d8b mstask/test: Conformance test for CreateTrigger. 2008-08-20 12:36:06 +02:00
Roy Shea 32354497f7 mstask/test: Conformance test for (Set|Get)ApplicationName. 2008-08-20 12:35:45 +02:00
Roy Shea 77ea6ef814 mstask: Stub implementation of Activate. 2008-08-19 15:32:02 +02:00
Roy Shea 75e043ee5f mstask: Activate conformance test. 2008-08-19 15:31:55 +02:00
Roy Shea 2f366935d5 mstask: Implemented NewWorkItem. 2008-08-05 14:09:37 +02:00
Roy Shea 777c2f1d46 mstask: Task stub with AddRef, QueryInterface, and Release. 2008-08-05 14:09:37 +02:00
Roy Shea 41da56a05f mstask/test: NewWorkItem conformance test. 2008-08-04 13:03:56 +02:00