-
-
[求助]RegisterForDeviceNotifications
-
发表于:
2008-11-21 05:50
8067
-
[求助]RegisterForDeviceNotifications
typedef struct _ACPI_INTERFACE_STANDARD {
//
// Generic interface header
//
USHORT Size;
USHORT Version;
PVOID Context;
PINTERFACE_REFERENCE InterfaceReference;
PINTERFACE_DEREFERENCE InterfaceDereference;
//
// ACPI interfaces
//
PGPE_CONNECT_VECTOR GpeConnectVector;
PGPE_DISCONNECT_VECTOR GpeDisconnectVector;
PGPE_ENABLE_EVENT GpeEnableEvent;
PGPE_DISABLE_EVENT GpeDisableEvent;
PGPE_CLEAR_STATUS GpeClearStatus;
PREGISTER_FOR_DEVICE_NOTIFICATIONS RegisterForDeviceNotifications;
PUNREGISTER_FOR_DEVICE_NOTIFICATIONS UnregisterForDeviceNotifications;
} ACPI_INTERFACE_STANDARD, *PACPI_INTERFACE_STANDARD;
在WDM里面找到这个有趣的struct,看起来是可以透过它来向ACPI driver Register for notification(当然在此之前必须发irp_mj_query_interface给ACPI driver,iocalldriver执行ok),不过对于下述routine的第三个参数意义不甚明了,不知道有没有高手愿意指教(自己反复try了很多次,结果都是blue screen)
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课