I am having some issues working with my usb to serial driver over a VMware view environment. This is a KMDF driver.
The view environment is setup as follows. A view client will access a win7 image stored on a VMware vSphere host. The connection is managed by a VMware View Connection Server on a 64bit Windows Server 2008 R2 system.
I went through the debug logs and it appears that the problem comes when trying to power-cycle the USB port using WdfUsbTargetDeviceCyclePortSynchronously .
Basically what the driver does is in the EvtPrepareHardware callback it reads the configuration descriptor values and checks whether they are correct. If not a thread starts to reload the firmware and a boolean value is set to perform a unplug-plug operation after reloading the firmware.
The reloading part is being completed correctly but WdfUsbTargetDeviceCyclePortSynchronously always returns a 0xc0000001(STATUS_UNSUCCESSFUL) error code and the device is not being reenumerated .
Also this behaviour only occurs in the VMware view environment.
Any help on this would be very much appreciated.