ugly support windows device (CreateFile)