you really have to rephrase your question .. you said what you want to do, it is logical to access hotmail programmatically, check the pidgin code, they do it.
The documentation is found here , here , and can I think of navigating the code and tutorials as I see fit until you understand how pidgin members did it.
You can find the main page for pidgin here
Sample code to get started:
00362 static void 00363 msn_show_hotmail_inbox(PurplePluginAction *action) 00364 { 00365 PurpleConnection *gc; 00366 MsnSession *session; 00367 00368 gc = (PurpleConnection *) action->context; 00369 session = gc->proto_data; 00370 00371 if (session->passport_info.file == NULL) 00372 { 00373 purple_notify_error(gc, NULL, 00374 _("This Hotmail account may not be active."), NULL); 00375 return; 00376 } 00377 00378 purple_notify_uri(gc, session->passport_info.file); 00379 } 00652 void * 00653 purple_notify_uri(void *handle, const char *uri) 00654 { 00655 PurpleNotifyUiOps *ops; 00656 00657 g_return_val_if_fail(uri != NULL, NULL); 00658 00659 ops = purple_notify_get_ui_ops(); 00660 00661 if (ops != NULL && ops->notify_uri != NULL) { 00662 00663 void *ui_handle = ops->notify_uri(uri); 00664 00665 if (ui_handle != NULL) { 00666 00667 PurpleNotifyInfo *info = g_new0(PurpleNotifyInfo, 1); 00668 info->type = PURPLE_NOTIFY_URI; 00669 info->handle = handle; 00670 info->ui_handle = ui_handle; 00671 00672 handles = g_list_append(handles, info); 00673 00674 return info->ui_handle; 00675 } 00676 } 00677 00678 return NULL; 00679 }
source share