RMDestroyDetected: Difference between revisions
Appearance
Created page with "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 a..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
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. | 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== | ==Syntax== | ||
RMDestroyDetected(hDriver, phDetected) | RMDestroyDetected(hDriver, phDetected) | ||
==Parameters== | ==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. | |||
; phDetected (PHDETECTED) - output : Pointer to the variable to receive the returned detected device handle. | |||
==Return Code== | ==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_BAD_DETECTHANDLE | ||
* RMRC_SUCCESS | * RMRC_SUCCESS | ||
==Remarks== | ==Remarks== | ||
The node to be destroyed cannot be a previously detected handle. | The node to be destroyed cannot be a previously detected handle. | ||
==Example Code== | ==Example Code== | ||
;C | |||
<PRE> | <PRE> | ||
#include <os2.h> | #include <os2.h> |
Latest revision as of 17:08, 5 April 2025
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.
Example Code
- C
#include <os2.h> #include <rmcalls.h> HDRIVER hDriver; PHDETECTED phDetected; APIRET rc; rc = RMDestroyDetected(hDriver, phDetected);