VideoPortAcquireDeviceLock - NtDoc

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

VIDEOPORT_API VOID VideoPortAcquireDeviceLock(
  [in] IN PVOID HwDeviceExtension
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

VideoPortAcquireDeviceLock function

Description

The VideoPortAcquireDeviceLock function acquires the device lock maintained by the video port driver.

Parameters

HwDeviceExtension [in]

Pointer to the miniport driver's device extension.

Return value

None

Remarks

Typically, the video port driver guarantees threaded synchronization into the miniport driver through the use of a device lock. However, a miniport driver must perform its own synchronization when being accessed by a child device. That is, a miniport driver must perform synchronization in routines that it exposes through HwVidQueryInterface by acquiring the device lock maintained by the video port driver.

The miniport driver should release the device lock as quickly as possible by calling VideoPortReleaseDeviceLock.

See also

HwVidQueryInterface

VideoPortReleaseDeviceLock