12#define WMPAINT_COUNT_THRESHOLD 10
41 trace(
"Calling *Paint()\n");
50 trace(
"Executing __MINGW32__ stack corruption code\n");
51 asm (
"movl $0, %eax\n\t"
56 trace(
"Executing MSVC x86 stack corruption code\n");
64 ok(
FALSE,
"FIXME: stack corruption code is unimplemented\n");
69 trace(
"Doing empty default: msg = %u\n",
msg);
72 trace(
"Calling DefWindowProc()\n");
94 ok(clsAtom != 0,
"RegisterClassA() failed: LastError = %lu\n",
GetLastError());
98 skip(
"No Class atom\n");
114 "UnregisterClassA() failed: LastError = %lu\n",
GetLastError());
128 "RedrawWindow (RDW_UPDATENOW) never completed (%d/%d)\n",
132 "DestroyWindow() failed: LastError = %lu\n",
GetLastError());
135 "UnregisterClassA() failed: LastError = %lu\n",
GetLastError());
143 ok (
ret == 0,
"Should return NULL\n");
147 ok (
ret == 0,
"Should return NULL\n");
151 ok (
ret == 0,
"Should return NULL\n");
155 ok (
ret == 0,
"Should return NULL\n");
161#ifdef __RUNTIME_CHECKS__
162 skip(
"This test breaks MSVC runtime checks!\n");
static void test_wndproc(void)
static int redrawComplete
static LRESULT WINAPI redraw_window_procA(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
#define WMPAINT_COUNT_THRESHOLD
static void test_get_wndproc(void)
#define ERROR_ACCESS_DENIED
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
#define WS_OVERLAPPEDWINDOW
LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
ecx edi movl ebx edx edi decl ecx esi eax jecxz decl eax andl eax esi movl eax
HWND WINAPI GetShellWindow(VOID)
DWORD WINAPI GetLastError(void)
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT)
#define GetWindowLongPtrW
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI UnregisterClassA(_In_ LPCSTR, HINSTANCE)
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
#define GetWindowLongPtrA
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
BOOL WINAPI DestroyWindow(_In_ HWND)
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)