VIDEOMEMORY

typedef struct _VIDEOMEMORY{
    DWORD              dwFlags;
    FLATPTR            fpStart;
    union{
        FLATPT         fpEnd;
        DWORD          dwWidth;
    };
    DDSCAPS            ddsCaps;
    DDSCAPS            ddsCapsAlt;
        DWORD          dwHeight;
} VIDEOMEMORY;

The VIDEOMEMORY structure describes the size and capabilities of a chunk of video memory that the driver controls.

Members

dwFlags
Bitmask that describes the video memory. This member can be a bitwise-OR of any of the following:

Bitfield

Meaning

VIDMEM_ISLINEAR

The video memory is a continguous block of memory.

VIDMEM_ISRECTANGULAR

The video memory is rectangular.

fpStart
Pointer to the beginning of a chunk of memory.
fpEnd
Pointer to the end of the memory chunk to which fpStart points.
dwWidth
Width of the chunk of memory pointed to by fpStart. This member should be used to describe rectangular memory regions.
ddsCaps
DDSCAPS structure in which the driver returns the capabilities of a surface.
ddsCapsAlt
DDSCAPS structure in which the driver returns
dwHeight
Height of the chunk of memory pointed to by fpStart.

Comments

The driver returns a list of VIDEOMEMORY structures from its DrvGetDirectDrawInfo implementation. This list provides a complete description of the offscreen memory that the driver controls.