#include "precomp.h"
#include <dlgs.h>
#include <process.h>
Go to the source code of this file.
◆ INTERVAL
◆ DialogProc_0()
Definition at line 115 of file SetFocus.c.
static unsigned __stdcall thread_proc_0(void *arg)
BOOL WINAPI PostMessageA(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HWND WINAPI SetFocus(_In_opt_ HWND)
_CRTIMP uintptr_t __cdecl _beginthreadex(_In_opt_ void *_Security, _In_ unsigned _StackSize, _In_ unsigned(__stdcall *_StartAddress)(void *), _In_opt_ void *_ArgList, _In_ unsigned _InitFlag, _Out_opt_ unsigned *_ThrdAddr)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
#define ok_int(expression, result)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
HWND WINAPI GetFocus(void)
Referenced by START_TEST().
◆ DialogProc_1()
Definition at line 163 of file SetFocus.c.
BOOL WINAPI PostMessageA(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
_CRTIMP uintptr_t __cdecl _beginthreadex(_In_opt_ void *_Security, _In_ unsigned _StackSize, _In_ unsigned(__stdcall *_StartAddress)(void *), _In_opt_ void *_ArgList, _In_ unsigned _InitFlag, _Out_opt_ unsigned *_ThrdAddr)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
#define ok_int(expression, result)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
HWND WINAPI GetFocus(void)
static unsigned __stdcall thread_proc_1(void *arg)
static unsigned __stdcall thread_proc_2(void *arg)
Referenced by START_TEST().
◆ GetMainThreadFocus()
◆ START_TEST()
Definition at line 213 of file SetFocus.c.
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
static INT_PTR CALLBACK DialogProc_0(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define DialogBoxA(i, t, p, f)
static DWORD s_dwMainThreadID
#define ok_int(expression, result)
static INT_PTR CALLBACK DialogProc_1(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
DWORD WINAPI GetCurrentThreadId(VOID)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
◆ thread_proc_0()
Definition at line 23 of file SetFocus.c.
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
static HWND GetMainThreadFocus(void)
BOOL WINAPI PostMessageA(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define ok_int(expression, result)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
VOID WINAPI keybd_event(_In_ BYTE, _In_ BYTE, _In_ DWORD, _In_ ULONG_PTR)
HWND WINAPI GetFocus(void)
Referenced by DialogProc_0().
◆ thread_proc_1()
Definition at line 70 of file SetFocus.c.
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
static HWND GetMainThreadFocus(void)
BOOL WINAPI PostMessageA(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define ok_int(expression, result)
VOID WINAPI keybd_event(_In_ BYTE, _In_ BYTE, _In_ DWORD, _In_ ULONG_PTR)
HWND WINAPI GetFocus(void)
Referenced by DialogProc_1().
◆ thread_proc_2()
Definition at line 91 of file SetFocus.c.
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
static HWND GetMainThreadFocus(void)
BOOL WINAPI PostMessageA(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define ok_int(expression, result)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
VOID WINAPI keybd_event(_In_ BYTE, _In_ BYTE, _In_ DWORD, _In_ ULONG_PTR)
HWND WINAPI GetFocus(void)
Referenced by DialogProc_1().
◆ s_dwMainThreadID