共用方式為


PEPCALLBACKNOTIFYACPI 回呼函式 (pepfx.h)

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

語法

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 開始支援。
目標平臺 窗戶
標頭 pepfx.h (include Pep_x.h)
IRQL <= HIGH_LEVEL

另請參閱

PEP_INFORMATION

PoFxRegisterPlugin

PoFxRegisterPluginEx