Go to the source code of this file.
◆ WMPAINT_COUNT_THRESHOLD
#define WMPAINT_COUNT_THRESHOLD 10 |
◆ redraw_window_procA()
Definition at line 24 of file WndProc.c.
29{
31 {
33 break;
36
38 {
40
41 trace(
"Calling *Paint()\n");
44 return 1;
45 }
46
47
48
49#ifdef __MINGW32__
50 trace(
"Executing __MINGW32__ stack corruption code\n");
51 asm ("movl $0, %eax\n\t"
52 "leave\n\t"
53 "ret");
54#elif defined(_M_IX86)
55
56 trace(
"Executing MSVC x86 stack corruption code\n");
57 __asm
58 {
62 }
63#else
64 ok(
FALSE,
"FIXME: stack corruption code is unimplemented\n");
65#endif
66
67 break;
68 default:
69 trace(
"Doing empty default: msg = %u\n",
msg);
70 }
71
72 trace(
"Calling DefWindowProc()\n");
74}
static int redrawComplete
#define WMPAINT_COUNT_THRESHOLD
ecx edi movl ebx edx edi decl ecx esi eax jecxz decl eax andl eax esi movl eax
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
Referenced by test_wndproc().
◆ START_TEST()
Definition at line 159 of file WndProc.c.
160{
161#ifdef __RUNTIME_CHECKS__
162 skip(
"This test breaks MSVC runtime checks!\n");
163 return;
164#endif
165
168}
static void test_wndproc(void)
static void test_get_wndproc(void)
◆ test_get_wndproc()
Definition at line 138 of file WndProc.c.
139{
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");
157}
#define ERROR_ACCESS_DENIED
HWND WINAPI GetShellWindow(VOID)
DWORD WINAPI GetLastError(void)
#define GetWindowLongPtrW
#define GetWindowLongPtrA
Referenced by START_TEST().
◆ test_wndproc()
Definition at line 76 of file WndProc.c.
77{
81
92
94 ok(clsAtom != 0,
"RegisterClassA() failed: LastError = %lu\n",
GetLastError());
95
96 if (clsAtom == 0)
97 {
98 skip(
"No Class atom\n");
99 return;
100 }
101
104
106
109
111 {
114 "UnregisterClassA() failed: LastError = %lu\n",
GetLastError());
115 return;
116 }
117
121
125
128 "RedrawWindow (RDW_UPDATENOW) never completed (%d/%d)\n",
130
132 "DestroyWindow() failed: LastError = %lu\n",
GetLastError());
133
135 "UnregisterClassA() failed: LastError = %lu\n",
GetLastError());
136}
static LRESULT WINAPI redraw_window_procA(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
#define WS_OVERLAPPEDWINDOW
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT)
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)
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
BOOL WINAPI DestroyWindow(_In_ HWND)
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
Referenced by START_TEST().
◆ redrawComplete
◆ WMPAINT_count