ReactOS 0.4.15-dev-8093-g3285f69
device.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * PURPOSE: Functions for creation and destruction of DCs
5 * FILE: win32ss/gdi/ntgdi/device.c
6 * PROGRAMER: Timo Kreuzer (timo.kreuzer@rectos.org)
7 */
8
9#include <win32k.h>
10
11#define NDEBUG
12#include <debug.h>
13
15
18{
19 /* Create surface */
21
22 DPRINT("IntCreatePrimarySurface, ppdevGlobal=%p, ppdevGlobal->pSurface = %p\n",
24
25 // Init Primary Displays Device Capabilities.
27
28 return TRUE;
29}
30
33{
35}
36
39{
40// I guess we will soon have more than one primary surface.
41// This will do for now.
42 return gpmdev->ppdevGlobal;
43}
44
45
46INT
49 IN HDC hdc,
50 IN INT iEsc,
51 IN INT cjIn,
52 IN OPTIONAL LPSTR pjIn)
53{
55 return 0;
56}
57
58
#define UNIMPLEMENTED
Definition: debug.h:118
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define APIENTRY
Definition: api.h:79
unsigned int BOOL
Definition: ntddk_ex.h:94
PMDEVOBJ gpmdev
Definition: mdevobj.c:14
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
#define FASTCALL
Definition: nt_native.h:50
VOID NTAPI PDEVOBJ_vGetDeviceCaps(IN PPDEVOBJ ppdev, OUT PDEVCAPS pDevCaps)
Definition: pdevobj.c:1053
PSURFACE NTAPI PDEVOBJ_pSurface(PPDEVOBJ ppdev)
Definition: pdevobj.c:311
#define DPRINT
Definition: sndvol32.h:73
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
Definition: polytest.cpp:41
PPDEVOBJ ppdevGlobal
Definition: mdevobj.h:16
PSURFACE pSurface
Definition: pdevobj.h:124
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
#define GdiHandleTable
Definition: win32nt.h:37
BOOL FASTCALL IntCreatePrimarySurface(VOID)
Definition: device.c:17
PPDEVOBJ FASTCALL IntEnumHDev(VOID)
Definition: device.c:38
PDC defaultDCstate
Definition: device.c:14
INT APIENTRY NtGdiDrawEscape(IN HDC hdc, IN INT iEsc, IN INT cjIn, IN OPTIONAL LPSTR pjIn)
Definition: device.c:48
VOID FASTCALL IntDestroyPrimarySurface(VOID)
Definition: device.c:32
_In_ ULONG iEsc
Definition: winddi.h:3529
_In_ ULONG _In_ CLIPOBJ _In_ RECTL _In_ ULONG cjIn
Definition: winddi.h:3532
char * LPSTR
Definition: xmlstorage.h:182