RMDestroyDetected

This service is supported by both rminfo.dll and rmcalls.lib. It deletes previously detected devices found by snoopers or bus enumerators including the PnP device handle and any resources reserved for that handle.

Syntax
RMDestroyDetected(hDriver, phDetected);

Parameters

 * hDriver (HDRIVER) - input : Driver handle of the enumerator/snooper driver creating this adapter.


 * phDetected (PHDETECTED) - output : Pointer to the variable to receive the returned detected device handle.

Return Code

 * rc (APIRET) - returns : On systems where the Resource Manager driver is not installed, the library interface code will return RMRC_NOT_INSTALLED.


 * RMRC_BAD_DETECTHANDLE
 * RMRC_SUCCESS

Remarks
The node to be destroyed cannot be a previously detected handle.

C

 * 1) include 
 * 2) include 

HDRIVER      hDriver; PHDETECTED   phDetected; APIRET       rc;

rc = RMDestroyDetected(hDriver, phDetected); 