72 ok (
ret,
"OpenClipboard failed\n");
79 ok (
ret,
"EmptyClipboard failed\n");
86 ok (
ret,
"CloseClipboard failed\n");
124 ok (
ret,
"OpenClipboard failed\n");
127 ok (
ret,
"EmptyClipboard failed\n");
130 ok (
ret,
"CloseClipboard failed\n");
153 ok (
ret,
"OpenClipboard failed\n");
156 ok (
ret,
"EmptyClipboard failed\n");
159 ok (
ret,
"CloseClipboard failed\n");
162 ok (hWndClipOwner ==
NULL,
"Expected NULL owner\n");
164 hWnd =
CreateWindowW(
L"static",
L"static",
WS_OVERLAPPEDWINDOW, 20, 20, 300, 300,
NULL,
NULL, 0,
NULL);
165 ok (
hWnd != 0 ,
"CreateWindowW failed\n");
168 ok (
ret,
"OpenClipboard failed\n");
171 ok (hWndClipOwner ==
NULL,
"Expected NULL owner\n");
174 ok (
ret,
"EmptyClipboard failed\n");
177 ok (
ret,
"CloseClipboard failed\n");
180 ok (hWndClipOwner ==
hWnd,
"Expected hWnd owner\n");
static void FlushMessages()
LRESULT CALLBACK ClipTestProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
static void RecordAndDispatch(MSG *pmsg)
static DWORD WINAPI ClipThread(PVOID Parameter)
static int get_iwnd(HWND hWnd)
static CRITICAL_SECTION CritSect
static MSG_ENTRY EmptyClipboard_chain[]
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
static BOOL IsDWmMsg(UINT msg)
#define RECORD_MESSAGE(...)
#define COMPARE_CACHE(msg_chain)
static BOOL IseKeyMsg(UINT msg)
#define WS_OVERLAPPEDWINDOW
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
static __inline ATOM RegisterSimpleClass(WNDPROC lpfnWndProc, LPCWSTR lpszClassName)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define WM_DESTROYCLIPBOARD
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI CloseClipboard(void)
HWND WINAPI GetClipboardOwner(void)
BOOL WINAPI OpenClipboard(_In_opt_ HWND)
BOOL WINAPI EmptyClipboard(void)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI DestroyWindow(_In_ HWND)
_Inout_opt_ PVOID Parameter