VXDLDR_UnloadDevice
include vxdldr.inc
mov ebx [DeviceID]
VxDcall VXDLDR_UnloadDevice
jc errorhandler
Unloads a VxD from memory. Uses EAX.
- The carry flag is clear if the function is successful. Otherwise, the carry flag is set and EAX contains the error code. For a list of possible error codes, see the VXDLDR_LoadDevice service.
- DeviceID
- Identifier of the device to be unloaded. If this value is -1, EDX should contain the address of a null-terminated string giving the module name of the VxD.