I have written a small software to show caller id using c++ and TAPI 2 library. I have used a lineInitializeEx function to initialize a modem , and lineOpen function to open