DxLock routine

The DxLock callback function is called when a client of the video miniport driver wants access to the frame buffer.

Syntax


PDX_LOCK DxLock;

DWORD DxLock(
   PVOID          HwDeviceExtension,
   PDDLOCKININFO  LockInInfo,
   PDDLOCKOUTINFO LockOutInfo
)
{ ... }

Parameters

HwDeviceExtension

Points to the miniport driver's device extension.

LockInInfo

Points to a DDLOCKININFO structure that contains the surface information for the lock.

LockOutInfo

Points to a DDLOCKOUTINFO structure that contains the surface in the frame buffer.

Return value

DxLock returns DX_OK if it succeeds; otherwise, it returns one of the following error values:

DXERR_GENERIC
DXERR_OUTOFCAPS
DXERR_UNSUPPORTED

Remarks

The DDLOCKININFO and DDLOCKOUTINFO structures contain surface information.

Requirements

Target platform

Desktop

Header

Dxmini.h (include Dxmini.h)

See also

DDLOCKININFO
DDLOCKOUTINFO

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft