VideoPortCreateSpinLock function (video.h)
The VideoPortCreateSpinLock function creates a spin lock.
Syntax
VIDEOPORT_API VP_STATUS VideoPortCreateSpinLock(
[in] IN PVOID HwDeviceExtension,
[out] OUT PSPIN_LOCK *SpinLock
);
Parameters
[in] HwDeviceExtension
Pointer to the miniport driver's device extension.
[out] SpinLock
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
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 | PASSIVE_LEVEL |