10#define TIMER_INTERVAL 500
12#define MOUSE_LOCATION_X(x) ((DWORD)(x) * 0xFFFF / GetSystemMetrics(SM_CXSCREEN))
13#define MOUSE_LOCATION_Y(y) ((DWORD)(y) * 0xFFFF / GetSystemMetrics(SM_CYSCREEN))
26 static BOOL s_bReach_WM_MOUSEMOVE;
27 static BOOL s_bReach_WM_LBUTTONDOWN;
28 static BOOL s_bReach_WM_LBUTTONUP;
35 s_bReach_WM_MOUSEMOVE =
FALSE;
36 s_bReach_WM_LBUTTONDOWN =
FALSE;
37 s_bReach_WM_LBUTTONUP =
FALSE;
49 "GetMessageTime() is wrong, compared to previous one\n");
51 "GetMessageTime() is wrong, compared to GetTickCount()\n");
68 trace(
"WM_MOUSEMOVE\n");
74 "GetMessageTime() is wrong, compared to GetTickCount()\n");
75 s_bReach_WM_MOUSEMOVE =
TRUE;
78 trace(
"WM_LBUTTONDOWN\n");
81 "GetMessageTime() is wrong, compared to previous one\n");
83 "GetMessageTime() is wrong, compared to GetTickCount()\n");
84 s_bReach_WM_LBUTTONDOWN =
TRUE;
87 trace(
"WM_LBUTTONUP\n");
90 "GetMessageTime() is wrong, compared to previous one\n");
92 "GetMessageTime() is wrong, compared to GetTickCount()\n");
93 s_bReach_WM_LBUTTONUP =
TRUE;
128 ok(atom != 0,
"RegisterClassW\n");
149 skip(
"hwnd was NULL.\n");
#define MOUSE_LOCATION_Y(y)
static LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define MOUSE_LOCATION_X(x)
#define ok_int(expression, result)
static WCHAR s_szName[MAX_PATH]
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
DWORD WINAPI GetTickCount(VOID)
#define WS_OVERLAPPEDWINDOW
TW_UINT32 TW_UINT16 TW_UINT16 MSG
#define MOUSEEVENTF_ABSOLUTE
void WINAPI mouse_event(_In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ ULONG_PTR)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define MOUSEEVENTF_LEFTUP
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
#define MOUSEEVENTF_LEFTDOWN
BOOL WINAPI UpdateWindow(_In_ HWND)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
LONG WINAPI GetMessageTime(void)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
BOOL WINAPI DestroyWindow(_In_ HWND)