How do I wrap the following c++ Struct in c#???
Hi Sirs
I'm not that familiar with c++ and I have to make a call from
C# to an
unmanaged function which expects the struct below as a parameter.
How do I make the managed struct in c#?
Regards Morten
typedef void *MRBSESSION;
typedef void *MRBPLUGINCONN;
typedef long (*MRBNOTIFY)(long msg, const char *msgtxt, const void
*userParam);
typedef long (*MRBPROXYAUTH)(const void *userParam, char *auth);
typedef long (*MRBHTTPAUTH)(const void *userParam, const char *scheme, const
char *realm, char *auth);
typedef long (*MRBFILEFILTER)(const void *userParam, const char *base, const
char *node);
/*
* Update information supplied to mrbOpen.
*/
typedef struct {
const char *baseDir;
MRBNOTIFY notify;
MRBPROXYAUTH proxyAuth;
MRBHTTPAUTH httpAuth;
const char *httpUserAgent;
const void *userParam;
long flags;
const char *url;
long timeout;
Quote:
} MRBSESSIONINFO;