Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
DOSMGR_Remove_Device
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include dosmgr.inc
 
VxDcall DOSMGR_Remove_Device
 
The DOSMGR_Remove_Device service removes a device from the device list. The
device must have been previously added using the DOSMGR_Add_Device service
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
EBX        Specifies the handle of the virtual machine from which to remove
           the device. If this parameter is zero, the device is removed from
           all virtual machines.
 
EAX        Specifies the address of device header. This parameter must be a
           low memory linear address (less than 100000h).
 
Return Value
 
The carry flag is clear if the service is successful. Otherwise, the carry
flag is set if the device could not be removed from device list.
 
Comments
 
Global calls to DOSMGR_Add_Device should not be mixed with local calls to
DOSMGR_Remove_Device for the same device. All DOSMGR_Add_Device devices are
automatically removed when Windows terminates.
 
This service removes the link to the device from the device list. It does
not free any memory or resources that the device may have created or
allocated.
 
Uses
 
Flags
 
                                      ♦