VideoPortLockBuffer - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// video.h

VIDEOPORT_DEPRECATED VIDEOPORT_API PVOID VideoPortLockBuffer(
  [in] IN PVOID             HwDeviceExtension,
  [in] IN PVOID             BaseAddress,
  [in] IN ULONG             Length,
  [in] IN VP_LOCK_OPERATION Operation
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-video-videoportlockbuffer)

VideoPortLockBuffer function

Description

The VideoPortLockBuffer function probes the specified buffer, makes the buffer's memory pages resident in memory, and locks the physical pages mapped by the virtual address range.

Parameters

HwDeviceExtension [in]

Pointer to the miniport driver's device extension.

BaseAddress [in]

Specifies the virtual address of the buffer to be locked.

Length [in]

Specifies the length in bytes of the buffer to be locked.

Operation [in]

Specifies the type of operation for which the caller wants the access rights probed and the pages locked. The operation can be one of the following: VpReadAccess, VpWriteAccess, or VpModifyAccess.

Return value

Returns a pointer to a memory descriptor list (MDL), or a NULL pointer if the MDL for the memory to be locked cannot be allocated.

Remarks

To unlock the buffer, the video miniport driver should call VideoPortUnlockBuffer.

See also

VideoPortUnlockBuffer