NDIS_SET_POLL_NOTIFICATION回呼函式 (poll.h)
迷你埠驅動程式會實作 NdisSetPollNotification 回呼函式,以啟用或停用與 Poll 物件相關聯的中斷。
語法
NDIS_SET_POLL_NOTIFICATION NdisSetPollNotification;
void() NdisSetPollNotification(
[_In_] void *Context,
[_Inout_] NDIS_POLL_NOTIFICATION *Notification
)
{...}
參數
[_In_] Context
驅動程式在建立Poll物件時提供之內容資訊的指標。
[_Inout_] Notification
包含 Poll 物件的中斷狀態之 NDIS_POLL_NOTIFICATION 結構的指標。
言論
迷你埠驅動程式會在迷你埠配接器初始化期間註冊 NdisSetPollNotification 回呼。 驅動程式會在呼叫 NdisRegisterPollPoll之前,於 NDIS_POLL_CHARACTERISTICS 結構的 SetPollNotificationHandler 參數指定 NdisSetPollNotification 函式的進入點。
NDIS 通常會在偵測到迷你埠驅動程式未在 NdisPoll進行進度時,叫用 NdisSetPollNotification 回呼。 NDIS 使用 NdisSetPollNotification 告訴驅動程式,它會停止叫用 NdisPoll。 當新工作準備好處理時,驅動程式應該叫用 NdisRequestPoll。
要求
要求 | 價值 |
---|---|
最低支援的用戶端 | Windows 11 |
支援的最低伺服器 | Windows Server 2022 |
標頭 | poll.h (include ndis.h) |
IRQL | <= DISPATCH_LEVEL |