DD_GETAVAILDRIVERMEMORYDATA structure (ddrawint.h)

The DD_GETAVAILDRIVERMEMORYDATA structure contains the information needed by the driver to query and return the amount of free memory.

Syntax

typedef struct _DD_GETAVAILDRIVERMEMORYDATA {
  PDD_DIRECTDRAW_GLOBAL lpDD;
  DDSCAPS               DDSCaps;
  DWORD                 dwTotal;
  DWORD                 dwFree;
  HRESULT               ddRVal;
  VOID                  *GetAvailDriverMemory;
} *PDD_GETAVAILDRIVERMEMORYDATA, DD_GETAVAILDRIVERMEMORYDATA;

Members

lpDD

Points to the DD_DIRECTDRAW_GLOBAL structure that describes the driver's device.

DDSCaps

Points to a DDSCAPS structure that describes the type of surface for which memory availability is being queried.

dwTotal

Specifies the location in which the driver returns the number of bytes of driver-managed memory that can be used for surfaces of the type described by DDSCaps.

dwFree

Specifies the location in which the driver returns the amount of free memory in bytes for the surface type described by DDSCaps.

ddRVal

Specifies the location in which the driver writes the return value of the DdGetAvailDriverMemory callback. A return code of DD_OK indicates success. For more information, see Return Values for DirectDraw.

GetAvailDriverMemory

Used by the Microsoft DirectDraw API and should not be filled in by the driver.

Requirements

Requirement Value
Header ddrawint.h (include Winddi.h)

See also

DdGetAvailDriverMemory