34 ok(
hr ==
S_OK,
"IReferenceClock_QueryInterface returned %x\n",
hr);
35 ok(pF !=
NULL,
"pF is NULL\n");
40 ok(pF ==
NULL,
"pF is not NULL\n");
43 ok(
hr ==
S_OK,
"IReferenceClock_QueryInterface returned %x\n",
hr);
44 ok(pF !=
NULL,
"pF is NULL\n");
67 ok (
hr ==
S_FALSE ||
hr ==
S_OK,
"%s - Expected S_OK or S_FALSE, got 0x%08x\n", clockdesc,
hr);
68 ok (time1 != 0xdeadbeef,
"%s - value was NOT changed on return!\n", clockdesc);
73 ok (
hr ==
S_FALSE ||
hr ==
S_OK,
"%s - Expected S_OK or S_FALSE, got 0x%08x\n", clockdesc,
hr);
74 ok (time2 != 0xdeadbeef,
"%s - value was NOT changed on return!\n", clockdesc);
78 ok ((
hr !=
S_FALSE || time1 == time2),
"%s - returned S_FALSE, but values not equal!\n", clockdesc);
84 ok (
hr ==
S_OK,
"%s - Expected S_OK, got 0x%08x\n", clockdesc,
hr);
90 ok (9940000 <= diff && diff <= 10240000,
"%s - Expected difference around 10000000, got %u\n", clockdesc, diff);
100 ok(
hr ==
S_OK,
"Unable to create reference clock from system clock %x\n",
hr);
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
#define IReferenceClock_QueryInterface(p, a, b)
#define IReferenceClock_Release(p)
#define IReferenceClock_GetTime(p, a)
static void test_IReferenceClock_methods(const char *clockdesc, IReferenceClock *pClock)
static void test_IReferenceClock_SystemClock(void)
static void test_IReferenceClock_query_interface(const char *clockdesc, IReferenceClock *pClock)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)