Skip to content

Latest commit

 

History

History
82 lines (61 loc) · 3.25 KB

nf-video-videoportwaitforsingleobject.md

File metadata and controls

82 lines (61 loc) · 3.25 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:video.VideoPortWaitForSingleObject
VideoPortWaitForSingleObject function (video.h)
The VideoPortWaitForSingleObject function puts the current thread into a wait state until the given dispatch object is set to the signaled state, or (optionally) until the wait times out.
display\videoportwaitforsingleobject.htm
display
05/10/2018
VideoPortWaitForSingleObject function
VideoPortWaitForSingleObject, VideoPortWaitForSingleObject function [Display Devices], VideoPort_Functions_a1678f59-0c1c-4b0a-b1e6-2dbb71c8a7c2.xml, display.videoportwaitforsingleobject, video/VideoPortWaitForSingleObject
video.h
Video.h
Desktop
Available in Windows XP and later versions of the Windows operating systems.
Videoprt.lib
Videoprt.sys
<= DISPATCH_LEVEL (see Remarks section)
Windows
VideoPortWaitForSingleObject
video/VideoPortWaitForSingleObject
APIRef
kbSyntax
DllExport
Videoprt.sys
VideoPortWaitForSingleObject

VideoPortWaitForSingleObject function

-description

The VideoPortWaitForSingleObject function puts the current thread into a wait state until the given dispatch object is set to the signaled state, or (optionally) until the wait times out.

-parameters

-param HwDeviceExtension [in]

Pointer to the miniport driver's device extension.

-param Object [in]

Pointer to the event object.

-param Timeout [in]

(Optional) Pointer to a time-out value that specifies the absolute or relative time at which the wait is to be completed. A negative value specifies a wait interval relative to the current time. The value should be expressed in units of 100 nanoseconds. Absolute expiration times track any changes in the system time; relative expiration times are not affected by system time changes.

-returns

VideoPortWaitForSingleObject returns one of the following values:

Return code Description
ERROR_INVALID_PARAMETER One of the parameters is invalid or the call attempted to wait for a mapped user event.
NO_ERROR The event object specified in the pObject parameter satisfied the wait.
WAIT_TIMEOUT A time-out occurred before the event object was set to the signaled state. This value can be returned when the specified set of wait conditions cannot be immediately met and Timeout is set to zero.

-remarks

The miniport driver should not attempt to wait for a mapped user event.

Callers of VideoPortWaitForSingleObject must be running at IRQL <= DISPATCH_LEVEL. Usually, the caller will be running at IRQL = PASSIVE_LEVEL and in a nonarbitrary thread context. A call to this function while running at IRQL = DISPATCH_LEVEL is valid if and only if the caller specifies a Timeout value of zero. That is, a miniport driver must not wait for a nonzero interval at IRQL = DISPATCH_LEVEL.