27#define EXPECT_FOREGROUND(expected) ok(GetForegroundWindow() == expected, \
28 "Expected hwnd%d at the foreground, got hwnd%d\n", \
29 get_iwnd(expected), get_iwnd(GetForegroundWindow()));
31#define EXPECT_ACTIVE(expected) ok(GetActiveWindow() == expected, \
32 "Expected hwnd%d to be active, got hwnd%d\n", \
33 get_iwnd(expected), get_iwnd(GetActiveWindow()));
130 win_skip(
"child thread failed to initialize\n");
210 for(
i = 0;
i< 4;
i++)
212 for(
j = 0;
j< 4;
j++)
215 ok(
ret==0,
"expected AttachThreadInput to fail\n");
234 ok(
ret==0,
"expected AttachThreadInput to fail\n");
238 ok(
ret==0,
"expected AttachThreadInput to fail\n");
242 ok(
ret==0,
"expected AttachThreadInput to fail\n");
248 ok(
ret==0,
"expected AttachThreadInput to fail\n");
256 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
260 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
266 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
270 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
274 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
278 ok(
ret==0,
"expected AttachThreadInput to fail\n");
282 ok(
ret==0,
"expected AttachThreadInput to fail\n");
286 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
289 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
292 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
298 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
300 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
304 ok(
ret==0,
"expected AttachThreadInput to fail\n");
306 ok(
ret==0,
"expected AttachThreadInput to fail\n");
310 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
313 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
317 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
319 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
325 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
327 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
329 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
331 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
336 ok(
ret==0,
"expected AttachThreadInput to fail\n");
338 ok(
ret==0,
"expected AttachThreadInput to fail\n");
362 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
369 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
385 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
392 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
406 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
420 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
436 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
450 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
479 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
491 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
512 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
527 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
572 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
608 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
614 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
650 ok(
ret==1,
"expected AttachThreadInput to succeed\n");
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
BOOL WINAPI TerminateThread(IN HANDLE hThread, IN DWORD dwExitCode)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum const GLfloat * params
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
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 GLint GLint j
#define DESKTOP_ALL_ACCESS
void record_message(MSG_CACHE *cache, int iwnd, UINT message, MSG_TYPE type, int param1, int param2)
#define COMPARE_CACHE_(cache, msg_chain)
#define EMPTY_CACHE_(cache)
#define WS_OVERLAPPEDWINDOW
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
static __inline ATOM RegisterSimpleClass(WNDPROC lpfnWndProc, LPCWSTR lpszClassName)
HDESK WINAPI CreateDesktopW(LPCWSTR lpszDesktop, LPCWSTR lpszDevice, LPDEVMODEW pDevmode, DWORD dwFlags, ACCESS_MASK dwDesiredAccess, LPSECURITY_ATTRIBUTES lpsa)
DWORD WINAPI GetCurrentThreadId(void)
BOOL WINAPI IsDebuggerPresent(void)
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define SendMessageTimeout
HWND WINAPI GetActiveWindow(void)
HWND WINAPI GetForegroundWindow(void)
BOOL WINAPI AttachThreadInput(_In_ DWORD, _In_ DWORD, _In_ BOOL)
BOOL WINAPI SetThreadDesktop(_In_ HDESK)
HHOOK WINAPI SetWindowsHookExW(_In_ int, _In_ HOOKPROC, _In_opt_ HINSTANCE, _In_ DWORD)
BOOL WINAPI SetForegroundWindow(_In_ HWND)
#define PostThreadMessage
BOOL WINAPI UnhookWindowsHookEx(_In_ HHOOK)
HWND WINAPI SetActiveWindow(_In_ HWND)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
VOID WINAPI keybd_event(_In_ BYTE, _In_ BYTE, _In_ DWORD, _In_ ULONG_PTR)
LRESULT WINAPI CallNextHookEx(_In_opt_ HHOOK, _In_ int, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI CloseDesktop(_In_ HDESK)