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)
std::map< E_MODULE, HMODULE > mod
TW_UINT32 TW_UINT16 TW_UINT16 MSG
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", \
else \
ok(0, \
"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.
52{
54
59
61
67
77
78 trace(
"Ctrl+U (with Ctrl up first)\n");
87
88 trace(
"Ctrl+U (with U down first and Ctrl up first)\n");
97
98 trace(
"Ctrl+U (with U down first and U up first)\n");
107
117
118 trace(
"Ctrl+Alt (with Ctrl up first)\n");
127
137
138 trace(
"Alt+Ctrl (with Alt up first)\n");
147
157
158 trace(
"Ctrl+Alt+U\n");
171
172 trace(
"Alt+Ctrl+U\n");
185
186 trace(
"Ctrl+U+Alt\n");
199
200 trace(
"Alt+U+Ctrl\n");
213
214
215
220
222}
#define expect_hotkey(id, mod, vk)
#define expect_no_hotkey()
BOOL WINAPI UnregisterHotKey(_In_opt_ HWND, _In_ int)
BOOL WINAPI SetCursorPos(_In_ int, _In_ int)
BOOL WINAPI RegisterHotKey(_In_opt_ HWND, _In_ int, _In_ UINT, _In_ UINT)
VOID WINAPI keybd_event(_In_ BYTE, _In_ BYTE, _In_ DWORD, _In_ ULONG_PTR)