Bewerken

Delen via


VideoPortDeleteSpinLock function (video.h)

The VideoPortDeleteSpinLock function deletes a given spin lock.

Syntax

VIDEOPORT_API VP_STATUS VideoPortDeleteSpinLock(
  [in] IN PVOID      HwDeviceExtension,
  [in] IN PSPIN_LOCK SpinLock
);

Parameters

[in] HwDeviceExtension

Pointer to the miniport driver's device extension.

[in] SpinLock

Pointer to the spin lock to delete.

Return value

If the spin lock is successfully deleted, VideoPortDeleteSpinLock returns NO_ERROR.

Remarks

A miniport driver uses this function to delete a spin lock that was previously created in a call to VideoPortCreateSpinLock.

This routine cannot be called from an ISR or from a VideoPortSynchronizeExecution callback requested where the Priority parameter is set to either VpMediumPriority or VpHighPriority.

Requirements

Requirement Value
Minimum supported client Available in Windows XP and later versions of the Windows operating systems.
Target Platform Desktop
Header video.h (include Video.h)
Library Videoprt.lib
DLL Videoprt.sys
IRQL <=DISPATCH_LEVEL

See also

VideoPortCreateSpinLock

VideoPortSynchronizeExecution