ReactOS
0.4.16-dev-814-g656a5dc
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
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_PTR NTAPI NtUserCallHwnd(HWND hWnd, DWORD Routine)
Definition:
simplecall.c:711
NtUserCallHwndParam
DWORD NTAPI NtUserCallHwndParam(HWND hWnd, DWORD_PTR Param, DWORD Routine)
Definition:
simplecall.c:778
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 Thu Mar 13 2025 06:08:24 for ReactOS by
1.9.6