SYS_DYNAMIC_DEVICE_EXIT

mov     eax, SYS_DYNAMIC_DEVICE_EXIT
call    [VSAMPLED_Control]
jc      error_handler
 
VSAMPLED_Control
The address of the device control procedure, as specified in the Declare_Virtual_Device macro.

Control dispatches for dynamically loadable VxDs should be in locked memory, such as memory locked using the VxD_LOCKED_CODE_SEG macro.