PDX_LOCK callback function (dxmini.h)

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

Syntax

PDX_LOCK PdxLock;

DWORD PdxLock(
  PVOID unnamedParam1,
  PDDLOCKININFO unnamedParam2,
  PDDLOCKOUTINFO unnamedParam3
)
{...}

Parameters

unnamedParam1

Points to the miniport driver's device extension.

unnamedParam2

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

unnamedParam3

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:

Remarks

The DDLOCKININFO and DDLOCKOUTINFO structures contain surface information.

Requirements

Requirement Value
Target Platform Desktop
Header dxmini.h (include Dxmini.h)

See also

DDLOCKININFO

DDLOCKOUTINFO