ReactOS 0.4.15-dev-6056-gb29b268
NtUserCallHwndLock.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 NtUserCallHwndLock
5 * PROGRAMMERS:
6 */
7
8#include <win32nt.h>
9
10
11
12
14
15void
17{
18// TEST(NtUserCallHwndLock(hWnd, 0x53) == 0);
19
20}
21
22
23void
25{
26// TEST(NtUserCallHwndLock(hWnd, _HWNDLOCK_ROUTINE_ARRANGEICONICWINDOWS) == 0);
27
28}
29
30void
32{
33 TEST(NtUserCallHwndLock(hWnd, 0x55) == 1);
34 return APISTATUS_NORMAL;
35}
36
37void
39{
40 TEST(NtUserCallHwndLock(hWnd, 0x56) != 0);
41
42}
43
44void
46{
48// HMENU hMenu = (HMENU)NtUserCallHwndLock(hWnd, 0x57);
49// TEST(hMenu != 0);
50
51}
52
53void
55{
56// TEST(NtUserCallHwndLock(hWnd, 0x68) != 0);
57
58}
59
60void
62{
63 TEST(NtUserCallHwndLock(hWnd, 0x5e) == 1);
64
65}
66
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)
#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 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
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
#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)