Detecting keyboard, mouse and serial devices new method ( Windows version )