Go to the source code of this file.
◆ expect_hotkey
Value:do \
{ \
int hotkey_count = 0; \
{ \
DispatchMessageW(&
msg); \
} \
ok(hotkey_count == 1, "Received %d WM_HOTKEY messages, expected 1\n", hotkey_count); \
} while (0)
Definition at line 18 of file RegisterHotKey.c.
◆ expect_no_hotkey
Value:do \
{ \
{ \
DispatchMessageW(&
msg); \
} \
} while (0)
Definition at line 41 of file RegisterHotKey.c.
◆ msg_hotkey
◆ msg_no_hotkey
Value:do \
{ \
"Got WM_HOTKEY with hwnd=%p, wParam=0x%Ix, lParam=0x%Ix\n", \
"Unexpected message %u posted to thread with hwnd=%p, wParam=0x%Ix, lParam=0x%Ix\n", \
} while (0)
Definition at line 30 of file RegisterHotKey.c.
◆ START_TEST()
Definition at line 51 of file RegisterHotKey.c.
78 trace(
"Ctrl+U (with Ctrl up first)\n");
88 trace(
"Ctrl+U (with U down first and Ctrl up first)\n");
98 trace(
"Ctrl+U (with U down first and U up first)\n");
118 trace(
"Ctrl+Alt (with Ctrl up first)\n");
138 trace(
"Alt+Ctrl (with Alt up first)\n");
158 trace(
"Ctrl+Alt+U\n");
172 trace(
"Alt+Ctrl+U\n");
186 trace(
"Ctrl+U+Alt\n");
200 trace(
"Alt+U+Ctrl\n");
BOOL WINAPI UnregisterHotKey(_In_opt_ HWND, _In_ int)
VOID WINAPI keybd_event(_In_ BYTE, _In_ BYTE, _In_ DWORD, _In_ ULONG_PTR)
BOOL WINAPI SetCursorPos(_In_ int, _In_ int)
#define expect_hotkey(id, mod, vk)
BOOL WINAPI RegisterHotKey(_In_opt_ HWND, _In_ int, _In_ UINT, _In_ UINT)
#define expect_no_hotkey()