VideoPortCreateSpinLock function

The VideoPortCreateSpinLock function creates a spin lock.

Syntax


VP_STATUS VideoPortCreateSpinLock(
  _In_  PVOID      HwDeviceExtension,
  _Out_ PSPIN_LOCK *SpinLock
);

Parameters

HwDeviceExtension [in]

Pointer to the miniport driver's device extension.

SpinLock [out]

Pointer to a memory location that will receive a pointer to the newly created spin lock.

Return value

On success the function returns NO_ERROR. If an error occurs, the function returns an appropriate error code.

Remarks

This routine must be called before an initial call to VideoPortAcquireSpinLock or to any other support routine that requires a spin lock as an argument.

Requirements

Target platform

Desktop

Version

Available in Windows XP and later versions of the Windows operating systems.

Header

Video.h (include Video.h)

Library

Videoprt.lib

DLL

Videoprt.sys

IRQL

PASSIVE_LEVEL

See also

VideoPortDeleteSpinLock
VideoPortAcquireSpinLock

 

 

Send comments about this topic to Microsoft

Show: