From 0ff329c041b0a420d1b3d1393e0fdae638e387d0 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 5 Mar 2022 12:08:44 +0100 Subject: [PATCH] taskschd/tests: Enable compilation with long types. Signed-off-by: Eric Pouech Signed-off-by: Alexandre Julliard --- dlls/taskschd/tests/Makefile.in | 1 - dlls/taskschd/tests/scheduler.c | 618 ++++++++++++++++---------------- 2 files changed, 309 insertions(+), 310 deletions(-) diff --git a/dlls/taskschd/tests/Makefile.in b/dlls/taskschd/tests/Makefile.in index 6d4878ab30d..63424dab5b0 100644 --- a/dlls/taskschd/tests/Makefile.in +++ b/dlls/taskschd/tests/Makefile.in @@ -1,4 +1,3 @@ -EXTRADEFS = -DWINE_NO_LONG_TYPES TESTDLL = taskschd.dll IMPORTS = oleaut32 ole32 diff --git a/dlls/taskschd/tests/scheduler.c b/dlls/taskschd/tests/scheduler.c index e7b39e5fdaf..4a97d831795 100644 --- a/dlls/taskschd/tests/scheduler.c +++ b/dlls/taskschd/tests/scheduler.c @@ -45,23 +45,23 @@ static void test_Connect(void) hr = CoCreateInstance(&CLSID_TaskScheduler, NULL, CLSCTX_INPROC_SERVER, &IID_ITaskService, (void **)&service); if (hr != S_OK) { - win_skip("CoCreateInstance(CLSID_TaskScheduler) error %#x\n", hr); + win_skip("CoCreateInstance(CLSID_TaskScheduler) error %#lx\n", hr); return; } hr = ITaskService_get_Connected(service, NULL); - ok(hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok(hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); vbool = 0xdead; hr = ITaskService_get_Connected(service, &vbool); - ok(hr == S_OK, "get_Connected error %#x\n", hr); + ok(hr == S_OK, "get_Connected error %#lx\n", hr); ok(vbool == VARIANT_FALSE, "expected VARIANT_FALSE, got %d\n", vbool); hr = ITaskService_get_TargetServer(service, NULL); - ok(hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok(hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); hr = ITaskService_get_TargetServer(service, &bstr); - ok(hr == HRESULT_FROM_WIN32(ERROR_ONLY_IF_CONNECTED), "expected ERROR_ONLY_IF_CONNECTED, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ONLY_IF_CONNECTED), "expected ERROR_ONLY_IF_CONNECTED, got %#lx\n", hr); /* Win7 doesn't support UNC \\ prefix, but according to a user * comment on MSDN Win8 supports both ways. @@ -75,41 +75,41 @@ static void test_Connect(void) V_BSTR(&v_comp) = SysAllocString(comp_name); hr = ITaskService_Connect(service, v_comp, v_null, v_null, v_null); - ok(hr == S_OK || hr == E_ACCESSDENIED /* not an administrator */, "Connect error %#x\n", hr); + ok(hr == S_OK || hr == E_ACCESSDENIED /* not an administrator */, "Connect error %#lx\n", hr); was_connected = hr == S_OK; SysFreeString(V_BSTR(&v_comp)); V_BSTR(&v_comp) = SysAllocString(deadbeefW); hr = ITaskService_Connect(service, v_comp, v_null, v_null, v_null); ok(hr == HRESULT_FROM_WIN32(RPC_S_INVALID_NET_ADDR) || hr == HRESULT_FROM_WIN32(ERROR_BAD_NETPATH) /* VM */, - "expected RPC_S_INVALID_NET_ADDR, got %#x\n", hr); + "expected RPC_S_INVALID_NET_ADDR, got %#lx\n", hr); SysFreeString(V_BSTR(&v_comp)); vbool = 0xdead; hr = ITaskService_get_Connected(service, &vbool); - ok(hr == S_OK, "get_Connected error %#x\n", hr); + ok(hr == S_OK, "get_Connected error %#lx\n", hr); ok(vbool == VARIANT_FALSE || (was_connected && vbool == VARIANT_TRUE), "Connect shouldn't trash an existing connection, got %d (was connected %d)\n", vbool, was_connected); V_BSTR(&v_comp) = SysAllocString(empty); hr = ITaskService_Connect(service, v_comp, v_null, v_null, v_null); - ok(hr == S_OK, "Connect error %#x\n", hr); + ok(hr == S_OK, "Connect error %#lx\n", hr); SysFreeString(V_BSTR(&v_comp)); V_BSTR(&v_comp) = NULL; hr = ITaskService_Connect(service, v_comp, v_null, v_null, v_null); - ok(hr == S_OK, "Connect error %#x\n", hr); + ok(hr == S_OK, "Connect error %#lx\n", hr); hr = ITaskService_Connect(service, v_null, v_null, v_null, v_null); - ok(hr == S_OK, "Connect error %#x\n", hr); + ok(hr == S_OK, "Connect error %#lx\n", hr); vbool = 0xdead; hr = ITaskService_get_Connected(service, &vbool); - ok(hr == S_OK, "get_Connected error %#x\n", hr); + ok(hr == S_OK, "get_Connected error %#lx\n", hr); ok(vbool == VARIANT_TRUE, "expected VARIANT_TRUE, got %d\n", vbool); hr = ITaskService_get_TargetServer(service, &bstr); - ok(hr == S_OK, "get_TargetServer error %#x\n", hr); + ok(hr == S_OK, "get_TargetServer error %#lx\n", hr); ok(!lstrcmpW(comp_name, bstr), "compname %s != server name %s\n", wine_dbgstr_w(comp_name), wine_dbgstr_w(bstr)); SysFreeString(bstr); @@ -138,59 +138,59 @@ static void test_GetFolder(void) hr = CoCreateInstance(&CLSID_TaskScheduler, NULL, CLSCTX_INPROC_SERVER, &IID_ITaskService, (void **)&service); if (hr != S_OK) { - win_skip("CoCreateInstance(CLSID_TaskScheduler) error %#x\n", hr); + win_skip("CoCreateInstance(CLSID_TaskScheduler) error %#lx\n", hr); return; } hr = ITaskService_GetFolder(service, NULL, &folder); - ok(hr == HRESULT_FROM_WIN32(ERROR_ONLY_IF_CONNECTED), "expected ERROR_ONLY_IF_CONNECTED, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ONLY_IF_CONNECTED), "expected ERROR_ONLY_IF_CONNECTED, got %#lx\n", hr); V_VT(&v_null) = VT_NULL; hr = ITaskService_Connect(service, v_null, v_null, v_null, v_null); - ok(hr == S_OK, "Connect error %#x\n", hr); + ok(hr == S_OK, "Connect error %#lx\n", hr); hr = ITaskService_GetFolder(service, slash, &folder); todo_wine - ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#lx\n", hr); hr = ITaskService_GetFolder(service, dot, &folder); todo_wine ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME) || hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) /* win7 */, - "expected ERROR_INVALID_NAME, got %#x\n", hr); + "expected ERROR_INVALID_NAME, got %#lx\n", hr); hr = ITaskService_GetFolder(service, bslash, &folder); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); ITaskFolder_Release(folder); hr = ITaskService_GetFolder(service, NULL, NULL); - ok(hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok(hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); hr = ITaskService_GetFolder(service, empty, &folder); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); ITaskFolder_Release(folder); hr = ITaskService_GetFolder(service, NULL, &folder); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); hr = ITaskFolder_get_Name(folder, NULL); - ok(hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok(hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); hr = ITaskFolder_get_Name(folder, &bstr); - ok (hr == S_OK, "get_Name error %#x\n", hr); + ok (hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, bslash), "expected '\\', got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_get_Path(folder, NULL); - ok(hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok(hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); hr = ITaskFolder_get_Path(folder, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, bslash), "expected '\\', got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_CreateFolder(folder, NULL, v_null, &subfolder); - ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#x\n", hr); + ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#lx\n", hr); /* Just in case something was left from previous runs */ ITaskFolder_DeleteFolder(folder, Wine_Folder1_Folder2, 0); @@ -199,141 +199,141 @@ static void test_GetFolder(void) hr = ITaskFolder_CreateFolder(folder, slash, v_null, &subfolder); todo_wine - ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#lx\n", hr); hr = ITaskService_GetFolder(service, Wine_Folder1_Folder2, &subfolder); ok(hr == HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) || hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) /* win7 */, - "expected ERROR_PATH_NOT_FOUND, got %#x\n", hr); + "expected ERROR_PATH_NOT_FOUND, got %#lx\n", hr); hr = ITaskFolder_CreateFolder(folder, bslash, v_null, &subfolder); todo_wine - ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#x\n", hr); + ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#lx\n", hr); hr = ITaskFolder_CreateFolder(folder, Wine_Folder1_Folder2, v_null, &subfolder); - ok(hr == S_OK, "CreateFolder error %#x\n", hr); + ok(hr == S_OK, "CreateFolder error %#lx\n", hr); ITaskFolder_Release(subfolder); hr = ITaskFolder_CreateFolder(folder, Wine, v_null, NULL); - ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#lx\n", hr); hr = ITaskFolder_CreateFolder(folder, Wine_Folder1_, v_null, &subfolder); - ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#lx\n", hr); hr = ITaskFolder_CreateFolder(folder, Wine, v_null, &subfolder); - ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#lx\n", hr); hr = ITaskFolder_CreateFolder(folder, Wine+1, v_null, &subfolder); - ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#lx\n", hr); hr = ITaskFolder_CreateFolder(folder, Wine_Folder1, v_null, &subfolder); - ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#lx\n", hr); hr = ITaskFolder_CreateFolder(folder, Wine_Folder1+1, v_null, &subfolder); - ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#lx\n", hr); hr = ITaskFolder_CreateFolder(folder, Wine_Folder1_Folder2, v_null, &subfolder); - ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#lx\n", hr); hr = ITaskFolder_CreateFolder(folder, Wine_Folder1_Folder2+1, v_null, &subfolder); - ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#lx\n", hr); hr = ITaskService_GetFolder(service, Wine_Folder1_Folder2, NULL); - ok(hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok(hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); hr = ITaskService_GetFolder(service, Wine_Folder1_Folder2, &subfolder); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); hr = ITaskFolder_get_Name(subfolder, &bstr); - ok (hr == S_OK, "get_Name error %#x\n", hr); + ok (hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Folder2), "expected Folder2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_get_Path(subfolder, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine_Folder1_Folder2), "expected \\Wine\\Folder1\\Folder2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); ITaskFolder_Release(subfolder); hr = ITaskService_GetFolder(service, Wine_Folder1_Folder2+1, &subfolder); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); hr = ITaskFolder_get_Name(subfolder, &bstr); - ok (hr == S_OK, "get_Name error %#x\n", hr); + ok (hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Folder2), "expected Folder2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_get_Path(subfolder, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine_Folder1_Folder2+1), "expected Wine\\Folder1\\Folder2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); ITaskFolder_Release(subfolder); hr = ITaskService_GetFolder(service, Wine_Folder1, &subfolder); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); hr = ITaskFolder_get_Name(subfolder, &bstr); - ok (hr == S_OK, "get_Name error %#x\n", hr); + ok (hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Folder1), "expected Folder1, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_get_Path(subfolder, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine_Folder1), "expected \\Wine\\Folder1, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); ITaskFolder_Release(subfolder); hr = ITaskService_GetFolder(service, Wine, &subfolder); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); hr = ITaskFolder_get_Name(subfolder, &bstr); - ok (hr == S_OK, "get_Name error %#x\n", hr); + ok (hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine+1), "expected Wine, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_get_Path(subfolder, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine), "expected \\Wine, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); ITaskFolder_Release(subfolder); hr = ITaskService_GetFolder(service, Wine+1, &subfolder); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); hr = ITaskFolder_get_Name(subfolder, &bstr); - ok (hr == S_OK, "get_Name error %#x\n", hr); + ok (hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine+1), "expected Wine, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_get_Path(subfolder, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine+1), "expected Wine, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_GetFolder(subfolder, bslash, &subfolder2); - ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#lx\n", hr); hr = ITaskFolder_GetFolder(subfolder, NULL, &subfolder2); - ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#x\n", hr); + ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#lx\n", hr); hr = ITaskFolder_GetFolder(subfolder, empty, &subfolder2); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); hr = ITaskFolder_get_Name(subfolder2, &bstr); - ok (hr == S_OK, "get_Name error %#x\n", hr); + ok (hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine+1), "expected Wine, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_get_Path(subfolder2, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine+1), "expected Wine, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); ITaskFolder_Release(subfolder2); hr = ITaskFolder_GetFolder(subfolder, Folder1_Folder2, &subfolder2); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); hr = ITaskFolder_get_Name(subfolder2, &bstr); - ok (hr == S_OK, "get_Name error %#x\n", hr); + ok (hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Folder2), "expected Folder2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_get_Path(subfolder2, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine_Folder1_Folder2+1), "expected Wine\\Folder1\\Folder2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); ITaskFolder_Release(subfolder2); hr = ITaskFolder_GetFolder(subfolder, Folder1_Folder2+1, &subfolder2); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); hr = ITaskFolder_get_Name(subfolder2, &bstr); - ok (hr == S_OK, "get_Name error %#x\n", hr); + ok (hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Folder2), "expected Folder2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_get_Path(subfolder2, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine_Folder1_Folder2+1), "expected Wine\\Folder1\\Folder2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); ITaskFolder_Release(subfolder2); @@ -341,27 +341,27 @@ static void test_GetFolder(void) ITaskFolder_Release(subfolder); hr = ITaskFolder_DeleteFolder(folder, Wine, 0); - ok(hr == HRESULT_FROM_WIN32(ERROR_DIR_NOT_EMPTY), "expected ERROR_DIR_NOT_EMPTY, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_DIR_NOT_EMPTY), "expected ERROR_DIR_NOT_EMPTY, got %#lx\n", hr); hr = ITaskFolder_DeleteFolder(folder, Wine_Folder1_Folder2, 0); - ok(hr == S_OK, "DeleteFolder error %#x\n", hr); + ok(hr == S_OK, "DeleteFolder error %#lx\n", hr); hr = ITaskFolder_DeleteFolder(folder, Wine_Folder1+1, 0); - ok(hr == S_OK, "DeleteFolder error %#x\n", hr); + ok(hr == S_OK, "DeleteFolder error %#lx\n", hr); hr = ITaskFolder_DeleteFolder(folder, Wine+1, 0); - ok(hr == S_OK, "DeleteFolder error %#x\n", hr); + ok(hr == S_OK, "DeleteFolder error %#lx\n", hr); hr = ITaskFolder_DeleteFolder(folder, Wine, 0); - ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || hr == S_OK /* win7 */, "expected ERROR_FILE_NOT_FOUND, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || hr == S_OK /* win7 */, "expected ERROR_FILE_NOT_FOUND, got %#lx\n", hr); hr = ITaskFolder_DeleteFolder(folder, NULL, 0); - ok(hr == E_ACCESSDENIED || hr == E_INVALIDARG /* Vista */, "expected E_ACCESSDENIED, got %#x\n", hr); + ok(hr == E_ACCESSDENIED || hr == E_INVALIDARG /* Vista */, "expected E_ACCESSDENIED, got %#lx\n", hr); hr = ITaskFolder_DeleteFolder(folder, empty, 0); - ok(hr == E_ACCESSDENIED || hr == E_INVALIDARG /* Vista */, "expected E_ACCESSDENIED, got %#x\n", hr); + ok(hr == E_ACCESSDENIED || hr == E_INVALIDARG /* Vista */, "expected E_ACCESSDENIED, got %#lx\n", hr); hr = ITaskFolder_DeleteFolder(folder, slash, 0); todo_wine - ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#lx\n", hr); ITaskFolder_Release(folder); ITaskService_Release(service); @@ -428,17 +428,17 @@ static void test_FolderCollection(void) hr = CoCreateInstance(&CLSID_TaskScheduler, NULL, CLSCTX_INPROC_SERVER, &IID_ITaskService, (void **)&service); if (hr != S_OK) { - win_skip("CoCreateInstance(CLSID_TaskScheduler) error %#x\n", hr); + win_skip("CoCreateInstance(CLSID_TaskScheduler) error %#lx\n", hr); return; } V_VT(&v_null) = VT_NULL; hr = ITaskService_Connect(service, v_null, v_null, v_null, v_null); - ok(hr == S_OK, "Connect error %#x\n", hr); + ok(hr == S_OK, "Connect error %#lx\n", hr); hr = ITaskService_GetFolder(service, NULL, &root); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); /* Just in case something was left from previous runs */ ITaskFolder_DeleteFolder(root, Wine_Folder1, 0); @@ -447,50 +447,50 @@ static void test_FolderCollection(void) ITaskFolder_DeleteFolder(root, Wine, 0); hr = ITaskFolder_CreateFolder(root, Wine_Folder1, v_null, &subfolder); - ok(hr == S_OK, "CreateFolder error %#x\n", hr); + ok(hr == S_OK, "CreateFolder error %#lx\n", hr); ITaskFolder_Release(subfolder); hr = ITaskFolder_CreateFolder(root, Wine_Folder2, v_null, &subfolder); - ok(hr == S_OK, "CreateFolder error %#x\n", hr); + ok(hr == S_OK, "CreateFolder error %#lx\n", hr); ITaskFolder_Release(subfolder); hr = ITaskFolder_GetFolder(root, Wine, &folder); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); hr = ITaskFolder_GetFolders(folder, 0, NULL); - ok (hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok (hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); hr = ITaskFolder_GetFolders(folder, 0, &folders); - ok(hr == S_OK, "GetFolders error %#x\n", hr); + ok(hr == S_OK, "GetFolders error %#lx\n", hr); ITaskFolder_Release(folder); hr = ITaskFolderCollection_get_Count(folders, NULL); - ok (hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok (hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); count = 0; hr = ITaskFolderCollection_get_Count(folders, (LONG *)&count); - ok(hr == S_OK, "get_Count error %#x\n", hr); - ok(count == 2, "expected 2, got %d\n", count); + ok(hr == S_OK, "get_Count error %#lx\n", hr); + ok(count == 2, "expected 2, got %ld\n", count); hr = ITaskFolder_CreateFolder(root, Wine_Folder3, v_null, &subfolder); - ok(hr == S_OK, "CreateFolder error %#x\n", hr); + ok(hr == S_OK, "CreateFolder error %#lx\n", hr); ITaskFolder_Release(subfolder); count = 0; hr = ITaskFolderCollection_get_Count(folders, (LONG *)&count); - ok(hr == S_OK, "get_Count error %#x\n", hr); - ok(count == 2, "expected 2, got %d\n", count); + ok(hr == S_OK, "get_Count error %#lx\n", hr); + ok(count == 2, "expected 2, got %ld\n", count); set_var(VT_INT, &idx, 0); hr = ITaskFolderCollection_get_Item(folders, idx, NULL); - ok (hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok (hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); for (i = 0; i < ARRAY_SIZE(vt); i++) { set_var(vt[i], &idx, 1); hr = ITaskFolderCollection_get_Item(folders, idx, &subfolder); - ok(hr == S_OK, "get_Item(vt = %d) error %#x\n", vt[i], hr); + ok(hr == S_OK, "get_Item(vt = %d) error %#lx\n", vt[i], hr); ITaskFolder_Release(subfolder); } @@ -501,13 +501,13 @@ static void test_FolderCollection(void) hr = ITaskFolderCollection_get_Item(folders, idx, &subfolder); if (i == 0) { - ok (hr == E_INVALIDARG, "expected E_INVALIDARG, got %#x\n", hr); + ok (hr == E_INVALIDARG, "expected E_INVALIDARG, got %#lx\n", hr); continue; } - ok(hr == S_OK, "get_Item error %#x\n", hr); + ok(hr == S_OK, "get_Item error %#lx\n", hr); hr = ITaskFolder_get_Path(subfolder, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); is_first = !lstrcmpW(bstr, Wine_Folder1); if (is_first) ok(!lstrcmpW(bstr, Wine_Folder1), "expected \\Wine\\Folder1, got %s\n", wine_dbgstr_w(bstr)); @@ -516,7 +516,7 @@ static void test_FolderCollection(void) SysFreeString(bstr); hr = ITaskFolder_get_Name(subfolder, &bstr); - ok(hr == S_OK, "get_Name error %#x\n", hr); + ok(hr == S_OK, "get_Name error %#lx\n", hr); if (is_first) ok(!lstrcmpW(bstr, Folder1), "expected Folder1, got %s\n", wine_dbgstr_w(bstr)); else @@ -527,11 +527,11 @@ static void test_FolderCollection(void) V_VT(&idx) = VT_BSTR; V_BSTR(&idx) = bstr; hr = ITaskFolderCollection_get_Item(folders, idx, &subfolder); - ok(hr == S_OK, "get_Item error %#x\n", hr); + ok(hr == S_OK, "get_Item error %#lx\n", hr); SysFreeString(bstr); hr = ITaskFolder_get_Path(subfolder, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); if (is_first) ok(!lstrcmpW(bstr, Wine_Folder1), "expected \\Wine\\Folder1, got %s\n", wine_dbgstr_w(bstr)); else @@ -539,7 +539,7 @@ static void test_FolderCollection(void) SysFreeString(bstr); hr = ITaskFolder_get_Name(subfolder, &bstr); - ok(hr == S_OK, "get_Name error %#x\n", hr); + ok(hr == S_OK, "get_Name error %#lx\n", hr); if (is_first) ok(!lstrcmpW(bstr, Folder1), "expected Folder1, got %s\n", wine_dbgstr_w(bstr)); else @@ -552,49 +552,49 @@ static void test_FolderCollection(void) V_VT(&idx) = VT_I4; V_UI4(&idx) = 3; hr = ITaskFolderCollection_get_Item(folders, idx, &subfolder); - ok (hr == E_INVALIDARG, "expected E_INVALIDARG, got %#x\n", hr); + ok (hr == E_INVALIDARG, "expected E_INVALIDARG, got %#lx\n", hr); hr = ITaskFolderCollection_QueryInterface(folders, &IID_IEnumVARIANT, (void **)&enumvar); - ok(hr == E_NOINTERFACE, "expected E_NOINTERFACE, got %#x\n", hr); + ok(hr == E_NOINTERFACE, "expected E_NOINTERFACE, got %#lx\n", hr); hr = ITaskFolderCollection_QueryInterface(folders, &IID_IEnumUnknown, (void **)&enumvar); - ok(hr == E_NOINTERFACE, "expected E_NOINTERFACE, got %#x\n", hr); + ok(hr == E_NOINTERFACE, "expected E_NOINTERFACE, got %#lx\n", hr); hr = ITaskFolderCollection_get__NewEnum(folders, NULL); - ok (hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok (hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); hr = ITaskFolderCollection_get__NewEnum(folders, &unknown); - ok(hr == S_OK, "get__NewEnum error %#x\n", hr); + ok(hr == S_OK, "get__NewEnum error %#lx\n", hr); hr = IUnknown_QueryInterface(unknown, &IID_IEnumUnknown, (void **)&enumvar); - ok(hr == E_NOINTERFACE, "expected E_NOINTERFACE, got %#x\n", hr); + ok(hr == E_NOINTERFACE, "expected E_NOINTERFACE, got %#lx\n", hr); hr = IUnknown_QueryInterface(unknown, &IID_IEnumVARIANT, (void **)&enumvar); - ok(hr == S_OK, "QueryInterface error %#x\n", hr); + ok(hr == S_OK, "QueryInterface error %#lx\n", hr); IEnumVARIANT_Release(enumvar); hr = IUnknown_QueryInterface(unknown, &IID_IUnknown, (void **)&enumvar); - ok(hr == S_OK, "QueryInterface error %#x\n", hr); + ok(hr == S_OK, "QueryInterface error %#lx\n", hr); IUnknown_Release(unknown); hr = IEnumVARIANT_Skip(enumvar, 0); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = IEnumVARIANT_Skip(enumvar, 2); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = IEnumVARIANT_Skip(enumvar, 1); - ok(hr == S_FALSE, "expected S_FALSE, got %#x\n", hr); + ok(hr == S_FALSE, "expected S_FALSE, got %#lx\n", hr); hr = IEnumVARIANT_Reset(enumvar); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); count = -1; hr = IEnumVARIANT_Next(enumvar, 1, NULL, &count); - ok(hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok(hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); memset(var, 0, sizeof(var)); count = -1; hr = IEnumVARIANT_Next(enumvar, 1, var, &count); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); - ok(count == 1, "expected 1, got %d\n", count); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); + ok(count == 1, "expected 1, got %ld\n", count); hr = ITaskFolder_get_Path((ITaskFolder *)V_DISPATCH(&var[0]), &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); is_first = !lstrcmpW(bstr, Wine_Folder1); if (is_first) ok(!lstrcmpW(bstr, Wine_Folder1), "expected \\Wine\\Folder1, got %s\n", wine_dbgstr_w(bstr)); @@ -602,7 +602,7 @@ static void test_FolderCollection(void) ok(!lstrcmpW(bstr, Wine_Folder2), "expected \\Wine\\Folder2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = ITaskFolder_get_Name((ITaskFolder *)V_DISPATCH(&var[0]), &bstr); - ok(hr == S_OK, "get_Name error %#x\n", hr); + ok(hr == S_OK, "get_Name error %#lx\n", hr); if (is_first) ok(!lstrcmpW(bstr, Folder1), "expected Folder1, got %s\n", wine_dbgstr_w(bstr)); else @@ -613,22 +613,22 @@ static void test_FolderCollection(void) memset(var, 0, sizeof(var)); count = -1; hr = IEnumVARIANT_Next(enumvar, 1, var, &count); - ok(hr == S_FALSE, "expected S_FALSE, got %#x\n", hr); - ok(count == 0, "expected 0, got %d\n", count); + ok(hr == S_FALSE, "expected S_FALSE, got %#lx\n", hr); + ok(count == 0, "expected 0, got %ld\n", count); count = -1; hr = IEnumVARIANT_Next(enumvar, 1, NULL, &count); - ok(hr == S_FALSE, "expected S_FALSE, got %#x\n", hr); - ok(count == 0, "expected 0, got %d\n", count); + ok(hr == S_FALSE, "expected S_FALSE, got %#lx\n", hr); + ok(count == 0, "expected 0, got %ld\n", count); hr = IEnumVARIANT_Reset(enumvar); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); memset(var, 0, sizeof(var)); count = -1; hr = IEnumVARIANT_Next(enumvar, 3, var, &count); - ok(hr == S_FALSE, "expected S_FALSE, got %#x\n", hr); - ok(count == 2, "expected 2, got %d\n", count); + ok(hr == S_FALSE, "expected S_FALSE, got %#lx\n", hr); + ok(count == 2, "expected 2, got %ld\n", count); ok(V_VT(&var[0]) == VT_DISPATCH, "expected VT_DISPATCH, got %d\n", V_VT(&var[0])); ok(V_VT(&var[1]) == VT_DISPATCH, "expected VT_DISPATCH, got %d\n", V_VT(&var[1])); IEnumVARIANT_Release(enumvar); @@ -636,10 +636,10 @@ static void test_FolderCollection(void) for (i = 0; i < count; i++) { hr = IDispatch_QueryInterface(V_DISPATCH(&var[i]), &IID_ITaskFolder, (void **)&subfolder); - ok(hr == S_OK, "QueryInterface error %#x\n", hr); + ok(hr == S_OK, "QueryInterface error %#lx\n", hr); hr = ITaskFolder_get_Path(subfolder, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); is_first = !lstrcmpW(bstr, Wine_Folder1); if (is_first) ok(!lstrcmpW(bstr, Wine_Folder1), "expected \\Wine\\Folder1, got %s\n", wine_dbgstr_w(bstr)); @@ -648,7 +648,7 @@ static void test_FolderCollection(void) SysFreeString(bstr); hr = ITaskFolder_get_Name(subfolder, &bstr); - ok(hr == S_OK, "get_Name error %#x\n", hr); + ok(hr == S_OK, "get_Name error %#lx\n", hr); if (is_first) ok(!lstrcmpW(bstr, Folder1), "expected Folder1, got %s\n", wine_dbgstr_w(bstr)); else @@ -664,13 +664,13 @@ static void test_FolderCollection(void) ITaskFolderCollection_Release(folders); hr = ITaskFolder_DeleteFolder(root, Wine_Folder1, 0); - ok(hr == S_OK, "DeleteFolder error %#x\n", hr); + ok(hr == S_OK, "DeleteFolder error %#lx\n", hr); hr = ITaskFolder_DeleteFolder(root, Wine_Folder2, 0); - ok(hr == S_OK, "DeleteFolder error %#x\n", hr); + ok(hr == S_OK, "DeleteFolder error %#lx\n", hr); hr = ITaskFolder_DeleteFolder(root, Wine_Folder3, 0); - ok(hr == S_OK, "DeleteFolder error %#x\n", hr); + ok(hr == S_OK, "DeleteFolder error %#lx\n", hr); hr = ITaskFolder_DeleteFolder(root, Wine, 0); - ok(hr == S_OK, "DeleteFolder error %#x\n", hr); + ok(hr == S_OK, "DeleteFolder error %#lx\n", hr); ITaskFolder_Release(root); ITaskService_Release(service); @@ -750,17 +750,17 @@ static void test_GetTask(void) hr = CoCreateInstance(&CLSID_TaskScheduler, NULL, CLSCTX_INPROC_SERVER, &IID_ITaskService, (void **)&service); if (hr != S_OK) { - win_skip("CoCreateInstance(CLSID_TaskScheduler) error %#x\n", hr); + win_skip("CoCreateInstance(CLSID_TaskScheduler) error %#lx\n", hr); return; } V_VT(&v_null) = VT_NULL; hr = ITaskService_Connect(service, v_null, v_null, v_null, v_null); - ok(hr == S_OK, "Connect error %#x\n", hr); + ok(hr == S_OK, "Connect error %#lx\n", hr); hr = ITaskService_GetFolder(service, NULL, &root); - ok(hr == S_OK, "GetFolder error %#x\n", hr); + ok(hr == S_OK, "GetFolder error %#lx\n", hr); /* Just in case something was left from previous runs */ ITaskFolder_DeleteTask(root, Wine_Task1, 0); @@ -769,181 +769,181 @@ static void test_GetTask(void) hr = ITaskFolder_GetTask(root, Wine_Task1, &task1); ok(hr == HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) || hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) /* win7 */, - "expected ERROR_PATH_NOT_FOUND, got %#x\n", hr); + "expected ERROR_PATH_NOT_FOUND, got %#lx\n", hr); hr = ITaskFolder_CreateFolder(root, Wine, v_null, &folder); - ok(hr == S_OK, "CreateFolder error %#x\n", hr); + ok(hr == S_OK, "CreateFolder error %#lx\n", hr); hr = ITaskFolder_GetTask(root, Wine, &task1); ok(hr == HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) || hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) /* win7 */, - "expected ERROR_PATH_NOT_FOUND, got %#x\n", hr); + "expected ERROR_PATH_NOT_FOUND, got %#lx\n", hr); MultiByteToWideChar(CP_ACP, 0, xml1, -1, xmlW, ARRAY_SIZE(xmlW)); for (i = 0; i < ARRAY_SIZE(create_new_task); i++) { hr = ITaskFolder_RegisterTask(root, Wine_Task1, xmlW, create_new_task[i].flags, v_null, v_null, TASK_LOGON_NONE, v_null, &task1); - ok(hr == create_new_task[i].hr, "%d: expected %#x, got %#x\n", i, create_new_task[i].hr, hr); + ok(hr == create_new_task[i].hr, "%d: expected %#lx, got %#lx\n", i, create_new_task[i].hr, hr); if (hr == S_OK) { hr = ITaskFolder_DeleteTask(root, Wine_Task1, 0); - ok(hr == S_OK, "DeleteTask error %#x\n", hr); + ok(hr == S_OK, "DeleteTask error %#lx\n", hr); IRegisteredTask_Release(task1); } } hr = ITaskFolder_RegisterTask(root, Wine_Task1, NULL, TASK_CREATE, v_null, v_null, TASK_LOGON_NONE, v_null, NULL); - ok(hr == HRESULT_FROM_WIN32(RPC_X_NULL_REF_POINTER), "expected RPC_X_NULL_REF_POINTER, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(RPC_X_NULL_REF_POINTER), "expected RPC_X_NULL_REF_POINTER, got %#lx\n", hr); hr = ITaskFolder_RegisterTask(root, Wine, xmlW, TASK_VALIDATE_ONLY, v_null, v_null, TASK_LOGON_NONE, v_null, NULL); - ok(hr == S_OK, "RegisterTask error %#x\n", hr); + ok(hr == S_OK, "RegisterTask error %#lx\n", hr); hr = ITaskFolder_RegisterTask(root, Wine, xmlW, TASK_CREATE, v_null, v_null, TASK_LOGON_NONE, v_null, NULL); todo_wine - ok(hr == HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) || broken(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS)) /* Vista */, "expected ERROR_ACCESS_DENIED, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) || broken(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS)) /* Vista */, "expected ERROR_ACCESS_DENIED, got %#lx\n", hr); hr = ITaskFolder_RegisterTask(root, Wine_Task1, xmlW, TASK_CREATE, v_null, v_null, TASK_LOGON_NONE, v_null, NULL); - ok(hr == S_OK, "RegisterTask error %#x\n", hr); + ok(hr == S_OK, "RegisterTask error %#lx\n", hr); hr = ITaskFolder_RegisterTask(root, Wine_Task1, xmlW, TASK_CREATE, v_null, v_null, TASK_LOGON_NONE, v_null, &task1); - ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#lx\n", hr); hr = ITaskFolder_RegisterTask(root, Wine_Task1, xmlW, 0, v_null, v_null, TASK_LOGON_NONE, v_null, NULL); - ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#lx\n", hr); hr = ITaskFolder_RegisterTask(root, Wine_Task1, xmlW, TASK_CREATE_OR_UPDATE, v_null, v_null, TASK_LOGON_NONE, v_null, &task1); - ok(hr == S_OK, "RegisterTask error %#x\n", hr); + ok(hr == S_OK, "RegisterTask error %#lx\n", hr); for (i = 0; i < ARRAY_SIZE(open_existing_task); i++) { hr = ITaskFolder_RegisterTask(root, Wine_Task1, xmlW, open_existing_task[i].flags, v_null, v_null, TASK_LOGON_NONE, v_null, &task2); - ok(hr == open_existing_task[i].hr, "%d: expected %#x, got %#x\n", i, open_existing_task[i].hr, hr); + ok(hr == open_existing_task[i].hr, "%d: expected %#lx, got %#lx\n", i, open_existing_task[i].hr, hr); if (hr == S_OK) IRegisteredTask_Release(task2); } hr = IRegisteredTask_get_Name(task1, NULL); - ok(hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok(hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); hr = IRegisteredTask_get_Name(task1, &bstr); - ok(hr == S_OK, "get_Name error %#x\n", hr); + ok(hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Task1), "expected Task1, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegisteredTask_get_Path(task1, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine_Task1), "expected \\Wine\\Task1, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegisteredTask_get_State(task1, &state); - ok(hr == S_OK, "get_State error %#x\n", hr); + ok(hr == S_OK, "get_State error %#lx\n", hr); ok(state == TASK_STATE_DISABLED, "expected TASK_STATE_DISABLED, got %d\n", state); hr = IRegisteredTask_get_Enabled(task1, &vbool); - ok(hr == S_OK, "get_Enabled error %#x\n", hr); + ok(hr == S_OK, "get_Enabled error %#lx\n", hr); ok(vbool == VARIANT_FALSE, "expected VARIANT_FALSE, got %d\n", vbool); IRegisteredTask_Release(task1); hr = ITaskFolder_RegisterTask(folder, Task1, xmlW, TASK_CREATE, v_null, v_null, TASK_LOGON_NONE, v_null, &task2); - ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS), "expected ERROR_ALREADY_EXISTS, got %#lx\n", hr); MultiByteToWideChar(CP_ACP, 0, xml2, -1, xmlW, ARRAY_SIZE(xmlW)); hr = ITaskFolder_RegisterTask(folder, Task2, xmlW, TASK_CREATE, v_null, v_null, TASK_LOGON_NONE, v_null, &task2); - ok(hr == S_OK, "RegisterTask error %#x\n", hr); + ok(hr == S_OK, "RegisterTask error %#lx\n", hr); hr = IRegisteredTask_get_Name(task2, &bstr); - ok(hr == S_OK, "get_Name error %#x\n", hr); + ok(hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Task2), "expected Task2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegisteredTask_get_Path(task2, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine_Task2), "expected \\Wine\\Task2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegisteredTask_get_State(task2, &state); - ok(hr == S_OK, "get_State error %#x\n", hr); + ok(hr == S_OK, "get_State error %#lx\n", hr); todo_wine ok(state == TASK_STATE_READY, "expected TASK_STATE_READY, got %d\n", state); hr = IRegisteredTask_get_Enabled(task2, &vbool); - ok(hr == S_OK, "get_Enabled error %#x\n", hr); + ok(hr == S_OK, "get_Enabled error %#lx\n", hr); todo_wine ok(vbool == VARIANT_TRUE, "expected VARIANT_TRUE, got %d\n", vbool); IRegisteredTask_Release(task2); hr = ITaskFolder_GetTask(root, NULL, &task1); - ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#x\n", hr); + ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#lx\n", hr); hr = ITaskFolder_GetTask(root, Wine_Task1, NULL); - ok(hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok(hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); hr = ITaskFolder_GetTask(root, Wine_Task1, &task1); - ok(hr == S_OK, "GetTask error %#x\n", hr); + ok(hr == S_OK, "GetTask error %#lx\n", hr); hr = IRegisteredTask_get_Name(task1, &bstr); - ok(hr == S_OK, "get_Name error %#x\n", hr); + ok(hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Task1), "expected Task1, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegisteredTask_get_Path(task1, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine_Task1), "expected \\Wine\\Task1, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegisteredTask_get_State(task1, &state); - ok(hr == S_OK, "get_State error %#x\n", hr); + ok(hr == S_OK, "get_State error %#lx\n", hr); ok(state == TASK_STATE_DISABLED, "expected TASK_STATE_DISABLED, got %d\n", state); hr = IRegisteredTask_get_Enabled(task1, &vbool); - ok(hr == S_OK, "get_Enabled error %#x\n", hr); + ok(hr == S_OK, "get_Enabled error %#lx\n", hr); ok(vbool == VARIANT_FALSE, "expected VARIANT_FALSE, got %d\n", vbool); hr = IRegisteredTask_put_Enabled(task1, VARIANT_TRUE); - ok(hr == S_OK, "put_Enabled error %#x\n", hr); + ok(hr == S_OK, "put_Enabled error %#lx\n", hr); hr = IRegisteredTask_get_State(task1, &state); - ok(hr == S_OK, "get_State error %#x\n", hr); + ok(hr == S_OK, "get_State error %#lx\n", hr); todo_wine ok(state == TASK_STATE_READY, "expected TASK_STATE_READY, got %d\n", state); hr = IRegisteredTask_get_Enabled(task1, &vbool); - ok(hr == S_OK, "get_Enabled error %#x\n", hr); + ok(hr == S_OK, "get_Enabled error %#lx\n", hr); todo_wine ok(vbool == VARIANT_TRUE, "expected VARIANT_TRUE, got %d\n", vbool); IRegisteredTask_Release(task1); hr = ITaskFolder_GetTask(folder, Task2, &task2); - ok(hr == S_OK, "GetTask error %#x\n", hr); + ok(hr == S_OK, "GetTask error %#lx\n", hr); hr = IRegisteredTask_get_Name(task2, &bstr); - ok(hr == S_OK, "get_Name error %#x\n", hr); + ok(hr == S_OK, "get_Name error %#lx\n", hr); ok(!lstrcmpW(bstr, Task2), "expected Task2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegisteredTask_get_Path(task2, &bstr); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(!lstrcmpW(bstr, Wine_Task2), "expected \\Wine\\Task2, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegisteredTask_get_State(task2, &state); - ok(hr == S_OK, "get_State error %#x\n", hr); + ok(hr == S_OK, "get_State error %#lx\n", hr); todo_wine ok(state == TASK_STATE_READY, "expected TASK_STATE_READY, got %d\n", state); hr = IRegisteredTask_get_Enabled(task2, &vbool); - ok(hr == S_OK, "get_Enabled error %#x\n", hr); + ok(hr == S_OK, "get_Enabled error %#lx\n", hr); todo_wine ok(vbool == VARIANT_TRUE, "expected VARIANT_TRUE, got %d\n", vbool); hr = IRegisteredTask_get_State(task2, NULL); - ok(hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok(hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); hr = IRegisteredTask_get_Enabled(task2, NULL); - ok(hr == E_POINTER, "expected E_POINTER, got %#x\n", hr); + ok(hr == E_POINTER, "expected E_POINTER, got %#lx\n", hr); IRegisteredTask_Release(task2); hr = ITaskFolder_DeleteTask(folder, NULL, 0); todo_wine - ok(hr == HRESULT_FROM_WIN32(ERROR_DIR_NOT_EMPTY), "expected ERROR_DIR_NOT_EMPTY, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_DIR_NOT_EMPTY), "expected ERROR_DIR_NOT_EMPTY, got %#lx\n", hr); hr = ITaskFolder_DeleteTask(root, Wine_Task1, 0); - ok(hr == S_OK, "DeleteTask error %#x\n", hr); + ok(hr == S_OK, "DeleteTask error %#lx\n", hr); hr = ITaskFolder_DeleteTask(folder, Task2, 0); - ok(hr == S_OK, "DeleteTask error %#x\n", hr); + ok(hr == S_OK, "DeleteTask error %#lx\n", hr); hr = ITaskFolder_DeleteTask(folder, Task2, 0); - ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || hr == S_OK /* win7 */, "expected ERROR_FILE_NOT_FOUND, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || hr == S_OK /* win7 */, "expected ERROR_FILE_NOT_FOUND, got %#lx\n", hr); hr = ITaskFolder_RegisterTask(root, NULL, xmlW, TASK_CREATE, v_null, v_null, TASK_LOGON_NONE, v_null, &task1); if(hr == E_ACCESSDENIED) @@ -951,27 +951,27 @@ static void test_GetTask(void) skip("Access denied\n"); goto no_access; } - ok(hr == S_OK, "RegisterTask error %#x\n", hr); + ok(hr == S_OK, "RegisterTask error %#lx\n", hr); hr = IRegisteredTask_get_Name(task1, &bstr); - ok(hr == S_OK, "get_Name error %#x\n", hr); + ok(hr == S_OK, "get_Name error %#lx\n", hr); hr = IIDFromString(bstr, &iid); - ok(hr == S_OK, "IIDFromString error %#x\n", hr); + ok(hr == S_OK, "IIDFromString error %#lx\n", hr); IRegisteredTask_Release(task1); hr = ITaskFolder_DeleteTask(root, bstr, 0); - ok(hr == S_OK, "DeleteTask error %#x\n", hr); + ok(hr == S_OK, "DeleteTask error %#lx\n", hr); SysFreeString(bstr); hr = ITaskFolder_RegisterTask(folder, NULL, xmlW, TASK_CREATE, v_null, v_null, TASK_LOGON_NONE, v_null, &task1); - ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#x\n", hr); + ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#lx\n", hr); no_access: ITaskFolder_Release(folder); hr = ITaskFolder_DeleteFolder(root, Wine, 0); - ok(hr == S_OK, "DeleteFolder error %#x\n", hr); + ok(hr == S_OK, "DeleteFolder error %#lx\n", hr); ITaskFolder_Release(root); ITaskService_Release(service); @@ -1010,14 +1010,14 @@ static void test_settings_v1(ITaskDefinition *taskdef, struct settings *test, st TASK_COMPATIBILITY compat; hr = ITaskDefinition_get_Settings(taskdef, &set); - ok(hr == S_OK, "get_Settings error %#x\n", hr); + ok(hr == S_OK, "get_Settings error %#lx\n", hr); hr = ITaskSettings_get_AllowDemandStart(set, &vbool); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vbool == def->allow_on_demand_start, "expected %d, got %d\n", def->allow_on_demand_start, vbool); hr = ITaskSettings_get_RestartInterval(set, &bstr); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); if (!def->restart_interval[0]) ok(bstr == NULL, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); else @@ -1027,35 +1027,35 @@ static void test_settings_v1(ITaskDefinition *taskdef, struct settings *test, st } hr = ITaskSettings_get_RestartCount(set, &vint); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vint == def->restart_count, "expected %d, got %d\n", def->restart_count, vint); hr = ITaskSettings_get_MultipleInstances(set, &policy); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(policy == def->policy, "expected %d, got %d\n", def->policy, policy); hr = ITaskSettings_get_StopIfGoingOnBatteries(set, &vbool); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vbool == test->stop_if_going_on_batteries, "expected %d, got %d\n", test->stop_if_going_on_batteries, vbool); hr = ITaskSettings_get_DisallowStartIfOnBatteries(set, &vbool); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vbool == test->disallow_start_if_on_batteries, "expected %d, got %d\n", test->disallow_start_if_on_batteries, vbool); hr = ITaskSettings_get_AllowHardTerminate(set, &vbool); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vbool == def->allow_hard_terminate, "expected %d, got %d\n", def->allow_hard_terminate, vbool); hr = ITaskSettings_get_StartWhenAvailable(set, &vbool); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vbool == def->start_when_available, "expected %d, got %d\n", def->start_when_available, vbool); hr = ITaskSettings_get_RunOnlyIfNetworkAvailable(set, &vbool); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vbool == def->run_only_if_network_available, "expected %d, got %d\n", def->run_only_if_network_available, vbool); hr = ITaskSettings_get_ExecutionTimeLimit(set, &bstr); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); if (!test->execution_time_limit[0]) ok(bstr == NULL, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); else @@ -1065,11 +1065,11 @@ static void test_settings_v1(ITaskDefinition *taskdef, struct settings *test, st } hr = ITaskSettings_get_Enabled(set, &vbool); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vbool == test->enabled, "expected %d, got %d\n", test->enabled, vbool); hr = ITaskSettings_get_DeleteExpiredTaskAfter(set, &bstr); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); if (!test->delete_expired_task_after[0]) ok(bstr == NULL, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); else @@ -1079,23 +1079,23 @@ static void test_settings_v1(ITaskDefinition *taskdef, struct settings *test, st } hr = ITaskSettings_get_Priority(set, &vint); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vint == test->priority, "expected %d, got %d\n", test->priority, vint); hr = ITaskSettings_get_Compatibility(set, &compat); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(compat == test->compatibility, "expected %d, got %d\n", test->compatibility, compat); hr = ITaskSettings_get_Hidden(set, &vbool); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vbool == test->hidden, "expected %d, got %d\n", test->hidden, vbool); hr = ITaskSettings_get_RunOnlyIfIdle(set, &vbool); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vbool == test->run_only_if_idle, "expected %d, got %d\n", test->run_only_if_idle, vbool); hr = ITaskSettings_get_WakeToRun(set, &vbool); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(vbool == test->wake_to_run, "expected %d, got %d\n", test->wake_to_run, vbool); /* FIXME: test IIdleSettings and INetworkSettings */ @@ -1112,93 +1112,93 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test) IActionCollection *actions; hr = ITaskDefinition_get_Settings(taskdef, &set); - ok(hr == S_OK, "get_Settings error %#x\n", hr); + ok(hr == S_OK, "get_Settings error %#lx\n", hr); if (!test->restart_interval[0]) hr = ITaskSettings_put_RestartInterval(set, NULL); else hr = ITaskSettings_put_RestartInterval(set, test->restart_interval); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_RestartCount(set, test->restart_count); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_MultipleInstances(set, test->policy); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_StopIfGoingOnBatteries(set, test->stop_if_going_on_batteries); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_DisallowStartIfOnBatteries(set, test->disallow_start_if_on_batteries); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_AllowHardTerminate(set, test->allow_hard_terminate); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_StartWhenAvailable(set, test->start_when_available); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_RunOnlyIfNetworkAvailable(set, test->run_only_if_network_available); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); if (!test->execution_time_limit[0]) hr = ITaskSettings_put_ExecutionTimeLimit(set, NULL); else hr = ITaskSettings_put_ExecutionTimeLimit(set, test->execution_time_limit); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_Enabled(set, test->enabled); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); if (!test->delete_expired_task_after[0]) hr = ITaskSettings_put_DeleteExpiredTaskAfter(set, NULL); else hr = ITaskSettings_put_DeleteExpiredTaskAfter(set, test->delete_expired_task_after); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_Priority(set, test->priority); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_Compatibility(set, test->compatibility); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_Hidden(set, test->hidden); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_RunOnlyIfIdle(set, test->run_only_if_idle); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_WakeToRun(set, test->wake_to_run); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); hr = ITaskSettings_put_AllowDemandStart(set, test->allow_on_demand_start); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); triggers = NULL; hr = ITaskDefinition_get_Triggers(taskdef, &triggers); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(triggers != NULL, "triggers not set\n"); hr = ITaskDefinition_put_Triggers(taskdef, triggers); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); if (triggers) ITriggerCollection_Release(triggers); principal = NULL; hr = ITaskDefinition_get_Principal(taskdef, &principal); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(principal != NULL, "principal not set\n"); hr = ITaskDefinition_put_Principal(taskdef, principal); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); if (principal) IPrincipal_Release(principal); actions = NULL; hr = ITaskDefinition_get_Actions(taskdef, &actions); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); ok(actions != NULL, "actions not set\n"); hr = ITaskDefinition_put_Actions(taskdef, actions); - ok(hr == S_OK, "expected S_OK, got %#x\n", hr); + ok(hr == S_OK, "expected S_OK, got %#lx\n", hr); if (actions) IActionCollection_Release(actions); /* FIXME: set IIdleSettings and INetworkSettings */ @@ -1242,73 +1242,73 @@ static void test_daily_trigger(ITrigger *trigger) ULONG i; hr = ITrigger_QueryInterface(trigger, &IID_IDailyTrigger, (void**)&daily_trigger); - ok(hr == S_OK, "Could not get IDailyTrigger iface: %08x\n", hr); + ok(hr == S_OK, "Could not get IDailyTrigger iface: %08lx\n", hr); interval = -1; hr = IDailyTrigger_get_DaysInterval(daily_trigger, &interval); - ok(hr == S_OK, "get_DaysInterval failed: %08x\n", hr); + ok(hr == S_OK, "get_DaysInterval failed: %08lx\n", hr); ok(interval == 1, "interval = %d\n", interval); hr = IDailyTrigger_put_DaysInterval(daily_trigger, -2); - ok(hr == E_INVALIDARG, "put_DaysInterval failed: %08x\n", hr); + ok(hr == E_INVALIDARG, "put_DaysInterval failed: %08lx\n", hr); hr = IDailyTrigger_put_DaysInterval(daily_trigger, 0); - ok(hr == E_INVALIDARG, "put_DaysInterval failed: %08x\n", hr); + ok(hr == E_INVALIDARG, "put_DaysInterval failed: %08lx\n", hr); interval = -1; hr = IDailyTrigger_get_DaysInterval(daily_trigger, &interval); - ok(hr == S_OK, "get_DaysInterval failed: %08x\n", hr); + ok(hr == S_OK, "get_DaysInterval failed: %08lx\n", hr); ok(interval == 1, "interval = %d\n", interval); hr = IDailyTrigger_put_DaysInterval(daily_trigger, 2); - ok(hr == S_OK, "put_DaysInterval failed: %08x\n", hr); + ok(hr == S_OK, "put_DaysInterval failed: %08lx\n", hr); interval = -1; hr = IDailyTrigger_get_DaysInterval(daily_trigger, &interval); - ok(hr == S_OK, "get_DaysInterval failed: %08x\n", hr); + ok(hr == S_OK, "get_DaysInterval failed: %08lx\n", hr); ok(interval == 2, "interval = %d\n", interval); hr = IDailyTrigger_get_StartBoundary(daily_trigger, NULL); - ok(hr == E_POINTER, "get_StartBoundary failed: %08x\n", hr); + ok(hr == E_POINTER, "get_StartBoundary failed: %08lx\n", hr); start_boundary = (BSTR)0xdeadbeef; hr = IDailyTrigger_get_StartBoundary(daily_trigger, &start_boundary); - ok(hr == S_OK, "get_StartBoundary failed: %08x\n", hr); + ok(hr == S_OK, "get_StartBoundary failed: %08lx\n", hr); ok(start_boundary == NULL, "start_boundary not set\n"); for (i = 0; i < ARRAY_SIZE(start_test); i++) { start_boundary = SysAllocString(start_test[i].str); hr = IDailyTrigger_put_StartBoundary(daily_trigger, start_boundary); - ok(hr == start_test[i].hr, "%u: got %08x expected %08x\n", i, hr, start_test[i].hr); + ok(hr == start_test[i].hr, "%lu: got %08lx expected %08lx\n", i, hr, start_test[i].hr); SysFreeString(start_boundary); if (hr == S_OK) { start_boundary = NULL; hr = IDailyTrigger_get_StartBoundary(daily_trigger, &start_boundary); - ok(hr == S_OK, "%u: got %08x\n", i, hr); + ok(hr == S_OK, "%lu: got %08lx\n", i, hr); ok(start_boundary != NULL, "start_boundary not set\n"); - ok(!lstrcmpW(start_boundary, start_test[i].str), "%u: got %s\n", i, wine_dbgstr_w(start_boundary)); + ok(!lstrcmpW(start_boundary, start_test[i].str), "%lu: got %s\n", i, wine_dbgstr_w(start_boundary)); SysFreeString(start_boundary); } } hr = IDailyTrigger_put_StartBoundary(daily_trigger, NULL); - ok(hr == S_OK, "put_StartBoundary failed: %08x\n", hr); + ok(hr == S_OK, "put_StartBoundary failed: %08lx\n", hr); hr = IDailyTrigger_get_Enabled(daily_trigger, NULL); - ok(hr == E_POINTER, "get_Enabled failed: %08x\n", hr); + ok(hr == E_POINTER, "get_Enabled failed: %08lx\n", hr); enabled = VARIANT_FALSE; hr = IDailyTrigger_get_Enabled(daily_trigger, &enabled); - ok(hr == S_OK, "get_Enabled failed: %08x\n", hr); + ok(hr == S_OK, "get_Enabled failed: %08lx\n", hr); ok(enabled == VARIANT_TRUE, "got %d\n", enabled); hr = IDailyTrigger_put_Enabled(daily_trigger, VARIANT_FALSE); - ok(hr == S_OK, "put_Enabled failed: %08x\n", hr); + ok(hr == S_OK, "put_Enabled failed: %08lx\n", hr); enabled = VARIANT_TRUE; hr = IDailyTrigger_get_Enabled(daily_trigger, &enabled); - ok(hr == S_OK, "get_Enabled failed: %08x\n", hr); + ok(hr == S_OK, "get_Enabled failed: %08lx\n", hr); ok(enabled == VARIANT_FALSE, "got %d\n", enabled); IDailyTrigger_Release(daily_trigger); @@ -1328,81 +1328,81 @@ static void create_action(ITaskDefinition *taskdef) BSTR path, str; hr = ITaskDefinition_get_Actions(taskdef, NULL); - ok(hr == E_POINTER, "got %#x\n", hr); + ok(hr == E_POINTER, "got %#lx\n", hr); hr = ITaskDefinition_get_Actions(taskdef, &actions); - ok(hr == S_OK, "get_Actions error %#x\n", hr); + ok(hr == S_OK, "get_Actions error %#lx\n", hr); hr = IActionCollection_Create(actions, TASK_ACTION_EXEC, &action); - ok(hr == S_OK, "Create action error %#x\n", hr); + ok(hr == S_OK, "Create action error %#lx\n", hr); hr = IAction_QueryInterface(action, &IID_IExecAction, (void **)&exec_action); - ok(hr == S_OK, "QueryInterface error %#x\n", hr); + ok(hr == S_OK, "QueryInterface error %#lx\n", hr); type = 0xdeadbeef; hr = IExecAction_get_Type(exec_action, &type); - ok(hr == S_OK, "get_Type error %#x\n", hr); + ok(hr == S_OK, "get_Type error %#lx\n", hr); ok(type == TASK_ACTION_EXEC, "got %u\n", type ); hr = IExecAction_get_Path(exec_action, NULL); - ok(hr == E_POINTER, "got %#x\n", hr); + ok(hr == E_POINTER, "got %#lx\n", hr); path = (BSTR)0xdeadbeef; hr = IExecAction_get_Path(exec_action, &path); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(path == NULL, "path not set\n"); hr = IExecAction_put_Path(exec_action, NULL); - ok(hr == S_OK, "put_Path error %#x\n", hr); + ok(hr == S_OK, "put_Path error %#lx\n", hr); hr = IExecAction_put_Path(exec_action, task1_exe); - ok(hr == S_OK, "put_Path error %#x\n", hr); + ok(hr == S_OK, "put_Path error %#lx\n", hr); path = NULL; hr = IExecAction_get_Path(exec_action, &path); - ok(hr == S_OK, "get_Path error %#x\n", hr); + ok(hr == S_OK, "get_Path error %#lx\n", hr); ok(path != NULL, "path not set\n"); ok(!lstrcmpW(path, task1_exe), "got %s\n", wine_dbgstr_w(path)); SysFreeString(path); hr = IExecAction_get_WorkingDirectory(exec_action, NULL); - ok(hr == E_POINTER, "got %#x\n", hr); + ok(hr == E_POINTER, "got %#lx\n", hr); path = (BSTR)0xdeadbeef; hr = IExecAction_get_WorkingDirectory(exec_action, &path); - ok(hr == S_OK, "get_WorkingDirectory error %#x\n", hr); + ok(hr == S_OK, "get_WorkingDirectory error %#lx\n", hr); ok(path == NULL, "workdir not set\n"); hr = IExecAction_put_WorkingDirectory(exec_action, NULL); - ok(hr == S_OK, "put_WorkingDirectory error %#x\n", hr); + ok(hr == S_OK, "put_WorkingDirectory error %#lx\n", hr); hr = IExecAction_put_WorkingDirectory(exec_action, workdir); - ok(hr == S_OK, "put_WorkingDirectory error %#x\n", hr); + ok(hr == S_OK, "put_WorkingDirectory error %#lx\n", hr); path = NULL; hr = IExecAction_get_WorkingDirectory(exec_action, &path); - ok(hr == S_OK, "get_WorkingDirectory error %#x\n", hr); + ok(hr == S_OK, "get_WorkingDirectory error %#lx\n", hr); ok(path != NULL, "workdir not set\n"); ok(!lstrcmpW(path, workdir), "got %s\n", wine_dbgstr_w(path)); SysFreeString(path); hr = IExecAction_get_Arguments(exec_action, NULL); - ok(hr == E_POINTER, "got %#x\n", hr); + ok(hr == E_POINTER, "got %#lx\n", hr); path = (BSTR)0xdeadbeef; hr = IExecAction_get_Arguments(exec_action, &path); - ok(hr == S_OK, "get_Arguments error %#x\n", hr); + ok(hr == S_OK, "get_Arguments error %#lx\n", hr); ok(path == NULL, "args not set\n"); hr = IExecAction_put_Arguments(exec_action, NULL); - ok(hr == S_OK, "put_Arguments error %#x\n", hr); + ok(hr == S_OK, "put_Arguments error %#lx\n", hr); hr = IExecAction_put_Arguments(exec_action, args); - ok(hr == S_OK, "put_Arguments error %#x\n", hr); + ok(hr == S_OK, "put_Arguments error %#lx\n", hr); path = NULL; hr = IExecAction_get_Arguments(exec_action, &path); - ok(hr == S_OK, "get_Arguments error %#x\n", hr); + ok(hr == S_OK, "get_Arguments error %#lx\n", hr); ok(path != NULL, "args not set\n"); ok(!lstrcmpW(path, args), "got %s\n", wine_dbgstr_w(path)); SysFreeString(path); @@ -1410,18 +1410,18 @@ static void create_action(ITaskDefinition *taskdef) str = (BSTR)0xdeadbeef; hr = IExecAction_get_Id(exec_action, &str); - ok(hr == S_OK, "get_Id error %#x\n", hr); + ok(hr == S_OK, "get_Id error %#lx\n", hr); ok(str == NULL, "id should be NULL\n"); hr = IExecAction_put_Id(exec_action, NULL); - ok(hr == S_OK, "put_Id error %#x\n", hr); + ok(hr == S_OK, "put_Id error %#lx\n", hr); hr = IExecAction_put_Id(exec_action, comment); - ok(hr == S_OK, "put_Id error %#x\n", hr); + ok(hr == S_OK, "put_Id error %#lx\n", hr); str = NULL; hr = IExecAction_get_Id(exec_action, &str); - ok(hr == S_OK, "get_Id error %#x\n", hr); + ok(hr == S_OK, "get_Id error %#lx\n", hr); ok(str != NULL, "should not be NULL\n"); ok(!lstrcmpW(str, comment), "got %s\n", wine_dbgstr_w(str)); SysFreeString(str); @@ -1550,12 +1550,12 @@ static void test_TaskDefinition(void) hr = CoCreateInstance(&CLSID_TaskScheduler, NULL, CLSCTX_INPROC_SERVER, &IID_ITaskService, (void **)&service); if (hr != S_OK) { - win_skip("CoCreateInstance(CLSID_TaskScheduler) error %#x\n", hr); + win_skip("CoCreateInstance(CLSID_TaskScheduler) error %#lx\n", hr); return; } hr = ITaskService_NewTask(service, 0, &taskdef); - ok(hr == S_OK, "NewTask error %#x\n", hr); + ok(hr == S_OK, "NewTask error %#lx\n", hr); test_settings_v1(taskdef, &def_settings, &def_settings); change_settings(taskdef, &new_settings); @@ -1564,15 +1564,15 @@ static void test_TaskDefinition(void) create_action(taskdef); hr = ITaskDefinition_get_XmlText(taskdef, &xml); - ok(hr == S_OK, "get_XmlText error %#x\n", hr); + ok(hr == S_OK, "get_XmlText error %#lx\n", hr); ITaskDefinition_Release(taskdef); hr = ITaskService_NewTask(service, 0, &taskdef); - ok(hr == S_OK, "NewTask error %#x\n", hr); + ok(hr == S_OK, "NewTask error %#lx\n", hr); hr = ITaskDefinition_put_XmlText(taskdef, xml); - ok(hr == S_OK, "put_XmlText error %#x\n", hr); + ok(hr == S_OK, "put_XmlText error %#lx\n", hr); SysFreeString(xml); /* FIXME: uncomment once changing settings is implemented @@ -1580,131 +1580,131 @@ static void test_TaskDefinition(void) */ hr = ITaskDefinition_put_XmlText(taskdef, NULL); - ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#x\n", hr); + ok(hr == E_INVALIDARG, "expected E_INVALIDARG, got %#lx\n", hr); MultiByteToWideChar(CP_ACP, 0, xml1, -1, xmlW, ARRAY_SIZE(xmlW)); hr = ITaskDefinition_put_XmlText(taskdef, xmlW); - ok(hr == S_OK, "put_XmlText error %#x\n", hr); + ok(hr == S_OK, "put_XmlText error %#lx\n", hr); MultiByteToWideChar(CP_ACP, 0, xml2, -1, xmlW, ARRAY_SIZE(xmlW)); hr = ITaskDefinition_put_XmlText(taskdef, xmlW); - ok(hr == SCHED_E_NAMESPACE, "expected SCHED_E_NAMESPACE, got %#x\n", hr); + ok(hr == SCHED_E_NAMESPACE, "expected SCHED_E_NAMESPACE, got %#lx\n", hr); MultiByteToWideChar(CP_ACP, 0, xml3, -1, xmlW, ARRAY_SIZE(xmlW)); hr = ITaskDefinition_put_XmlText(taskdef, xmlW); todo_wine - ok(hr == SCHED_E_UNEXPECTEDNODE, "expected SCHED_E_UNEXPECTEDNODE, got %#x\n", hr); + ok(hr == SCHED_E_UNEXPECTEDNODE, "expected SCHED_E_UNEXPECTEDNODE, got %#lx\n", hr); MultiByteToWideChar(CP_ACP, 0, xml4, -1, xmlW, ARRAY_SIZE(xmlW)); hr = ITaskDefinition_put_XmlText(taskdef, xmlW); - ok(hr == S_OK, "put_XmlText error %#x\n", hr); + ok(hr == S_OK, "put_XmlText error %#lx\n", hr); MultiByteToWideChar(CP_ACP, 0, xml5, -1, xmlW, ARRAY_SIZE(xmlW)); hr = ITaskDefinition_put_XmlText(taskdef, xmlW); todo_wine - ok(hr == SCHED_E_MISSINGNODE, "expected SCHED_E_MISSINGNODE, got %#x\n", hr); + ok(hr == SCHED_E_MISSINGNODE, "expected SCHED_E_MISSINGNODE, got %#lx\n", hr); MultiByteToWideChar(CP_ACP, 0, xml6, -1, xmlW, ARRAY_SIZE(xmlW)); hr = ITaskDefinition_put_XmlText(taskdef, xmlW); - ok(hr == SCHED_E_MALFORMEDXML, "expected SCHED_E_MALFORMEDXML, got %#x\n", hr); + ok(hr == SCHED_E_MALFORMEDXML, "expected SCHED_E_MALFORMEDXML, got %#lx\n", hr); MultiByteToWideChar(CP_ACP, 0, xml7, -1, xmlW, ARRAY_SIZE(xmlW)); hr = ITaskDefinition_put_XmlText(taskdef, xmlW); - ok(hr == SCHED_E_INVALIDVALUE, "expected SCHED_E_INVALIDVALUE, got %#x\n", hr); + ok(hr == SCHED_E_INVALIDVALUE, "expected SCHED_E_INVALIDVALUE, got %#lx\n", hr); xmlW[0] = 0; hr = ITaskDefinition_put_XmlText(taskdef, xmlW); - ok(hr == SCHED_E_MALFORMEDXML, "expected SCHED_E_MALFORMEDXML, got %#x\n", hr); + ok(hr == SCHED_E_MALFORMEDXML, "expected SCHED_E_MALFORMEDXML, got %#lx\n", hr); /* test registration info */ MultiByteToWideChar(CP_ACP, 0, xml1, -1, xmlW, ARRAY_SIZE(xmlW)); hr = ITaskDefinition_put_XmlText(taskdef, xmlW); - ok(hr == S_OK, "put_XmlText error %#x\n", hr); + ok(hr == S_OK, "put_XmlText error %#lx\n", hr); hr = ITaskDefinition_get_RegistrationInfo(taskdef, ®info); - ok(hr == S_OK, "get_RegistrationInfo error %#x\n", hr); + ok(hr == S_OK, "get_RegistrationInfo error %#lx\n", hr); hr = IRegistrationInfo_get_Description(reginfo, &bstr); - ok(hr == S_OK, "get_Description error %#x\n", hr); + ok(hr == S_OK, "get_Description error %#lx\n", hr); ok(!lstrcmpW(bstr, Task1), "expected Task1, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegistrationInfo_put_Description(reginfo, NULL); - ok(hr == S_OK, "put_Description error %#x\n", hr); + ok(hr == S_OK, "put_Description error %#lx\n", hr); bstr = (BSTR)0xdeadbeef; hr = IRegistrationInfo_get_Description(reginfo, &bstr); - ok(hr == S_OK, "get_Description error %#x\n", hr); + ok(hr == S_OK, "get_Description error %#lx\n", hr); ok(!bstr, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); hr = IRegistrationInfo_get_Author(reginfo, &bstr); - ok(hr == S_OK, "get_Author error %#x\n", hr); + ok(hr == S_OK, "get_Author error %#lx\n", hr); ok(!lstrcmpW(bstr, authorW), "expected %s, got %s\n", wine_dbgstr_w(authorW), wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegistrationInfo_put_Author(reginfo, NULL); - ok(hr == S_OK, "put_Author error %#x\n", hr); + ok(hr == S_OK, "put_Author error %#lx\n", hr); bstr = (BSTR)0xdeadbeef; hr = IRegistrationInfo_get_Author(reginfo, &bstr); - ok(hr == S_OK, "get_Author error %#x\n", hr); + ok(hr == S_OK, "get_Author error %#lx\n", hr); ok(!bstr, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); hr = IRegistrationInfo_get_Version(reginfo, &bstr); - ok(hr == S_OK, "get_Version error %#x\n", hr); + ok(hr == S_OK, "get_Version error %#lx\n", hr); ok(!lstrcmpW(bstr, versionW), "expected %s, got %s\n", wine_dbgstr_w(versionW), wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegistrationInfo_put_Version(reginfo, NULL); - ok(hr == S_OK, "put_Version error %#x\n", hr); + ok(hr == S_OK, "put_Version error %#lx\n", hr); bstr = (BSTR)0xdeadbeef; hr = IRegistrationInfo_get_Version(reginfo, &bstr); - ok(hr == S_OK, "get_Version error %#x\n", hr); + ok(hr == S_OK, "get_Version error %#lx\n", hr); ok(!bstr, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); hr = IRegistrationInfo_get_Date(reginfo, &bstr); - ok(hr == S_OK, "get_Date error %#x\n", hr); + ok(hr == S_OK, "get_Date error %#lx\n", hr); ok(!lstrcmpW(bstr, dateW), "expected %s, got %s\n", wine_dbgstr_w(dateW), wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegistrationInfo_put_Date(reginfo, NULL); - ok(hr == S_OK, "put_Date error %#x\n", hr); + ok(hr == S_OK, "put_Date error %#lx\n", hr); bstr = (BSTR)0xdeadbeef; hr = IRegistrationInfo_get_Date(reginfo, &bstr); - ok(hr == S_OK, "get_Date error %#x\n", hr); + ok(hr == S_OK, "get_Date error %#lx\n", hr); ok(!bstr, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); hr = IRegistrationInfo_get_Documentation(reginfo, &bstr); - ok(hr == S_OK, "get_Documentation error %#x\n", hr); + ok(hr == S_OK, "get_Documentation error %#lx\n", hr); ok(!lstrcmpW(bstr, docW), "expected %s, got %s\n", wine_dbgstr_w(docW), wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegistrationInfo_put_Documentation(reginfo, NULL); - ok(hr == S_OK, "put_Documentation error %#x\n", hr); + ok(hr == S_OK, "put_Documentation error %#lx\n", hr); bstr = (BSTR)0xdeadbeef; hr = IRegistrationInfo_get_Documentation(reginfo, &bstr); - ok(hr == S_OK, "get_Documentation error %#x\n", hr); + ok(hr == S_OK, "get_Documentation error %#lx\n", hr); ok(!bstr, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); hr = IRegistrationInfo_get_URI(reginfo, &bstr); - ok(hr == S_OK, "get_URI error %#x\n", hr); + ok(hr == S_OK, "get_URI error %#lx\n", hr); ok(!lstrcmpW(bstr, uriW), "expected %s, got %s\n", wine_dbgstr_w(uriW), wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegistrationInfo_put_URI(reginfo, NULL); - ok(hr == S_OK, "put_URI error %#x\n", hr); + ok(hr == S_OK, "put_URI error %#lx\n", hr); bstr = (BSTR)0xdeadbeef; hr = IRegistrationInfo_get_URI(reginfo, &bstr); - ok(hr == S_OK, "get_URI error %#x\n", hr); + ok(hr == S_OK, "get_URI error %#lx\n", hr); ok(!bstr, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); hr = IRegistrationInfo_get_Source(reginfo, &bstr); - ok(hr == S_OK, "get_Source error %#x\n", hr); + ok(hr == S_OK, "get_Source error %#lx\n", hr); ok(!lstrcmpW(bstr, sourceW), "expected %s, got %s\n", wine_dbgstr_w(sourceW), wine_dbgstr_w(bstr)); SysFreeString(bstr); hr = IRegistrationInfo_put_Source(reginfo, NULL); - ok(hr == S_OK, "put_Source error %#x\n", hr); + ok(hr == S_OK, "put_Source error %#lx\n", hr); bstr = (BSTR)0xdeadbeef; hr = IRegistrationInfo_get_Source(reginfo, &bstr); - ok(hr == S_OK, "get_Source error %#x\n", hr); + ok(hr == S_OK, "get_Source error %#lx\n", hr); ok(!bstr, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); V_VT(&var) = VT_BSTR; V_BSTR(&var) = NULL; hr = IRegistrationInfo_get_SecurityDescriptor(reginfo, &var); todo_wine - ok(hr == S_OK, "get_SecurityDescriptor error %#x\n", hr); + ok(hr == S_OK, "get_SecurityDescriptor error %#lx\n", hr); if (hr == S_OK) ok(V_VT(&var) == VT_EMPTY, "expected VT_EMPTY, got %u\n", V_VT(&var)); @@ -1712,27 +1712,27 @@ static void test_TaskDefinition(void) MultiByteToWideChar(CP_ACP, 0, xml4, -1, xmlW, ARRAY_SIZE(xmlW)); hr = ITaskDefinition_put_XmlText(taskdef, xmlW); - ok(hr == S_OK, "put_XmlText error %#x\n", hr); + ok(hr == S_OK, "put_XmlText error %#lx\n", hr); hr = ITaskDefinition_get_RegistrationInfo(taskdef, ®info); - ok(hr == S_OK, "get_RegistrationInfo error %#x\n", hr); + ok(hr == S_OK, "get_RegistrationInfo error %#lx\n", hr); hr = IRegistrationInfo_get_Description(reginfo, &bstr); - ok(hr == S_OK, "get_Description error %#x\n", hr); + ok(hr == S_OK, "get_Description error %#lx\n", hr); ok(!bstr, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); hr = ITaskDefinition_get_Triggers(taskdef, &trigger_col); - ok(hr == S_OK, "get_Triggers failed: %08x\n", hr); + ok(hr == S_OK, "get_Triggers failed: %08lx\n", hr); ok(trigger_col != NULL, "Triggers = NULL\n"); hr = ITriggerCollection_Create(trigger_col, TASK_TRIGGER_DAILY, &trigger); - ok(hr == S_OK, "Create failed: %08x\n", hr); + ok(hr == S_OK, "Create failed: %08lx\n", hr); ok(trigger != NULL, "trigger = NULL\n"); test_daily_trigger(trigger); ITrigger_Release(trigger); ITriggerCollection_Release(trigger_col); hr = ITaskDefinition_get_Triggers(taskdef, &trigger_col2); - ok(hr == S_OK, "get_Triggers failed: %08x\n", hr); + ok(hr == S_OK, "get_Triggers failed: %08lx\n", hr); ok(trigger_col == trigger_col2, "Mismatched triggers\n"); ITriggerCollection_Release(trigger_col2);