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