ReactOS  0.4.14-dev-384-g5b37caa
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 
15 void
17 {
18 // TEST(NtUserCallHwndLock(hWnd, 0x53) == 0);
19 
20 }
21 
22 
23 void
25 {
26 // TEST(NtUserCallHwndLock(hWnd, _HWNDLOCK_ROUTINE_ARRANGEICONICWINDOWS) == 0);
27 
28 }
29 
30 void
32 {
33  TEST(NtUserCallHwndLock(hWnd, 0x55) == 1);
34  return APISTATUS_NORMAL;
35 }
36 
37 void
39 {
40  TEST(NtUserCallHwndLock(hWnd, 0x56) != 0);
41 
42 }
43 
44 void
46 {
47  NtUserCallHwndLock(hWnd, 0x5c);
48 // HMENU hMenu = (HMENU)NtUserCallHwndLock(hWnd, 0x57);
49 // TEST(hMenu != 0);
50 
51 }
52 
53 void
55 {
56 // TEST(NtUserCallHwndLock(hWnd, 0x68) != 0);
57 
58 }
59 
60 void
62 {
63  TEST(NtUserCallHwndLock(hWnd, 0x5e) == 1);
64 
65 }
66 
68 {
69  HWND hWnd;
70  g_hMenu = CreateMenu();
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 }
HMENU WINAPI CreateMenu(void)
Definition: menu.c:837
#define ERROR_SUCCESS
Definition: deptool.c:10
HWND hWnd
Definition: settings.c:17
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
void Test_HwndLockRoutine_GetSysMenuHandle(HWND hWnd)
BOOL WINAPI DestroyWindow(_In_ HWND)
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition: winuser.h:4216
BOOL NTAPI NtUserCallHwndLock(HWND hWnd, DWORD Routine)
Definition: simplecall.c:577
smooth NULL
Definition: ftsmooth.c:416
void Test_HwndLockRoutine_ArrangeIconicWindows(HWND hWnd)
#define ERROR_INVALID_WINDOW_HANDLE
Definition: winerror.h:881
void Test_HwndLockRoutine_CheckImeShowStatusInThread(HWND hWnd)
HMENU g_hMenu
#define TEST(x)
Definition: precomp.h:20
void Test_HwndLockRoutine_RedrawFrame(HWND hWnd)
#define SetLastError(x)
Definition: compat.h:417
void Test_HwndLockRoutine_UpdateWindow(HWND hWnd)
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
START_TEST(NtUserCallHwndLock)
#define BS_PUSHBUTTON
Definition: pedump.c:651
void Test_HwndLockRoutine_WindowHasShadow(HWND hWnd)
void Test_HwndLockRoutine_DrawMenuBar(HWND hWnd)
HINSTANCE g_hInstance
Definition: MainWindow.cpp:18
#define WS_VISIBLE
Definition: pedump.c:620
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60