2015-12-28 20:31:10 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS api tests
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
|
|
* PURPOSE: Test for NtUserCallHwndParam
|
|
|
|
* PROGRAMMERS:
|
|
|
|
*/
|
2008-03-22 03:12:01 +00:00
|
|
|
|
2015-12-28 20:31:10 +00:00
|
|
|
#include <win32nt.h>
|
|
|
|
|
|
|
|
void
|
|
|
|
Test_HwndParamRoutine_SetWindowContextHelpId(HWND hWnd)
|
2008-03-22 03:12:01 +00:00
|
|
|
{
|
|
|
|
TEST(NtUserCallHwndParam(hWnd, 12345, _HWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID) == TRUE);
|
2015-12-28 20:31:10 +00:00
|
|
|
TEST(NtUserCallHwnd(hWnd, HWND_ROUTINE_GETWNDCONTEXTHLPID) == 12345);
|
2008-03-22 03:12:01 +00:00
|
|
|
}
|
|
|
|
|
2015-12-28 20:31:10 +00:00
|
|
|
START_TEST(NtUserCallHwndParam)
|
2008-03-22 03:12:01 +00:00
|
|
|
{
|
|
|
|
HWND hWnd;
|
|
|
|
|
|
|
|
hWnd = CreateWindowA("BUTTON",
|
|
|
|
"Test",
|
|
|
|
BS_PUSHBUTTON | WS_VISIBLE,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
50,
|
|
|
|
30,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
g_hInstance,
|
|
|
|
0);
|
|
|
|
ASSERT(hWnd);
|
|
|
|
|
2015-12-28 20:31:10 +00:00
|
|
|
Test_HwndParamRoutine_SetWindowContextHelpId(hWnd);
|
2008-03-22 03:12:01 +00:00
|
|
|
|
|
|
|
DestroyWindow(hWnd);
|
|
|
|
}
|