ReactOS 0.4.15-dev-7660-g0086d05
NtUserGetTitleBarInfo.c File Reference
#include "../win32nt.h"
Include dependency graph for NtUserGetTitleBarInfo.c:

Go to the source code of this file.

Functions

 START_TEST (NtUserGetTitleBarInfo)
 

Function Documentation

◆ START_TEST()

START_TEST ( NtUserGetTitleBarInfo  )

Definition at line 10 of file NtUserGetTitleBarInfo.c.

11{
13 HWND hWnd;
14 TITLEBARINFO tbi;
15
16 hWnd = CreateWindowA("BUTTON",
17 "Test",
19 0,
20 0,
21 50,
22 30,
23 NULL,
24 NULL,
25 hinst,
26 0);
27
28 ASSERT(hWnd);
29
30 /* FALSE case */
31 /* no windows handle */
33 /* no TITLEBARINFO struct */
35 /* nothing */
37 /* wrong size */
38 tbi.cbSize = 0;
40
41 /* TRUE case */
42 tbi.cbSize = sizeof(TITLEBARINFO);
44
46
47}
HWND hWnd
Definition: settings.c:17
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
BOOLEAN NTAPI NtUserGetTitleBarInfo(HWND hwnd, PTITLEBARINFO pti)
Definition: menu.c:5722
#define ASSERT(a)
Definition: mode.c:44
#define TEST(x)
Definition: precomp.h:20
static HINSTANCE hinst
Definition: edit.c:551
#define WS_VISIBLE
Definition: pedump.c:620
#define BS_PUSHBUTTON
Definition: pedump.c:651
#define GetModuleHandle
Definition: winbase.h:3762
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition: winuser.h:4314
struct tagTITLEBARINFO TITLEBARINFO
BOOL WINAPI DestroyWindow(_In_ HWND)