驱动程序通过调用 IoRegisterPlugPlayNotification 注册硬件配置文件更改的通知。
以下信息适用于调用此例程以获取硬件配置文件更改通知:
指定 EventCategoryHardwareProfileChange 的 EventCategory。
EventCategoryData 必须为 NULL。
指定驱动程序定义的 上下文(如果适用),PnP 管理器将传递给回调例程。
驱动程序使用 IoRegisterPlugPlayNotification 返回的 NotificationEntry 调用 IoUnregisterPlugPlayNotification 来删除通知注册。