This piece of code shows how to login using the MSNP9 protocol, it uses SSL for logging to the Passport service (which is needed with MSNP9).
This code ONLY logs in, you'll have to do the rest (like the challenges) yourself :P
(Don't worry, when I've implemented some more features, I'll post it here too!)