taskschd: Implement ITaskSettings_put_Hidden.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2017-11-29 10:05:33 +01:00 committed by Alexandre Julliard
parent c9c86fbc42
commit 5a7f0bedf2
2 changed files with 10 additions and 5 deletions

View File

@ -1271,8 +1271,13 @@ static HRESULT WINAPI TaskSettings_get_Hidden(ITaskSettings *iface, VARIANT_BOOL
static HRESULT WINAPI TaskSettings_put_Hidden(ITaskSettings *iface, VARIANT_BOOL hidden)
{
FIXME("%p,%d: stub\n", iface, hidden);
return E_NOTIMPL;
TaskSettings *taskset = impl_from_ITaskSettings(iface);
TRACE("%p,%d\n", iface, hidden);
taskset->hidden = hidden ? TRUE : FALSE;
return S_OK;
}
static HRESULT WINAPI TaskSettings_get_IdleSettings(ITaskSettings *iface, IIdleSettings **settings)

View File

@ -1147,6 +1147,9 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
hr = ITaskSettings_put_Hidden(set, test->hidden);
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
hr = ITaskSettings_put_RunOnlyIfIdle(set, test->run_only_if_idle);
todo_wine
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
/* FIXME: Remove once implemented */
@ -1156,9 +1159,6 @@ todo_wine
return;
}
hr = ITaskSettings_put_RunOnlyIfIdle(set, test->run_only_if_idle);
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
hr = ITaskSettings_put_WakeToRun(set, test->wake_to_run);
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);