PEPCALLBACKNOTIFYACPI 回呼函式 (pepfx.h)

AcceptAcpiNotification 事件回呼例程會處理來自 Windows 電源管理架構的 ACPI 通知, (PoFx) 。

語法

PEPCALLBACKNOTIFYACPI Pepcallbacknotifyacpi;

BOOLEAN Pepcallbacknotifyacpi(
  [in]                ULONG Notification,
  [in, out, optional] PVOID Data
)
{...}

參數

[in] Notification

ACPI 通知標識碼。 此參數會指定 PoFx 正在傳送的 ACPI 通知類型。 如需 ACPI 通知識別碼的清單,請參閱 ACPI 通知

[in, out, optional] Data

PoFx 配置結構的指標,其中包含此通知的輸入和輸出數據。 此結構的類型取決於 Notification 所指定的通知標識符。 如需針對各種 ACPI 通知標識碼定義的結構類型清單,請參閱 ACPI 通知

傳回值

如果 AcceptAcpiNotification 例程處理通知,則必須傳回 TRUE,否則為 FALSE。

備註

此例程是由裝置的平台擴充功能外掛程式 (PEP) 所實作。 PEP_INFORMATION 結構的 AcceptAcpiNotification 成員是 AcceptAcpiNotification 例程的指標。 PEP 會呼叫 PoFxRegisterPluginPoFxRegisterPluginEx 例程,向 PoFx 註冊 PEP 的 AcceptAcpiNotification 例程。

呼叫 PEP AcceptAcpiNotification 例程的 IRQL 會根據所傳送的通知類型而有所不同。 通知類型是由 Notification 參數所指定。 如需傳送每個通知類型之 IRQL 的詳細資訊,請參閱 ACPI 通知下的個別參考頁面。

規格需求

需求
最低支援的用戶端 從Windows 10 開始支援。
目標平台 Windows
標頭 pepfx.h (包含 Pep_x.h)
IRQL <= HIGH_LEVEL

另請參閱

PEP_INFORMATION

PoFxRegisterPlugin

PoFxRegisterPluginEx