DOSMGR_Remove_Device

include dosmgr.inc
 
mov     ebx, VMRemove
mov     eax, OFFSET32 [Device_Header]
VxDcall DOSMGR_Remove_Device
 

Removes a device from the device list. The device must have been previously added using the DOSMGR_Add_Device service. Uses Flags.

VMRemove
Handle of the virtual machine from which to remove the device. If this parameter is zero, the device is removed from all virtual machines.
Device_Header
Address of device header. This parameter must be a low memory linear address (less than 100000h).

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 quits.

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.