ReactOS  0.4.15-dev-3173-g40ee59d
driverobj.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _EDRIVEROBJ
 

Macros

#define DRIVEROBJ_AllocObjectWithHandle()   ((PEDRIVEROBJ)GDIOBJ_AllocObjWithHandle(GDI_OBJECT_TYPE_DRIVEROBJ, sizeof(EDRIVEROBJ)))
 
#define DRIVEROBJ_UnlockObject(pdo)   GDIOBJ_vUnlockObject((POBJ)pdo)
 

Typedefs

typedef struct _EDRIVEROBJ EDRIVEROBJ
 
typedef struct _EDRIVEROBJPEDRIVEROBJ
 
typedef DRIVEROBJPDRIVEROBJ
 

Functions

VOID NTAPI DRIVEROBJ_vCleanup (PVOID pObject)
 DRIVEROBJ cleanup function. More...
 
FORCEINLINE PEDRIVEROBJ DRIVEROBJ_TryLockObject (HDRVOBJ hdo)
 

Macro Definition Documentation

◆ DRIVEROBJ_AllocObjectWithHandle

#define DRIVEROBJ_AllocObjectWithHandle ( )    ((PEDRIVEROBJ)GDIOBJ_AllocObjWithHandle(GDI_OBJECT_TYPE_DRIVEROBJ, sizeof(EDRIVEROBJ)))

Definition at line 17 of file driverobj.h.

◆ DRIVEROBJ_UnlockObject

#define DRIVEROBJ_UnlockObject (   pdo)    GDIOBJ_vUnlockObject((POBJ)pdo)

Definition at line 18 of file driverobj.h.

Typedef Documentation

◆ EDRIVEROBJ

◆ PDRIVEROBJ

Definition at line 11 of file driverobj.h.

◆ PEDRIVEROBJ

Function Documentation

◆ DRIVEROBJ_TryLockObject()

FORCEINLINE PEDRIVEROBJ DRIVEROBJ_TryLockObject ( HDRVOBJ  hdo)

Definition at line 22 of file driverobj.h.

23 {
25 }
PGDIOBJ NTAPI GDIOBJ_TryLockObject(HGDIOBJ hobj, UCHAR objt)
Definition: gdiobj.c:757

Referenced by EngDeleteDriverObj(), EngLockDriverObj(), and EngUnlockDriverObj().

◆ DRIVEROBJ_vCleanup()

VOID NTAPI DRIVEROBJ_vCleanup ( PVOID  pObject)

DRIVEROBJ cleanup function.

Internal interface

Definition at line 24 of file driverobj.c.

25 {
26  PEDRIVEROBJ pedo = pObject;
27  FREEOBJPROC pFreeProc;
28 
29  pFreeProc = pedo->drvobj.pFreeProc;
30  if (pFreeProc)
31  {
32  NT_VERIFY(pFreeProc(&pedo->drvobj));
33  }
34 }
FxObject * pObject
FREEOBJPROC pFreeProc
Definition: winddi.h:410
DRIVEROBJ drvobj
Definition: driverobj.h:7
#define NT_VERIFY(exp)
Definition: rtlfuncs.h:3287