Expand Minimize

DD_MAPMEMORYDATA structure

The DD_MAPMEMORYDATA structure contains the information necessary to map or unmap a frame buffer into user-mode memory.

Syntax


typedef struct _DD_MAPMEMORYDATA {
  PDD_DIRECTDRAW_GLOBAL lpDD;
  BOOL                  bMap;
  HANDLE                hProcess;
  FLATPTR               fpProcess;
  HRESULT               ddRVal;
} DD_MAPMEMORYDATA;

Members

lpDD

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

bMap

Specifies the memory operation that the driver should perform. A value of TRUE indicates that the driver should map memory; FALSE means that the driver should unmap memory.

hProcess

Handle to the process whose address space is affected.

fpProcess

Specifies the location in which the driver should return the base address of the process's memory-mapped space when bMap is TRUE. When bMap is FALSE, fpProcess contains the base address of the memory to be unmapped by the driver.

ddRVal

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

Requirements

Header

Ddrawint.h (include Winddi.h)

See also

DdMapMemory

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft