Nikolay Sivov : user32/tests: One more activation context test for interthread SendMessage.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Dec 21 15:10:32 CST 2015
Module: wine
Branch: master
Commit: 69ec6f226e48949f020afe55b862d5e98618b5de
URL: http://source.winehq.org/git/wine.git/?a=commit;h=69ec6f226e48949f020afe55b862d5e98618b5de
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Dec 21 12:10:27 2015 +0300
user32/tests: One more activation context test for interthread SendMessage.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/msg.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index b90f8d0..c2a0557 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -76,6 +76,7 @@ static BOOL (WINAPI *pActivateActCtx)(HANDLE,ULONG_PTR*);
static HANDLE (WINAPI *pCreateActCtxW)(PCACTCTXW);
static BOOL (WINAPI *pDeactivateActCtx)(DWORD,ULONG_PTR);
static BOOL (WINAPI *pGetCurrentActCtx)(HANDLE *);
+static BOOL (WINAPI *pQueryActCtxW)(DWORD,HANDLE,void*,ULONG,void*,SIZE_T,SIZE_T*);
static void (WINAPI *pReleaseActCtx)(HANDLE);
/* encoded DRAWITEMSTRUCT into an LPARAM */
@@ -7742,6 +7743,7 @@ static LRESULT MsgCheckProc (BOOL unicode, HWND hwnd, UINT message,
case WM_USER+10:
{
+ ACTIVATION_CONTEXT_BASIC_INFORMATION basicinfo;
HANDLE handle, event = (HANDLE)lParam;
BOOL ret;
@@ -7749,6 +7751,14 @@ static LRESULT MsgCheckProc (BOOL unicode, HWND hwnd, UINT message,
ret = pGetCurrentActCtx(&handle);
ok(ret, "failed to get current context, %u\n", GetLastError());
ok(handle == 0, "got active context %p\n", handle);
+
+ memset(&basicinfo, 0xff, sizeof(basicinfo));
+ ret = pQueryActCtxW(QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX, handle, 0, ActivationContextBasicInformation,
+ &basicinfo, sizeof(basicinfo), NULL);
+ ok(ret, "got %d, error %d\n", ret, GetLastError());
+ ok(basicinfo.hActCtx == NULL, "got %p\n", basicinfo.hActCtx);
+ ok(basicinfo.dwFlags == 0, "got %x\n", basicinfo.dwFlags);
+
if (event) SetEvent(event);
return 1;
}
@@ -14915,6 +14925,7 @@ static void init_funcs(void)
X(CreateActCtxW);
X(DeactivateActCtx);
X(GetCurrentActCtx);
+ X(QueryActCtxW);
X(ReleaseActCtx);
#undef X
}
More information about the wine-cvs
mailing list