The starred post in http://www.tek-tips.com/viewthread.cfm?qid=416091 may help.
See also http://www.vbforums.com/showthread.php?213415-Visual-Basic-API-FAQs&p=1753635#post1753635