20#define TIMER_INTERVAL 200
25 static char s_buf[128];
27 if (dwRet == ISMEX_NOSEND)
29 strcpy(s_buf,
"ISMEX_NOSEND,");
33 if (dwRet & ISMEX_CALLBACK)
34 strcat(s_buf,
"ISMEX_CALLBACK,");
35 if (dwRet & ISMEX_NOTIFY)
36 strcat(s_buf,
"ISMEX_NOTIFY,");
37 if (dwRet & ISMEX_REPLIED)
38 strcat(s_buf,
"ISMEX_REPLIED,");
39 if (dwRet & ISMEX_SEND)
40 strcat(s_buf,
"ISMEX_SEND,");
50 trace(
"%s: uMsg:0x%04X, wParam:0x%08lX, lParam:0x%08lX, ISMEX_:%s\n",
115 trace(
"SwitchToThisWindow(TRUE): tracing...\n");
119 trace(
"SwitchToThisWindow(TRUE): tracing done\n");
151 trace(
"SwitchToThisWindow(FALSE): tracing...\n");
155 trace(
"SwitchToThisWindow(FALSE): tracing done\n");
205 ok(hCursor !=
NULL,
"hCursor was NULL\n");
215 ok(atom != 0,
"RegisterClassW failed\n");
219 skip(
"atom is zero\n");
233 skip(
"hwnd is NULL\n");
static const WCHAR s_szClassName[]
static INT s_nWM_ACTIVATE
static void OnTimer(HWND hwnd, UINT id)
static void DoMessage(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static INT s_nWM_SYSCOMMAND_SC_RESTORE
static const char * DumpInSMEX(void)
static LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static INT s_nWM_SYSCOMMAND_NOT_SC_RESTORE
static INT s_nWM_NCACTIVATE
static INT s_nWM_WINDOWPOSCHANGING
char * strcat(char *DstString, const char *SrcString)
char * strcpy(char *DstString, const char *SrcString)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
#define WS_OVERLAPPEDWINDOW
TW_UINT32 TW_UINT16 TW_UINT16 MSG
DWORD WINAPI InSendMessageEx(LPVOID lpReserved)
VOID WINAPI SwitchToThisWindow(HWND hwnd, BOOL fAltTab)
HWND WINAPI GetFocus(void)
HWND WINAPI GetActiveWindow(void)
BOOL WINAPI DestroyCursor(_In_ HCURSOR)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
HWND WINAPI GetForegroundWindow(void)
#define WM_WINDOWPOSCHANGING
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
BOOL WINAPI SetForegroundWindow(_In_ HWND)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
HWND WINAPI GetDesktopWindow(void)
BOOL WINAPI InSendMessage(void)
HWND WINAPI SetActiveWindow(_In_ HWND)
BOOL WINAPI UpdateWindow(_In_ HWND)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
BOOL WINAPI CloseWindow(_In_ HWND)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI DestroyIcon(_In_ HICON)