This small example searches the Internet Explorer cache directory for display pictures and custom emoticons from your contacts, where they are stored as BIN files in PNG format.
I don’t think I could get the Dir$() function to search IE cache so I used the find files API. Not sure if it works on 9x. It uses GDI+ to display the images.
Download prjFinder.zip
Also posted on the forum.
MSN Messenger 6.1 introduces some new features to the Messenger API type library for display pictures, one being to be able to set and get your display picture, and an event is fired when your display picture changes.
To set your display picture, use the IMessenger property MyProperty, with the ePropType as MCONTACTPROP_USERTILE_PATH (const value is 2), giving it the full path to the new image, it does not have to be PNG as it is automatically converted.
m_evtMessenger.MyProperty(MCONTACTPROP_USERTILE_PATH) = txtNew.Text
Continue reading ‘Display Picture API’