IWDTFPNPActions2::EDTTryStopDevice method (wdtfpnpaction.h)
Attempts to send an IRP_MN_STOP_DEVICE event to the target device.
Syntax
HRESULT EDTTryStopDevice(
[out, retval] VARIANT_BOOL *pbSuccess
);
Parameters
[out, retval] pbSuccess
True if the operation succeeds; otherwise, false.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If your device does not consume hardware resources but you still wish to attempt to test how the drivers and applications handle the PnP resource rebalance, you can instead run the EDTTryStopDevice method on a parent device, grandparent, etc., which does consume hardware resources. For example, if your device is a USB mouse, you can run EDTTryStopDevice on the parent USB controller instead.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | wdtfpnpaction.h |