Previous Next

BRUSHOBJ_pvAllocRbrush

The BRUSHOBJ_pvAllocRbrush function allocates memory for the driver's realization of a specified brush.

PVOID
  BRUSHOBJ_pvAllocRbrush(
    IN BRUSHOBJ  *pbo,
    IN ULONG  cj
    );

Parameters

pbo
Pointer to the BRUSHOBJ structure for which the realization is to be allocated.
cj
Specifies the size, in bytes, required for the realization.

Return Value

The return value is a pointer to the allocated memory if the function is successful. Otherwise, it is null, and an error code is logged.

Headers

Declared in winddi.h. Include winddi.h.

Comments

BRUSHOBJ_pvAllocRbrush allocates memory for the brush realization. GDI manages the memory and discards it when the brush is no longer needed.

This function should be called only by an implementation of a brush realization following a call to DrvRealizeBrush.

See Also

BRUSHOBJ, DrvRealizeBrush