ReactOS  0.4.14-dev-1036-g3c5b10f
NtUserCallHwnd.c File Reference
#include <win32nt.h>
Include dependency graph for NtUserCallHwnd.c:

Go to the source code of this file.

Functions

void Test_HwndRoutine_DeregisterShellHookWindow (HWND hWnd)
 
void Test_HwndRoutine_GetWindowContextHelpId (HWND hWnd)
 
void Test_HwndRoutine_SetMsgBox (HWND hWnd)
 
 START_TEST (NtUserCallHwnd)
 

Function Documentation

◆ START_TEST()

START_TEST ( NtUserCallHwnd  )

Definition at line 33 of file NtUserCallHwnd.c.

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);
56  Test_HwndRoutine_SetMsgBox(hWnd); /* 0x49 */
58 
60 }
#define TRUE
Definition: types.h:120
#define ERROR_SUCCESS
Definition: deptool.c:10
void Test_HwndRoutine_SetMsgBox(HWND hWnd)
HWND hWnd
Definition: settings.c:17
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
BOOL WINAPI DestroyWindow(_In_ HWND)
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition: winuser.h:4290
smooth NULL
Definition: ftsmooth.c:416
#define TEST(x)
Definition: precomp.h:20
void Test_HwndRoutine_DeregisterShellHookWindow(HWND hWnd)
void Test_HwndRoutine_GetWindowContextHelpId(HWND hWnd)
#define SetLastError(x)
Definition: compat.h:417
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
#define BS_PUSHBUTTON
Definition: pedump.c:651
HINSTANCE g_hInstance
Definition: MainWindow.cpp:18
#define WS_VISIBLE
Definition: pedump.c:620
DWORD NTAPI NtUserCallHwnd(HWND hWnd, DWORD Routine)
Definition: simplecall.c:699

◆ Test_HwndRoutine_DeregisterShellHookWindow()

void Test_HwndRoutine_DeregisterShellHookWindow ( HWND  hWnd)

Definition at line 11 of file NtUserCallHwnd.c.

12 {
14 
15 }
#define TRUE
Definition: types.h:120
HWND hWnd
Definition: settings.c:17
#define _HWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW
Definition: w32knapi.h:66
#define TEST(x)
Definition: precomp.h:20
DWORD NTAPI NtUserCallHwnd(HWND hWnd, DWORD Routine)
Definition: simplecall.c:699

Referenced by START_TEST().

◆ Test_HwndRoutine_GetWindowContextHelpId()

void Test_HwndRoutine_GetWindowContextHelpId ( HWND  hWnd)

Definition at line 18 of file NtUserCallHwnd.c.

19 {
22 
23 }
DWORD NTAPI NtUserCallHwndParam(HWND hWnd, DWORD_PTR Param, DWORD Routine)
Definition: simplecall.c:755
#define TRUE
Definition: types.h:120
HWND hWnd
Definition: settings.c:17
#define TEST(x)
Definition: precomp.h:20
#define _HWND_ROUTINE_GETWNDCONTEXTHLPID
Definition: w32knapi.h:67
#define _HWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID
Definition: w32knapi.h:68
DWORD NTAPI NtUserCallHwnd(HWND hWnd, DWORD Routine)
Definition: simplecall.c:699

Referenced by START_TEST().

◆ Test_HwndRoutine_SetMsgBox()

void Test_HwndRoutine_SetMsgBox ( HWND  hWnd)

Definition at line 26 of file NtUserCallHwnd.c.

27 {
28  TEST(NtUserCallHwnd(hWnd, 0x49) != FALSE);
29 
30 }
HWND hWnd
Definition: settings.c:17
#define TEST(x)
Definition: precomp.h:20
DWORD NTAPI NtUserCallHwnd(HWND hWnd, DWORD Routine)
Definition: simplecall.c:699

Referenced by START_TEST().