19#define DIRECTINPUT_VERSION 0x0700
61 trace(
" Type:%4x Ofs:%3d Flags:%08x Name:%s\n",
94 ok(cnt == cnt1,
"Enum count changed from %d to %d\n", cnt, cnt1);
97 for (type_index=0; type_index <
ARRAY_SIZE(obj_types); type_index++)
104 memset(&dp, 0,
sizeof(dp));
112 ok(
hr ==
DI_OK,
"SetProperty() failed: %08x\n",
hr);
115 ok(
hr ==
DI_OK && cnt == 5,
"GetDeviceData() failed: %08x cnt: %d\n",
hr, cnt);
125 ok(
hr ==
DI_OK,
"SetProperty() failed: %08x\n",
hr);
128 ok(
hr ==
DI_OK,
"GetDeviceData() failed: %08x\n",
hr);
135 ok(
hr ==
DI_OK,
"GetDeviceData() failed: %08x\n",
hr);
140 ok(
hr ==
DI_OK,
"GetDeviceData() failed: %08x\n",
hr);
143 obj_info.
dwSize =
sizeof(obj_info);
158 ok(
hr ==
DI_OK,
"SetProperty() failed: %08x\n",
hr);
184 ok(
hr ==
DI_OK,
"IDirectInput_GetDeviceStatus() failed: %08x\n",
hr);
193 ok(
SUCCEEDED(
hr),
"IUnknown_QueryInterface(IID_IDirectInputDevice7A) failed: %08x\n",
hr);
195 if (
obj) IUnknown_Release(
obj);
199 ok(
SUCCEEDED(
hr),
"IUnknown_QueryInterface(IID_IDirectInputDevice7W) failed: %08x\n",
hr);
201 if (
obj) IUnknown_Release(
obj);
219 skip(
"Tests require a newer dinput version\n");
229 hr = IUnknown_QueryInterface(
pDI, &IID_IDirectInput2W, (
LPVOID*)&
obj);
230 ok(
SUCCEEDED(
hr),
"QueryInterface(IDirectInput7W) failed: %08x\n",
hr);
258 if (
obj) IUnknown_Release(
obj);
259 if (
pDI) IUnknown_Release(
pDI);
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
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)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define WS_OVERLAPPEDWINDOW
CHAR tszInstanceName[MAX_PATH]
DWORD WINAPI GetLastError(void)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI DestroyWindow(_In_ HWND)