// video.h
VIDEOPORT_API VP_STATUS VideoPortCreateSpinLock(
[in] IN PVOID HwDeviceExtension,
[out] OUT PSPIN_LOCK *SpinLock
);
View the official Windows Driver Kit DDI referenceNo description available.
The VideoPortCreateSpinLock function creates a spin lock.
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.
On success the function returns NO_ERROR. If an error occurs, the function returns an appropriate error code.
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.