共用方式為


DXGKDDI_MIRACAST_DESTROY_CONTEXT回呼函式 (dispmprt.h)

終結 Miracast 裝置的實例。

語法

DXGKDDI_MIRACAST_DESTROY_CONTEXT DxgkddiMiracastDestroyContext;

void DxgkddiMiracastDestroyContext(
  [in] PVOID DriverContext,
  [in] PVOID MiracastContext
)
{...}

參數

[in] DriverContext

與顯示配接器相關聯的內容區塊句柄。 顯示迷你埠驅動程式的 DxgkDdiAddDevice 函式先前提供此句柄給 DirectX 圖形核心子系統。

[in] MiracastContext

作系統所提供的Miracast裝置內容。 此內容先前是由驅動程式在呼叫 DxgkDdiMiracastCreateContext 函式時提供。

傳回值

沒有

言論

呼叫此函式時,顯示迷你埠驅動程式應該釋放處理 DxgkDdiMiracastCreateContext 函式時所配置的所有內核模式資源,而且應該立即將監視器離開熱插偵測 (HPD) 感知值傳送至作系統。

作系統保證,在呼叫此函式之後,不會再呼叫 DxgkDdiMiracastIoControl 函式。

如果 Miracast 裝置在 DxgkDdiCommitVidPn 函式完成之前中斷連線,而此 Miracast 目標上仍發生目前作業,則顯示迷你埠驅動程式不應傳送任何數據給使用者模式 Miracast 驅動程式。

如果使用者模式 StopMiracastSession 函式需要太長的時間才能完成,則作系統會在使用者模式 Miracast 驅動程式仍在執行時呼叫 DxgkDdiMiracastDestroyContext。 在此情況下,作系統會封鎖對使用者模式的任何進一步呼叫,MiracastIoControl 函式。

同步處理

作系統會將 DxgkDdiMiracastCreateContextDxgkDdiMiracastDestroyContextDxgkDdiMiracastIoControl 函式設為 Miracast 類別。 作系統保證這些函式遵循 線程和同步處理第二層中所定義的第二層同步處理模式。 當在另一個線程內容上呼叫其他層級 0、1 或其他層級 2 函式類別時,可以呼叫這些函式。 不過,一次只能呼叫其中一個層級 2 Miracast 類別函式。

要求

要求 價值
最低支援的用戶端 Windows 8.1
支援的最低伺服器 Windows Server 2012 R2
目標平臺 桌面
標頭 dispmprt.h (包括 Dispmprt.h)
IRQL PASSIVE_LEVEL

另請參閱

DxgkDdiAddDevice

DxgkDdiCommitVidPn

DxgkDdiMiracastCreateContext

DxgkDdiMiracastIoControl

MiracastIoControl

StopMiracastSession