cPP looks like this. How can I use ffi to call the Login method?
typedef struct _LoginInfo{
LoginAuthType authType;
char *username;
char *userPassword;
char *appKey;
char *appToken;
char *timestamp;
char *MD5Token;
_LoginInfo()
{
memset(this,0,sizeof(_LoginInfo));
}
}ECLoginInfo;
EC_CALL_API int Login(const ECLoginInfo *loginInfo);