20#define DIRECTINPUT_VERSION 0x0700
100 skip(
"Not running as foreground app, skipping acquire tests\n");
109 ok(
hr ==
S_OK,
"SetCooperativeLevel: %08x\n",
hr);
111 memset(&di_op, 0,
sizeof(di_op));
117 ok(
hr ==
S_OK,
"SetProperty() failed: %08x\n",
hr);
120 ok(
SUCCEEDED(
hr),
"IDirectInputDevice_SetDataFormat() failed: %08x\n",
hr);
122 ok(
hr ==
S_FALSE,
"IDirectInputDevice_Unacquire() should have failed: %08x\n",
hr);
126 ok(
hr ==
S_FALSE,
"IDirectInputDevice_Acquire() should have failed: %08x\n",
hr);
131 hwnd2 =
CreateWindowA(
"static",
"Temporary",
WS_VISIBLE, 10, 210, 200, 200,
NULL,
NULL,
NULL,
143 ok(
hr ==
S_OK,
"Acquire() failed: %08x\n",
hr);
146 skip(
"ROSTESTS-176/CORE-9710: Skipping randomly failing tests\n");
152 ok(
hr ==
S_OK && cnt > 0,
"GetDeviceData() failed: %08x cnt:%d\n",
hr, cnt);
159 ok(
hr ==
S_OK && cnt > 0,
"GetDeviceData() failed: %08x cnt:%d\n",
hr, cnt);
171 ok(
hr ==
S_OK && cnt > 0,
"GetDeviceData() failed: %08x cnt:%d\n",
hr, cnt);
174 for (
i = 0;
i < 6;
i++)
179 ok(
hr ==
DI_OK,
"GetDeviceData() failed: %08x cnt:%d\n",
hr, cnt);
182 ok(
hr ==
DI_OK && cnt == 1,
"GetDeviceData() failed: %08x cnt:%d\n",
hr, cnt);
185 memset(&di_op, 0,
sizeof(di_op));
192 ok(
hr ==
S_OK && di_op.
dwData == 1,
"GetProperty(): %08x, dwData: %i but should be 1.\n",
hr, di_op.
dwData);
195 memset(&di_op, 0,
sizeof(di_op));
203 ok(
hr ==
S_OK && di_op.
dwData == 1,
"GetProperty(): %08x, dwData: %i but should be 1.\n",
hr, di_op.
dwData);
221 instA.
dwSize =
sizeof(instA);
225 inst3A.
dwSize =
sizeof(inst3A);
264 ok(
hr==
DI_OK,
"IDirectInputDevice_EnumObjects() failed: %08x\n",
hr);
272 IDirectInputA *pDI =
NULL;
280 skip(
"Tests require a newer dinput version\n");
300 if (pDI)
ref = IUnknown_Release(pDI);
301 ok(!
ref,
"IDirectInput_Release() reference count = %d\n",
ref);
HRESULT WINAPI DECLSPEC_HOTPATCH DirectInputCreateA(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTA *ppDI, LPUNKNOWN punkOuter)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define WS_OVERLAPPEDWINDOW
#define IsEqualGUID(rguid1, rguid2)
#define IsEqualIID(riid1, riid2)
static __inline const char * wine_dbgstr_guid(const GUID *id)
DWORD WINAPI GetLastError(void)
void WINAPI mouse_event(_In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ ULONG_PTR)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI SetForegroundWindow(_In_ HWND)
HWND WINAPI SetActiveWindow(_In_ HWND)
BOOL WINAPI DestroyWindow(_In_ HWND)