Export (0) Print
Expand All
IRP
MDL
Expand Minimize

TARGET_DEVICE_REMOVAL_NOTIFICATION structure

The TARGET_DEVICE_REMOVAL_NOTIFICATION structure describes a device-removal event. The PnP manager sends this structure to a driver that registered a callback routine for notification of EventCategoryTargetDeviceChange events.

Syntax


typedef struct _TARGET_DEVICE_REMOVAL_NOTIFICATION {
  USHORT       Version;
  USHORT       Size;
  GUID         Event;
  PFILE_OBJECT FileObject;
} TARGET_DEVICE_REMOVAL_NOTIFICATION, *PTARGET_DEVICE_REMOVAL_NOTIFICATION;

Members

Version

Specifies the version of the data structure, currently set to 1.

Size

Specifies the size of the structure, in bytes, including the size of the standard first three members plus the event-specific data.

Event

Specifies a GUID identifying the event: GUID_TARGET_DEVICE_QUERY_REMOVE, GUID_TARGET_DEVICE_REMOVE_COMPLETE, or GUID_TARGET_DEVICE_REMOVE_CANCELLED. These GUIDs are defined in Wdmguid.h.

FileObject

Pointer to a file object for the device.

Requirements

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

See also

DEVICE_INTERFACE_CHANGE_NOTIFICATION
HWPROFILE_CHANGE_NOTIFICATION
IoRegisterPlugPlayNotification
TARGET_DEVICE_CUSTOM_NOTIFICATION

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft