added SetDeviceFormat