RPMUnloadAlternateDriverForDevice routine
The RPMUnloadAlternateDriverForDevice routine unloads the client-specified alternate driver for a device that is connected on a particular hub and connection index.
Syntax
NTSTATUS RPMUnloadAlternateDriverForDevice( _In_ HANDLE RegisteredDriver, _In_ ULONG64 HubID, _In_ ULONG ConnectionIndex );
Parameters
- RegisteredDriver [in]
- 
A handle to the registered driver to be unloaded for the device. This handle is returned by a call to the RPMRegisterAlternateDriver routine. 
- HubID [in]
- 
A unique identifier for the hub to which the device is connected. 
- ConnectionIndex [in]
- 
The connection index on which the device is connected. 
Return value
Other appropriate error status values may also be returned.
| Return code | Description | 
|---|---|
| 
 | The alternate driver has been unloaded successfully. | 
| 
 | The alternate driver has not been unloaded, as an invalid handle or hub ID was passed. | 
Requirements
| Version | Available only in Windows 7. | 
|---|---|
| Header | 
 | 
| Library | 
 | 
| IRQL | PASSIVE_LEVEL | 
See also
Send comments about this topic to Microsoft
Build date: 12/5/2013
        Show:
        
        
    

