mov eax, SYS_DYNAMIC_DEVICE_EXIT call [VSAMPLED_Control] jc error_handler
Control dispatches for dynamically loadable VxDs should be in locked memory, such as memory locked using the VxD_LOCKED_CODE_SEG macro.