mirror of
https://github.com/reactos/reactos.git
synced 2024-10-29 19:13:58 +00:00
c16ad873a6
svn path=/branches/reactos-yarotows/; revision=46279
21 lines
651 B
C
21 lines
651 B
C
#pragma once
|
|
|
|
#include "gdiobj.h"
|
|
|
|
/* Object structure */
|
|
typedef struct _EDRIVEROBJ
|
|
{
|
|
BASEOBJECT baseobj;
|
|
DRIVEROBJ drvobj;
|
|
PVOID reserved;
|
|
} EDRIVEROBJ, *PEDRIVEROBJ;
|
|
|
|
/* Cleanup function */
|
|
BOOL INTERNAL_CALL DRIVEROBJ_Cleanup(PVOID pObject);
|
|
|
|
|
|
#define DRIVEROBJ_AllocObjectWithHandle() ((PEDRIVEROBJ)GDIOBJ_AllocObjWithHandle(GDI_OBJECT_TYPE_DRIVEROBJ))
|
|
#define DRIVEROBJ_FreeObjectByHandle(hdo) GDIOBJ_FreeObjByHandle((HGDIOBJ)hdo, GDI_OBJECT_TYPE_DRIVEROBJ)
|
|
#define DRIVEROBJ_LockObject(hdo) ((PEDRIVEROBJ)GDIOBJ_LockObj((HGDIOBJ)hdo, GDI_OBJECT_TYPE_DRIVEROBJ))
|
|
#define DRIVEROBJ_UnlockObject(pdo) GDIOBJ_UnlockObjByPtr((POBJ)pdo)
|