Added support for CreateDeviceEx.