// wdm.h
typedef struct _HWPROFILE_CHANGE_NOTIFICATION {
USHORT Version;
USHORT Size;
GUID Event;
} HWPROFILE_CHANGE_NOTIFICATION, *PHWPROFILE_CHANGE_NOTIFICATION;
View the official Windows Driver Kit DDI referenceNo description available.
The HWPROFILE_CHANGE_NOTIFICATION structure describes an event related to a hardware profile configuration change. The PnP manager sends this structure to a driver that registered a callback routine for notification of EventCategoryHardwareProfileChange events.
VersionSpecifies the version of the data structure, currently 1.
SizeSpecifies the size of the structure, in bytes including the size of the standard first three members plus the event-specific data.
EventSpecifies a GUID identifying the event: GUID_HWPROFILE_QUERY_CHANGE, GUID_HWPROFILE_CHANGE_COMPLETE, or GUID_HWPROFILE_CHANGE_CANCELLED. The GUIDs are defined in Wdmguid.h.
There is no event-specific data for a hardware-profile-change event.
DEVICE_INTERFACE_CHANGE_NOTIFICATION
IoRegisterPlugPlayNotification
TARGET_DEVICE_REMOVAL_NOTIFICATION