hi can you pls tell me pls is there any win32 api,s are there for getting connected device port number.Now in my appillication i am giving hardcoded value for com port number . and for that i am checking manually from control panel -> phone and modem options , there i am getting port number. But now i am trying do this programmaticaly.so is there any win32 api are there?