*** empty log message ***
[reactos.git] / reactos / subsys / win32k / eng / surface.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * PURPOSE: GDI Driver Surace Functions
5 * FILE: subsys/win32k/eng/surface.c
6 * PROGRAMER: Jason Filby
7 * REVISION HISTORY:
8 * 3/7/1999: Created
9 */
10
11 #include <ddk/winddi.h>
12
13 BOOL EngAssociateSurface(IN HSURF Surface,
14 IN HDEV Dev,
15 IN ULONG Hooks)
16 {
17 SURFOBJ *Surfobj;
18
19 // Point our new Surfobj to hsurf (assumes hsurf is value returned by
20 // ExAllocatePool)
21 Surfobj = Surface;
22
23 // Associate the hdev
24 Surfobj->hdev = Dev;
25
26 // FIXME: Hook up the specified functions
27 }
28
29 BOOL APIENTRY EngDeleteSurface(HSURF hsurf)
30 {
31 // Assume the hsurf was the value returned by ExAllocatePool
32 ExFreePool(hsurf);
33 }
34
35 SURFOBJ *EngLockSurface(IN HSURF hsurf)
36 {
37 /* We assume that hsurf is the value returned from ExAllocatePool */
38 return EngAllocUserMem(NULL, sizeof(SURFOBJ), "");
39 }
40
41 VOID EngUnlockSurface(IN SURFOBJ *pso)
42 {
43 EngFreeUserMem(sizeof(pso));
44 }