P/Invoke C++ function and C++ interface (e.g. MAPILogonEx,GetMsgStoresTable)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tysky
    New Member
    • Oct 2008
    • 3

    P/Invoke C++ function and C++ interface (e.g. MAPILogonEx,GetMsgStoresTable)

    Hi!!

    I'm beginner programmer and I'm wondering if there is any diffrence between invoking function and interface form c++. As I don't have problems with function (MAPILogonEx), I can't invoke GetMsgStores, which belong to interface IMAPISession.

    The error is that it can't find entry point for GetMsgStoresTab le.

    Here is crucial line, I think:

    [DllImport("cema pi.dll")]
    public static extern uint GetMsgStoresTab le(uint unicodeFlag, out IntPtr messageTable);
Working...