ReactOS 0.4.15-dev-8131-g4988de4
NtUserCallHwnd.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 NtUserCallHwnd
5 * PROGRAMMERS:
6 */
7
8#include "../win32nt.h"
9
10void
12{
14
15}
16
17void
19{
22
23}
24
25void
27{
28 TEST(NtUserCallHwnd(hWnd, 0x49) != FALSE);
29
30}
31
32
34{
35 HWND hWnd;
36
37 hWnd = CreateWindowA("BUTTON",
38 "Test",
40 0,
41 0,
42 50,
43 30,
44 NULL,
45 NULL,
47 0);
48 ASSERT(hWnd);
49
51 TEST(NtUserCallHwnd(hWnd, 0x44) == FALSE);
53 TEST(NtUserCallHwnd(hWnd, 0x46) == FALSE); // DWP_GetEnabledPopup
55 TEST(NtUserCallHwnd(hWnd, 0x48) == TRUE);
58
60}
HINSTANCE g_hInstance
Definition: MainWindow.cpp:18
void Test_HwndRoutine_DeregisterShellHookWindow(HWND hWnd)
void Test_HwndRoutine_SetMsgBox(HWND hWnd)
void Test_HwndRoutine_GetWindowContextHelpId(HWND hWnd)
#define START_TEST(x)
Definition: atltest.h:75
HWND hWnd
Definition: settings.c:17
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define SetLastError(x)
Definition: compat.h:752
DWORD NTAPI NtUserCallHwnd(HWND hWnd, DWORD Routine)
Definition: simplecall.c:711
DWORD NTAPI NtUserCallHwndParam(HWND hWnd, DWORD_PTR Param, DWORD Routine)
Definition: simplecall.c:767
#define ASSERT(a)
Definition: mode.c:44
#define TEST(x)
Definition: precomp.h:20
#define WS_VISIBLE
Definition: pedump.c:620
#define BS_PUSHBUTTON
Definition: pedump.c:651
#define _HWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID
Definition: w32knapi.h:67
#define _HWND_ROUTINE_GETWNDCONTEXTHLPID
Definition: w32knapi.h:66
#define _HWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW
Definition: w32knapi.h:65
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition: winuser.h:4315
BOOL WINAPI DestroyWindow(_In_ HWND)