Freigeben über


BRUSHOBJ_pvAllocRbrush (Windows CE 5.0)

Send Feedback

This function allocates memory that the display driver requires for realization of a specified brush.

PVOID BRUSHOBJ_pvAllocRbrush(  BRUSHOBJ* pbo,  ULONG cj);

Parameters

  • pbo
    [in] Pointer to the BRUSHOBJ structure for which the realization is to be allocated.
  • cj
    [in] Size, in bytes, required for the realization.

Return Values

If the function call succeeds, this function returns a pointer to the allocated memory. Otherwise, this function returns NULL and logs an error code.

Remarks

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

An implementation of a brush realization should call the BRUSHOBJ_pvAllocRbrush function after calling the DrvRealizeBrush function.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winddi.h.
Link Library: Ddi_ati_lib.lib, Ddi_flat_lib.lib, Ddi_gx_lib.lib, Ddi_mq200_lib.lib, Ddi_nop_lib.lib, Ddi_rflat_lib.lib, Ddi_rgx_lib.lib, or Ddi_tvia5_lib.lib.

See Also

GDI Functions for Display Drivers | DrvRealizeBrush

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.