Well, your question is not that clear, but as far as I understood, I think you should take a look at "socket" and "pipe" objects in Windows API documentation, that should do the work for you. One day when you become advanced, you can even use "RPC".
He who never make mistakes, makes nothing...