ReactOS  0.4.15-dev-5459-gb85f005
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 
46 INT
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 IN
Definition: typedefs.h:39
PPDEVOBJ FASTCALL IntEnumHDev(VOID)
Definition: device.c:38
#define TRUE
Definition: types.h:120
PSURFACE NTAPI PDEVOBJ_pSurface(PPDEVOBJ ppdev)
Definition: pdevobj.c:310
static HDC
Definition: imagelist.c:92
PDC defaultDCstate
Definition: device.c:14
char * LPSTR
Definition: xmlstorage.h:182
#define FASTCALL
Definition: nt_native.h:50
int32_t INT
Definition: typedefs.h:58
INT APIENTRY NtGdiDrawEscape(IN HDC hdc, IN INT iEsc, IN INT cjIn, IN OPTIONAL LPSTR pjIn)
Definition: device.c:48
unsigned int BOOL
Definition: ntddk_ex.h:94
VOID NTAPI PDEVOBJ_vGetDeviceCaps(IN PPDEVOBJ ppdev, OUT PDEVCAPS pDevCaps)
Definition: pdevobj.c:964
#define GdiHandleTable
Definition: win32nt.h:35
Definition: polytest.cpp:40
BOOL FASTCALL IntCreatePrimarySurface(VOID)
Definition: device.c:17
HDC hdc
Definition: main.c:9
_In_ ULONG iEsc
Definition: winddi.h:3529
_In_ ULONG _In_ CLIPOBJ _In_ RECTL _In_ ULONG cjIn
Definition: winddi.h:3529
PPDEVOBJ ppdevGlobal
Definition: mdevobj.h:16
PMDEVOBJ gpmdev
Definition: mdevobj.c:14
#define NULL
Definition: types.h:112
PSURFACE pSurface
Definition: pdevobj.h:124
#define UNIMPLEMENTED
Definition: debug.h:115
#define DPRINT
Definition: sndvol32.h:71
VOID FASTCALL IntDestroyPrimarySurface(VOID)
Definition: device.c:32
#define APIENTRY
Definition: api.h:79
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68