#ifndef __IMAPI_H__ #define __IMAPI_H__ //#include #include "ImApiType.h" extern "C" int init(const char* ip, const char* username, const char* password, const char* apiCode); extern "C" int WINAPI initWithDB(const char* ip, const char* username, const char* password, const char* db,const char* apiCode); extern "C" int __stdcall sendSM( const char* mobile, const char* content, const long smId); extern "C" int __stdcall sendSMAdv( const char* mobile, const char* content, const long smId, const long srcId); extern "C" int __stdcall sendWapPushSM( const char* mobile, const char* content, const long smId, const char* url); extern "C" int __stdcall sendSMAdvTime( const char* mobile, const char* content, const char* sendTime, const long smId, const long srcId); extern "C" int __stdcall sendWapPushSMAdv( const char* mobile, const char* content, const long smId, const long srcId, const char* url); extern "C" int __stdcall sendWapPushSMAdvTime(const char* mobile, const char* content, const long smId, const long srcId, const char* url, const char* sendTime ); extern "C" int __stdcall receiveSM(MO_Item retMO[],const int retSize); extern "C" int __stdcall receiveSMAdv( MO_Item retMO[], const int srcID, const int retSize); extern "C" int __stdcall receiveRPT( Rpt_Item retRpt[],const int retSize); extern "C" int __stdcall receiveRPTAdv( Rpt_Item retRpt[],const int smID, const int retSize); extern "C" int __stdcall release(); typedef int (__stdcall *MAS_init)(const char* ip, const char* username, const char* password, const char* apiCode); typedef int (__stdcall *MAS_initWithDB)(const char* ip, const char* username, const char* password, const char* db,const char* apiCode); typedef int (__stdcall *MAS_sendSM)( const char* mobile, const char* content, const long smId); typedef int (__stdcall *MAS_sendSMAdv)( const char* mobile, const char* content, const long smId, const long srcId); typedef int (__stdcall *MAS_sendWapPushSM)( const char* mobile, const char* content, const long smId, const char* url); typedef int (__stdcall *MAS_sendSMAdvTime)( const char* mobile, const char* content, const char* sendTime, const long smId, const long srcId); typedef int (__stdcall *MAS_sendWapPushSMAdv)( const char* mobile, const char* content, const long smId, const long srcId, const char* url); typedef int (__stdcall *MAS_sendWapPushSMAdvTime)(const char* mobile, const char* content, const long smId, const long srcId, const char* url, const char* sendTime ); typedef int (__stdcall *MAS_receiveSM)(MO_Item retMO[],const int retSize); typedef int (__stdcall *MAS_receiveSMAdv)( MO_Item retMO[], const int srcID, const int retSize); typedef int (__stdcall *MAS_receiveRPT)( Rpt_Item retRpt[],const int retSize); typedef int (__stdcall *MAS_receiveRPTAdv)( Rpt_Item retRpt[],const int smID, const int retSize); typedef int (__stdcall *MAS_release)(); #endif