88{
97
99 {
100 skip(
"Not running as foreground app, skipping acquire tests\n");
101 return;
102 }
103
107
109 ok(
hr ==
S_OK,
"SetCooperativeLevel: %08x\n",
hr);
110
111 memset(&di_op, 0,
sizeof(di_op));
117 ok(
hr ==
S_OK,
"SetProperty() failed: %08x\n",
hr);
118
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);
127
128
129
130
131 hwnd2 =
CreateWindowA(
"static",
"Temporary",
WS_VISIBLE, 10, 210, 200, 200,
NULL,
NULL,
NULL,
134
137
140
143 ok(
hr ==
S_OK,
"Acquire() failed: %08x\n",
hr);
144
146 skip(
"ROSTESTS-176/CORE-9710: Skipping randomly failing tests\n");
147else {
148
150 cnt = 1;
152 ok(
hr ==
S_OK && cnt > 0,
"GetDeviceData() failed: %08x cnt:%d\n",
hr, cnt);
153
157 cnt = 1;
159 ok(
hr ==
S_OK && cnt > 0,
"GetDeviceData() failed: %08x cnt:%d\n",
hr, cnt);
160
166
169 cnt = 1;
171 ok(
hr ==
S_OK && cnt > 0,
"GetDeviceData() failed: %08x cnt:%d\n",
hr, cnt);
172
173
174 for (
i = 0;
i < 6;
i++)
176
177 cnt = 1;
179 ok(
hr ==
DI_OK,
"GetDeviceData() failed: %08x cnt:%d\n",
hr, cnt);
180 cnt = 1;
182 ok(
hr ==
DI_OK && cnt == 1,
"GetDeviceData() failed: %08x cnt:%d\n",
hr, cnt);
183
184
185 memset(&di_op, 0,
sizeof(di_op));
191
192 ok(
hr ==
S_OK && di_op.
dwData == 1,
"GetProperty(): %08x, dwData: %i but should be 1.\n",
hr, di_op.
dwData);
193
194
195 memset(&di_op, 0,
sizeof(di_op));
197
202
203 ok(
hr ==
S_OK && di_op.
dwData == 1,
"GetProperty(): %08x, dwData: %i but should be 1.\n",
hr, di_op.
dwData);
204}
206
208}
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
void WINAPI mouse_event(_In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ ULONG_PTR)
BOOL WINAPI SetForegroundWindow(_In_ HWND)
HWND WINAPI SetActiveWindow(_In_ HWND)