ReactOS 0.4.15-dev-5664-g3bf4ef6
NtUserCallHwndLock.c File Reference
#include <win32nt.h>
Include dependency graph for NtUserCallHwndLock.c:

Go to the source code of this file.

Functions

void Test_HwndLockRoutine_WindowHasShadow (HWND hWnd)
 
void Test_HwndLockRoutine_ArrangeIconicWindows (HWND hWnd)
 
void Test_HwndLockRoutine_DrawMenuBar (HWND hWnd)
 
void Test_HwndLockRoutine_CheckImeShowStatusInThread (HWND hWnd)
 
void Test_HwndLockRoutine_GetSysMenuHandle (HWND hWnd)
 
void Test_HwndLockRoutine_RedrawFrame (HWND hWnd)
 
void Test_HwndLockRoutine_UpdateWindow (HWND hWnd)
 
 START_TEST (NtUserCallHwndLock)
 

Variables

HMENU g_hMenu
 

Function Documentation

◆ START_TEST()

START_TEST ( NtUserCallHwndLock  )

Definition at line 67 of file NtUserCallHwndLock.c.

68{
69 HWND hWnd;
71
72 hWnd = CreateWindowA("BUTTON",
73 "Test",
75 0,
76 0,
77 50,
78 30,
79 NULL,
80 g_hMenu,
82 0);
83 ASSERT(hWnd);
84
86 TEST(NtUserCallHwndLock((HWND)-22, 999) == 0);
88
90 TEST(NtUserCallHwndLock((HWND)0, 0x55) == 0);
92
94 TEST(NtUserCallHwndLock(hWnd, 999) == 0);
96
103
105
107
108}
HINSTANCE g_hInstance
Definition: MainWindow.cpp:18
void Test_HwndLockRoutine_CheckImeShowStatusInThread(HWND hWnd)
void Test_HwndLockRoutine_ArrangeIconicWindows(HWND hWnd)
void Test_HwndLockRoutine_WindowHasShadow(HWND hWnd)
void Test_HwndLockRoutine_DrawMenuBar(HWND hWnd)
HMENU g_hMenu
void Test_HwndLockRoutine_RedrawFrame(HWND hWnd)
void Test_HwndLockRoutine_GetSysMenuHandle(HWND hWnd)
void Test_HwndLockRoutine_UpdateWindow(HWND hWnd)
HWND hWnd
Definition: settings.c:17
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NULL
Definition: types.h:112
#define SetLastError(x)
Definition: compat.h:752
BOOL NTAPI NtUserCallHwndLock(HWND hWnd, DWORD Routine)
Definition: simplecall.c:585
#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
DWORD WINAPI GetLastError(void)
Definition: except.c:1040
#define ERROR_INVALID_WINDOW_HANDLE
Definition: winerror.h:881
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition: winuser.h:4305
HMENU WINAPI CreateMenu(void)
Definition: menu.c:837
BOOL WINAPI DestroyWindow(_In_ HWND)

◆ Test_HwndLockRoutine_ArrangeIconicWindows()

void Test_HwndLockRoutine_ArrangeIconicWindows ( HWND  hWnd)

Definition at line 24 of file NtUserCallHwndLock.c.

25{
26// TEST(NtUserCallHwndLock(hWnd, _HWNDLOCK_ROUTINE_ARRANGEICONICWINDOWS) == 0);
27
28}

Referenced by START_TEST().

◆ Test_HwndLockRoutine_CheckImeShowStatusInThread()

void Test_HwndLockRoutine_CheckImeShowStatusInThread ( HWND  hWnd)

Definition at line 38 of file NtUserCallHwndLock.c.

39{
40 TEST(NtUserCallHwndLock(hWnd, 0x56) != 0);
41
42}

Referenced by START_TEST().

◆ Test_HwndLockRoutine_DrawMenuBar()

void Test_HwndLockRoutine_DrawMenuBar ( HWND  hWnd)

Definition at line 31 of file NtUserCallHwndLock.c.

32{
33 TEST(NtUserCallHwndLock(hWnd, 0x55) == 1);
34 return APISTATUS_NORMAL;
35}

Referenced by START_TEST().

◆ Test_HwndLockRoutine_GetSysMenuHandle()

void Test_HwndLockRoutine_GetSysMenuHandle ( HWND  hWnd)

Definition at line 45 of file NtUserCallHwndLock.c.

46{
48// HMENU hMenu = (HMENU)NtUserCallHwndLock(hWnd, 0x57);
49// TEST(hMenu != 0);
50
51}

Referenced by START_TEST().

◆ Test_HwndLockRoutine_RedrawFrame()

void Test_HwndLockRoutine_RedrawFrame ( HWND  hWnd)

Definition at line 54 of file NtUserCallHwndLock.c.

55{
56// TEST(NtUserCallHwndLock(hWnd, 0x68) != 0);
57
58}

Referenced by START_TEST().

◆ Test_HwndLockRoutine_UpdateWindow()

void Test_HwndLockRoutine_UpdateWindow ( HWND  hWnd)

Definition at line 61 of file NtUserCallHwndLock.c.

62{
63 TEST(NtUserCallHwndLock(hWnd, 0x5e) == 1);
64
65}

Referenced by START_TEST().

◆ Test_HwndLockRoutine_WindowHasShadow()

void Test_HwndLockRoutine_WindowHasShadow ( HWND  hWnd)

Definition at line 16 of file NtUserCallHwndLock.c.

17{
18// TEST(NtUserCallHwndLock(hWnd, 0x53) == 0);
19
20}

Referenced by START_TEST().

Variable Documentation

◆ g_hMenu

HMENU g_hMenu

Definition at line 13 of file NtUserCallHwndLock.c.

Referenced by START_TEST().