共用方式為


PMINIPORT_SYNCHRONIZE_ROUTINE回呼函式 (video.h)

HwVidSynchronizeExecutionCallback 是選擇性的迷你埠驅動程式函式,會傳入呼叫 VideoPortSynchronizeExecution

語法

PMINIPORT_SYNCHRONIZE_ROUTINE PminiportSynchronizeRoutine;

BOOLEAN PminiportSynchronizeRoutine(
  PVOID Context
)
{...}

參數

Context

透過videoPortSynchronizeExecution 傳遞至回呼例程之內容數據的指標。 這通常是裝置延伸模組的指標,或裝置擴充功能內的位移。

傳回值

如果作業成功,HwVidSynchronizeExecutionCallback 會傳回 true

言論

具有一或多個與 HwVidInterrupt 函式共用記憶體的迷你埠驅動程式必須具有 HwVidSynchronizeExecutionCallback 函式。 任何與 HwVidInterrupt 共用記憶體的函式,都必須使用 HwVidSynchronizeExecutionCallback 函式呼叫 VideoPortSynchronizeExecutionExecution,以維護共用記憶體區域中數據的完整性。 也就是說,只有其中一個 HwVidSynchronizeExecutionCallbackHwVidInterrupt 函式可以在任何指定時間更新共用區域中的狀態。

不產生中斷之適配卡的迷你埠驅動程式也可以有 HwVidSynchronizeExecutionCallback 函式,以傳遞至 VideoPortSynchronizeExecution,當這類驅動程式需要以相對較高的運行時間優先順序完成某些重要工作時。 例如,具有 SvgaHwIoPortXxx 的 VGA 相容迷你埠驅動程式 函式(請參閱 SVGA Functions) 可能會有 HwVidSynchronizeExecutionCallback 函式,負責將驅動程式緩衝處理和已驗證的應用程式發行 I/O 傳送給配接器。

HwVidSynchronizeExecutionCallback 不得設為可分頁。

要求

要求 價值
目標平臺 桌面
標頭 video.h (include Video.h)

另請參閱

HwVidInterrupt

SVGA 函式

VideoPortSynchronizeExecution