I have to develop an application which is similar to outlook in which i have to create a button by which we can transfer mail message to user specific folder.I am using MFC for that application.
I found that there is api called MAPI(messaging application programming interface) which provide two function OnFileSendMail and OnUpdateFileSendMail.

I want to know sample code of this function and how to use them.