ReactOS
0.4.16-dev-340-g0540c21
NtUserCallHwndParam.c
Go to the documentation of this file.
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
}
g_hInstance
HINSTANCE g_hInstance
Definition:
MainWindow.cpp:18
Test_HwndParamRoutine_SetWindowContextHelpId
void Test_HwndParamRoutine_SetWindowContextHelpId(HWND hWnd)
Definition:
NtUserCallHwndParam.c:11
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
hWnd
HWND hWnd
Definition:
settings.c:17
NULL
#define NULL
Definition:
types.h:112
TRUE
#define TRUE
Definition:
types.h:120
HWND_ROUTINE_GETWNDCONTEXTHLPID
@ HWND_ROUTINE_GETWNDCONTEXTHLPID
Definition:
ntuser.h:1614
NtUserCallHwnd
DWORD NTAPI NtUserCallHwnd(HWND hWnd, DWORD Routine)
Definition:
simplecall.c:711
NtUserCallHwndParam
DWORD NTAPI NtUserCallHwndParam(HWND hWnd, DWORD_PTR Param, DWORD Routine)
Definition:
simplecall.c:767
void
Definition:
nsiface.idl:2307
ASSERT
#define ASSERT(a)
Definition:
mode.c:44
TEST
#define TEST(x)
Definition:
precomp.h:20
WS_VISIBLE
#define WS_VISIBLE
Definition:
pedump.c:620
BS_PUSHBUTTON
#define BS_PUSHBUTTON
Definition:
pedump.c:651
_HWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID
#define _HWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID
Definition:
w32knapi.h:67
CreateWindowA
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition:
winuser.h:4318
DestroyWindow
BOOL WINAPI DestroyWindow(_In_ HWND)
modules
rostests
apitests
win32nt
ntuser
NtUserCallHwndParam.c
Generated on Fri Dec 13 2024 06:08:08 for ReactOS by
1.9.6