I've never tried it, but codeproject has two resources that explain how to hook into the COM library to do this. It looks fairly straightforward.
I know it would be better to post code here, but I'd be ripping off the author's work and don't have time to research myself. Hopefully this will help:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.