⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smcic.cpp

📁 1)安装sp2补丁. 2)安装中文语言包. 3)关闭除系统盘除外的系统还原 4)控制面板->区域和语言选项->区域选项 选择中国,位置:选择中国.高级选项卡 非unicode程序的语
💻 CPP
📖 第 1 页 / 共 5 页
字号:
	 arg.AddItems(2);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,mfid);
	 if(bnc->Call("box_crmf",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  res.GetItemBinary(1,datakey);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_box_crlink(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfid,int srcuid,LPCSTR srcbox,LPCSTR srcmfid,CString &datakey,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(7);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfid);
	 arg.SetItemLong(3,srcuid);
	 arg.SetItemString(4,srcbox);
	 arg.SetItemString(5,srcmfid);
	 arg.SetItemBinary(6,datakey);
	 if(bnc->Call("box_crlink",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_box_crlinkex(BaseNetClient *bnc,int srcuid,LPCSTR srcbox,LPCSTR srcmfid,NetTable &dstuser,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(4);
	 arg.SetItemLong(0,srcuid);
	 arg.SetItemString(1,srcbox);
	 arg.SetItemString(2,srcmfid);
	 arg.SetItemNetTable(3,&dstuser,FALSE);
	 if(bnc->Call("box_crlinkex",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_box_movmf(BaseNetClient *bnc,int uid,LPCSTR boxfrom,LPCSTR boxto,LPCSTR mfpath,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(4);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxfrom);
	 arg.SetItemString(2,boxto);
	 arg.SetItemString(3,mfpath);
	 if(bnc->Call("box_movmf",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_box_delmf(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfpath,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(3);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfpath);
	 if(bnc->Call("box_delmf",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_box_getmf(BaseNetClient *bnc,int uid,LPCSTR boxname,int *retcode,CString * mflist)
{
	  NetDataTuple arg,res;

	 arg.AddItems(2);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 if(bnc->Call("box_getmf",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		 *mflist=res.GetItemString(1);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_box_setbread(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfpath,int bread,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(4);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfpath);
	 arg.SetItemLong(3,bread);
	 if(bnc->Call("box_setbread",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_mail_forward(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfid,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(3);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfid);
	 if(bnc->Call("mail_forward",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_set_value(BaseNetClient *bnc,LPCSTR name,LPCSTR value,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(2);
	 arg.SetItemString(0,name);
	 arg.SetItemString(1,value);
	 if(bnc->Call("set_value",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_get_value(BaseNetClient *bnc,LPCSTR name,int *retcode,CString * value)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemString(0,name);
	 if(bnc->Call("get_value",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		 *value=res.GetItemString(1);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_set_valuef(BaseNetClient *bnc,LPCSTR name,LPCSTR value,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(2);
	 arg.SetItemString(0,name);
	 arg.SetItemString(1,value);
	 if(bnc->Call("set_valuef",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_get_valuef(BaseNetClient *bnc,LPCSTR name,int *retcode,CString * value)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemString(0,name);
	 if(bnc->Call("get_valuef",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		 *value=res.GetItemString(1);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_shutdown(BaseNetClient *bnc)
{
	  NetDataTuple arg,res;

	 if(bnc->Call("shutdown",NULL,&arg,&res))
	 {
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_restart(BaseNetClient *bnc)
{
	  NetDataTuple arg,res;

	 if(bnc->Call("restart",NULL,&arg,&res))
	 {
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_parse(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfid,CString &datakey,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(4);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfid);
	 arg.SetItemBinary(3,datakey);
	 if(bnc->Call("parse",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_ins_parse(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfid,CString &datakey,NetTable &p,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(5);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfid);
	 arg.SetItemBinary(3,datakey);
	 arg.SetItemNetTable(4,&p,FALSE);
	 if(bnc->Call("ins_parse",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_del_parse(BaseNetClient *bnc,LPCSTR mfid,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemString(0,mfid);
	 if(bnc->Call("del_parse",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_get_parse(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfid,NetTable *parse)
{
	  NetDataTuple arg,res;

	 arg.AddItems(3);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfid);
	 if(bnc->Call("get_parse",NULL,&arg,&res))
	 {
		  res.GetItemNetTable(0)->CopyTo(parse);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_read_body(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfid,CString &datakey,LPCSTR bid,int buflen,int *retcode,CString *buf)
{
	  NetDataTuple arg,res;

	 arg.AddItems(6);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfid);
	 arg.SetItemBinary(3,datakey);
	 arg.SetItemString(4,bid);
	 arg.SetItemLong(5,buflen);
	 if(bnc->Call("read_body",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  res.GetItemBinary(1,buf);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_read_text(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfid,CString &datakey,LPCSTR bid,int *retcode,UString *buf)
{
	  NetDataTuple arg,res;

	 arg.AddItems(5);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfid);
	 arg.SetItemBinary(3,datakey);
	 arg.SetItemString(4,bid);
	 if(bnc->Call("read_text",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  res.GetItemUString(1,buf);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_get_base64attachsize(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfid,CString &datakey,LPCSTR bid,int *size)
{
	  NetDataTuple arg,res;

	 arg.AddItems(5);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfid);
	 arg.SetItemBinary(3,datakey);
	 arg.SetItemString(4,bid);
	 if(bnc->Call("get_base64attachsize",NULL,&arg,&res))
	 {
		 *size=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_body_read(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfid,CString &datakey,LPCSTR bid,int startpos,int buflen,CString *buf)
{
	  NetDataTuple arg,res;

	 arg.AddItems(7);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfid);
	 arg.SetItemBinary(3,datakey);
	 arg.SetItemString(4,bid);
	 arg.SetItemLong(5,startpos);
	 arg.SetItemLong(6,buflen);
	 if(bnc->Call("body_read",NULL,&arg,&res))
	 {
		  res.GetItemBinary(0,buf);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_clear_autoreply(BaseNetClient *bnc,int uid,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemLong(0,uid);
	 if(bnc->Call("clear_autoreply",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_get_autoreply(BaseNetClient *bnc,int uid,int *retcode,CString * autoid)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemLong(0,uid);
	 if(bnc->Call("get_autoreply",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		 *autoid=res.GetItemString(1);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_gen_autoreply(BaseNetClient *bnc,int uid,int *retcode,CString * autoid)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemLong(0,uid);
	 if(bnc->Call("gen_autoreply",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		 *autoid=res.GetItemString(1);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_get_link(BaseNetClient *bnc,LPCSTR mfid,CString * linkid)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemString(0,mfid);
	 if(bnc->Call("get_link",NULL,&arg,&res))
	 {
		 *linkid=res.GetItemString(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_query_links(BaseNetClient *bnc,LPCSTR linkid,CString * mflist)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemString(0,linkid);
	 if(bnc->Call("query_links",NULL,&arg,&res))
	 {
		 *mflist=res.GetItemString(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_query_mlist(BaseNetClient *bnc,int uid,LPCSTR password,LPCSTR boxname,int startRow,int numRows,LPCSTR ord,int bAsc,NetTable *list)
{
	  NetDataTuple arg,res;

	 arg.AddItems(7);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,password);
	 arg.SetItemString(2,boxname);
	 arg.SetItemLong(3,startRow);
	 arg.SetItemLong(4,numRows);
	 arg.SetItemString(5,ord);
	 arg.SetItemLong(6,bAsc);
	 if(bnc->Call("query_mlist",NULL,&arg,&res))
	 {
		  res.GetItemNetTable(0)->CopyTo(list);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_query_mlist_byunread(BaseNetClient *bnc,int uid,LPCSTR password,LPCSTR boxname,int startRow,int numRows,int bAsc,NetTable *list)
{
	  NetDataTuple arg,res;

	 arg.AddItems(6);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,password);
	 arg.SetItemString(2,boxname);
	 arg.SetItemLong(3,startRow);
	 arg.SetItemLong(4,numRows);
	 arg.SetItemLong(5,bAsc);
	 if(bnc->Call("query_mlist_byunread",NULL,&arg,&res))
	 {
		  res.GetItemNetTable(0)->CopyTo(list);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_query_mlist_byfrom(BaseNetClient *bnc,int uid,LPCSTR password,LPCSTR boxname,LPCSTR mfrom,int startRow,int numRows,NetTable *list)
{
	  NetDataTuple arg,res;

	 arg.AddItems(6);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,password);
	 arg.SetItemString(2,boxname);
	 arg.SetItemString(3,mfrom);
	 arg.SetItemLong(4,startRow);
	 arg.SetItemLong(5,numRows);
	 if(bnc->Call("query_mlist_byfrom",NULL,&arg,&res))
	 {
		  res.GetItemNetTable(0)->CopyTo(list);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_count_mlist_byfrom(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfrom,int *count)
{
	  NetDataTuple arg,res;

	 arg.AddItems(3);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfrom);
	 if(bnc->Call("count_mlist_byfrom",NULL,&arg,&res))
	 {
		 *count=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_remove_oldmail(BaseNetClient *bnc,int uid,LPCSTR boxname,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(2);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 if(bnc->Call("remove_oldmail",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_query_mailf(BaseNetClient *bnc,int uid,LPCSTR boxname,LPCSTR mfid,NetTable *mf)
{
	  NetDataTuple arg,res;

	 arg.AddItems(3);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemString(2,mfid);
	 if(bnc->Call("query_mailf",NULL,&arg,&res))
	 {
		  res.GetItemNetTable(0)->CopyTo(mf);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_count_mlist(BaseNetClient *bnc,int uid,LPCSTR boxname,int *count)
{
	  NetDataTuple arg,res;

	 arg.AddItems(2);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 if(bnc->Call("count_mlist",NULL,&arg,&res))
	 {
		 *count=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_count_new(BaseNetClient *bnc,int uid,LPCSTR boxname,int *count)
{
	  NetDataTuple arg,res;

	 arg.AddItems(2);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 if(bnc->Call("count_new",NULL,&arg,&res))
	 {
		 *count=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_count_mlist_bydate(BaseNetClient *bnc,int uid,LPCSTR boxname,std_datetime_t startdt,std_datetime_t enddt,int *count)
{
	  NetDataTuple arg,res;

	 arg.AddItems(4);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemDatetime(2,startdt);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -