Does anyone know how to connect to a remote exchange server to retrieve emails using MAPI?

I was at the msdn site and found code that I got to work but it only retrieves emails from my local machine using my profile, I would like to connect to another exchange and use another profile.

If you would like to see the code it is at the following:

http://msdn.microsoft.com/library/de...olomwvbnet.asp