VideoPortSynchronizeExecution - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// video.h

VIDEOPORT_DEPRECATED BOOLEAN VIDEOPORT_API VideoPortSynchronizeExecution(
  PVOID                         HwDeviceExtension,
  VIDEO_SYNCHRONIZE_PRIORITY    Priority,
  PMINIPORT_SYNCHRONIZE_ROUTINE SynchronizeRoutine,
  PVOID                         Context
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-video-videoportsynchronizeexecution)

VideoPortSynchronizeExecution function

Description

The VideoPortSynchronizeExecution function synchronizes the execution of a miniport driver-supplied HwVidSynchronizeExecutionCallback function with the miniport driver's HwVidInterrupt function, if any. Otherwise, it runs HwVidSynchronizeExecutionCallback at a raised priority.

Parameters

HwDeviceExtension

Pointer to the miniport driver's device extension.

Priority

Specifies the type of priority at which the given SynchronizeRoutine must be run, as one of the following:

SynchronizeRoutine

Pointer to the miniport driver's HwVidSynchronizeExecutionCallback function.

Context

Pointer to a caller-supplied context to be passed to the miniport driver's HwVidSynchronizeExecutionCallback function. This pointer can be NULL.

Return value

If the operation succeeds, VideoPortSynchronizeExecution returns TRUE.

Remarks

Miniport drivers seldom call this routine unless either of the following conditions hold:

A caller should specify the lowest practical Priority value for the work HwVidSynchronizeExecutionCallback must do. Any CallbackRoutine that is run at a high hardware priority (VpMediumPriority or VpHighPriority) should return control as quickly as possible. A driver with such a high-priority HwVidSynchronizeExecutionCallback function should be designed to do as much work as possible in every other driver function except one of both of its HwVidSynchronizeExecutionCallback and HwVidInterrupt functions.

Callers of VideoPortSynchronizeExecution must be running at IRQL

See also

HwVidInterrupt

HwVidSynchronizeExecutionCallback