IWDTFPNPAction2 interface

Defines operations and properties for the Plug and Play (PNP) device-related test interfaces.

Members

The IWDTFPNPAction2 interface inherits from IWDTFActionWithCustomActions2. IWDTFPNPAction2 also has these types of members:

Methods

The IWDTFPNPAction2 interface has these methods.

MethodDescription
DisableDevice

Disables the target device.

EDTCancelRemoveDevice

Sends an IRP_MN_CANCEL_REMOVE_DEVICE event to the target device.

EDTCancelStopDevice

Sends an IRP_MN_CANCEL_STOP_DEVICE event to the target device.

EDTSurpriseRemoveDevice

Sends an IRP_MN_SURPRISE_REMOVAL event to the target device.

EDTTryStopDevice

Attempts to send an IRP_MN_STOP_DEVICE event to the target device.

EDTTryStopDeviceFailRestart

Attempts to send an IRP_MN_STOP_DEVICE event to the target device and then fail the subsequent device restart.

EDTTryStopDeviceRequestNewResources

Attempts to send an IRP_MN_STOP_DEVICE event to the target device and assign new resources to the target device.

EnableDevice

Enables the target device.

RemoveDevice

Removes the device.

RequestEjectDevice

Initiates a device eject.

RescanDevice

Rescans the target device.

RescanParentDevice

Rescans and re-enumerates the target device's parent device.

RestartDevice

Initiates a device restart.

 

WDTF ProgID

The WDTF ProgId for the IWDTFPNPAction2 interface is "PNP". You must specify the WDTF ProgId when you call the HasInterface, GetInterface, GetInterfaces, and GetInterfacesIfExist methods.


m_PNPDeviceAction = (IWDTFPNPAction2)m_TestDevice.GetInterface("PNP");

Requirements

Minimum supported client

Windows XP Professional

Minimum supported server

Windows Server 2008

Namespace

Microsoft.WDTF

Assembly

WDTFDriverPNPAction.Interop.dll

Header

WDTFPNPAction.h

IDL

WDTFPNPAction.idl

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft