1 /* 2 * PROJECT: ReactOS api tests 3 * LICENSE: GPL - See COPYING in the top level directory 4 * PURPOSE: Test for NtUserCallHwndParam 5 * PROGRAMMERS: 6 */ 7 8 #include <win32nt.h> 9 10 void 11 Test_HwndParamRoutine_SetWindowContextHelpId(HWND hWnd) 12 { 13 TEST(NtUserCallHwndParam(hWnd, 12345, _HWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID) == TRUE); 14 TEST(NtUserCallHwnd(hWnd, HWND_ROUTINE_GETWNDCONTEXTHLPID) == 12345); 15 } 16 17 START_TEST(NtUserCallHwndParam) 18 { 19 HWND hWnd; 20 21 hWnd = CreateWindowA("BUTTON", 22 "Test", 23 BS_PUSHBUTTON | WS_VISIBLE, 24 0, 25 0, 26 50, 27 30, 28 NULL, 29 NULL, 30 g_hInstance, 31 0); 32 ASSERT(hWnd); 33 34 Test_HwndParamRoutine_SetWindowContextHelpId(hWnd); 35 36 DestroyWindow(hWnd); 37 } 38