  End If
   End If
End Function
</pre><p>
As you see, the use of VB-hostile COM structures means that the code becomes 
fairly difficult to read and use; the code is basically low-level C++ but
without the useful bits like smart pointers! For this reason, the <span class="i">vbalIMAPI</span> 
Library was created as a wrapper around the API.  This allows you to use the IMAPI 
functions without quite so much pain.
</p><h2>Using the vbalIMAPI DLL</h2><p>
To use the vbalIMAPI library you will need a reference b