// wdm.h
typedef struct _DEVICE_INTERFACE_CHANGE_NOTIFICATION {
USHORT Version;
USHORT Size;
GUID Event;
GUID InterfaceClassGuid;
PUNICODE_STRING SymbolicLinkName;
} DEVICE_INTERFACE_CHANGE_NOTIFICATION, *PDEVICE_INTERFACE_CHANGE_NOTIFICATION;
View the official Windows Driver Kit DDI referenceNo description available.
The DEVICE_INTERFACE_CHANGE_NOTIFICATION structure describes a device interface that has been enabled (arrived) or disabled (removed). The PnP manager sends this structure to a driver that registered a callback routine for notification of EventCategoryDeviceInterfaceChange 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_DEVICE_INTERFACE_ARRIVAL or GUID_DEVICE_INTERFACE_REMOVAL. The GUIDs are defined in Wdmguid.h.
InterfaceClassGuidSpecifies the class of the device interface that has just been enabled or disabled.
SymbolicLinkNamePointer to a Unicode string that contains the name of the symbolic link for the device interface.
This structure is allocated from paged memory.
IoRegisterPlugPlayNotification
TARGET_DEVICE_REMOVAL_NOTIFICATION