ReactOS 0.4.15-dev-7654-g6bc40d3
GetStockObject.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 GetStockObject
5 * PROGRAMMERS: Timo Kreuzer
6 */
7
8#include "precomp.h"
9
11{
12 /* Test limits and error */
15 TEST(GetStockObject(20) != NULL);
21
22 /* Test for the stock bit */
24
25 /* Test for correct types */
47}
48
50{
52}
53
void Test_GetStockObject()
#define START_TEST(x)
Definition: atltest.h:75
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NULL
Definition: types.h:112
#define SetLastError(x)
Definition: compat.h:752
#define GDI_HANDLE_STOCK_MASK
Definition: gdi.h:19
#define GDI_OBJECT_TYPE_BRUSH
Definition: gdi.h:52
#define GDI_HANDLE_GET_TYPE(h)
Definition: gdi.h:31
#define GDI_OBJECT_TYPE_COLORSPACE
Definition: gdi.h:56
#define GDI_OBJECT_TYPE_BITMAP
Definition: gdi.h:48
#define GDI_OBJECT_TYPE_PALETTE
Definition: gdi.h:49
#define GDI_OBJECT_TYPE_FONT
Definition: gdi.h:50
#define GDI_OBJECT_TYPE_PEN
Definition: gdi.h:54
#define TEST(x)
Definition: precomp.h:20
#define RTEST(x)
Definition: precomp.h:21
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define ANSI_FIXED_FONT
Definition: wingdi.h:906
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define DEFAULT_PALETTE
Definition: wingdi.h:913
#define LTGRAY_BRUSH
Definition: wingdi.h:900
#define DKGRAY_BRUSH
Definition: wingdi.h:897
#define ANSI_VAR_FONT
Definition: wingdi.h:907
#define DEFAULT_GUI_FONT
Definition: wingdi.h:909
#define WHITE_PEN
Definition: wingdi.h:905
#define WHITE_BRUSH
Definition: wingdi.h:902
#define GRAY_BRUSH
Definition: wingdi.h:898
#define SYSTEM_FIXED_FONT
Definition: wingdi.h:912
#define NULL_BRUSH
Definition: wingdi.h:901
#define OEM_FIXED_FONT
Definition: wingdi.h:910
#define BLACK_PEN
Definition: wingdi.h:903
#define NULL_PEN
Definition: wingdi.h:904
#define BLACK_BRUSH
Definition: wingdi.h:896
#define SYSTEM_FONT
Definition: wingdi.h:911
#define DEVICE_DEFAULT_FONT
Definition: wingdi.h:908