Jared Parsons wrote:
Hello Usman,
Your best bet is to check out www.pinvoke.net. The have a lot of the
Win32 API definitions in C#. If you have specific structs you need that
aren't published there post back with those and we'll try to help you out.
Thanks Parsons!
i did check the site but unable to find the required method there too.
Actually i m working with MAPI32 and i need this method to get the list
of messages. The declaration in mapi32 and my suggested declartion is
given below;
{windows Declartion)
HRESULT HrQueryAllRows(
LPMAPITABLE ptable,
LPSPropTagArray ptaga,
LPSRestriction pres,
LPSSortOrderSet psos,
LONG crowsMax,
LPSRowSet FAR * pprows
);
(my proposed)
[DllImport("MAPI32.DLL", CharSet = CharSet.Ansi, EntryPoint =
"MAPIFreeBuffer@4")]
private static extern int HrQueryAllRows(IntPtr pTable,IntPtr
pProp,IntPtr pRest, IntPtr pSort,long wCount,IntPtr lpRows);
//But again i m not sure how to use it after getting the interface
pointer. i do have samples in C++ but surelly it become ambigous while
casting them in C#.
Thanks in advance.
Regards,
Usman Bashir