BRUSHOBJ_pvAllocRbrush

PVOID BRUSHOBJ_pvAllocRbrush(

    IN BRUSHOBJ  *pbo,
   IN ULONG  cj
  );

BRUSHOBJ_pvAllocRbrush allocates memory for the driver’s realization of a specified brush.

Parameters

pbo

Points 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.

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