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

📄 smcic.cpp

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

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

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

BOOL call_get_subfilter(BaseNetClient *bnc,int uid,LPCSTR fid,int *retcode,NetTable *subf)
{
	  NetDataTuple arg,res;

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

BOOL call_add_action(BaseNetClient *bnc,int uid,LPCSTR fid,int seq,LPCSTR act,LPCSTR param,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(5);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,fid);
	 arg.SetItemLong(2,seq);
	 arg.SetItemString(3,act);
	 arg.SetItemString(4,param);
	 if(bnc->Call("add_act",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

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

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

BOOL call_get_action(BaseNetClient *bnc,int uid,LPCSTR fid,int *retcode,CString * act)
{
	  NetDataTuple arg,res;

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

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

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

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

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

BOOL call_add_domain(BaseNetClient *bnc,LPCSTR domain,int blocal,superint_ut groupid,superint_ut *domainid)
{
	  NetDataTuple arg,res;

	 arg.AddItems(3);
	 arg.SetItemString(0,domain);
	 arg.SetItemLong(1,blocal);
	 arg.SetItemSuperLong(2,groupid);
	 if(bnc->Call("add_domain",NULL,&arg,&res))
	 {
		 *domainid=res.GetItemSuperLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_del_domain(BaseNetClient *bnc,LPCSTR domain,int *retcode)
{
	  NetDataTuple arg,res;

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

BOOL call_find_domain(BaseNetClient *bnc,LPCSTR domain,int *retcode,int *blocal,superint_ut *domainid)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemString(0,domain);
	 if(bnc->Call("find_domain",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		 *blocal=res.GetItemLong(1);
		 *domainid=res.GetItemSuperLong(2);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_add_domain_alias(BaseNetClient *bnc,LPCSTR alias,superint_ut domain,int *retcode)
{
	  NetDataTuple arg,res;

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

BOOL call_del_domain_alias(BaseNetClient *bnc,LPCSTR alias,int *retcode)
{
	  NetDataTuple arg,res;

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

BOOL call_get_domain_alias(BaseNetClient *bnc,LPCSTR domain,int *retcode,CString * lst)
{
	  NetDataTuple arg,res;

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

BOOL call_get_domain_group(BaseNetClient *bnc,superint_ut domainid,superint_ut *groupid)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemSuperLong(0,domainid);
	 if(bnc->Call("smif_get_domain_group",NULL,&arg,&res))
	 {
		 *groupid=res.GetItemSuperLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_add_group(BaseNetClient *bnc,superint_ut parentid,LPCSTR group,LPCSTR comment,superint_ut *groupid)
{
	  NetDataTuple arg,res;

	 arg.AddItems(3);
	 arg.SetItemSuperLong(0,parentid);
	 arg.SetItemString(1,group);
	 arg.SetItemString(2,comment);
	 if(bnc->Call("add_group",NULL,&arg,&res))
	 {
		 *groupid=res.GetItemSuperLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_del_group(BaseNetClient *bnc,superint_ut parentid,superint_ut groupid,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(2);
	 arg.SetItemSuperLong(0,parentid);
	 arg.SetItemSuperLong(1,groupid);
	 if(bnc->Call("del_group",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_find_group(BaseNetClient *bnc,superint_ut parentid,LPCSTR group,superint_ut *groupid)
{
	  NetDataTuple arg,res;

	 arg.AddItems(2);
	 arg.SetItemSuperLong(0,parentid);
	 arg.SetItemString(1,group);
	 if(bnc->Call("find_group",NULL,&arg,&res))
	 {
		 *groupid=res.GetItemSuperLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_set_grpval(BaseNetClient *bnc,superint_ut groupid,LPCSTR valname,LPCSTR val,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(3);
	 arg.SetItemSuperLong(0,groupid);
	 arg.SetItemString(1,valname);
	 arg.SetItemString(2,val);
	 if(bnc->Call("set_grpval",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_set_grpvalf(BaseNetClient *bnc,superint_ut groupid,LPCSTR valname,LPCSTR val,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(3);
	 arg.SetItemSuperLong(0,groupid);
	 arg.SetItemString(1,valname);
	 arg.SetItemString(2,val);
	 if(bnc->Call("set_grpvalf",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_get_grpval(BaseNetClient *bnc,superint_ut groupid,LPCSTR valname,int *retcode,CString * val)
{
	  NetDataTuple arg,res;

	 arg.AddItems(2);
	 arg.SetItemSuperLong(0,groupid);
	 arg.SetItemString(1,valname);
	 if(bnc->Call("get_grpval",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		 *val=res.GetItemString(1);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_list_group_domain(BaseNetClient *bnc,superint_ut groupid,int *retcode,NetTable *data)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemSuperLong(0,groupid);
	 if(bnc->Call("list_group_domain",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  res.GetItemNetTable(1)->CopyTo(data);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_add_dev(BaseNetClient *bnc,LPCSTR devname,LPCSTR mountpoint,LPCSTR devtype,LPCSTR param,int *retcode)
{
	  NetDataTuple arg,res;

	 arg.AddItems(4);
	 arg.SetItemString(0,devname);
	 arg.SetItemString(1,mountpoint);
	 arg.SetItemString(2,devtype);
	 arg.SetItemString(3,param);
	 if(bnc->Call("add_dev",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_del_dev(BaseNetClient *bnc,LPCSTR devname,int *retcode)
{
	  NetDataTuple arg,res;

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

BOOL call_get_dev(BaseNetClient *bnc,int *retcode,CString * outrows)
{
	  NetDataTuple arg,res;

	 if(bnc->Call("get_dev",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		 *outrows=res.GetItemString(1);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_set_dev_bwrite(BaseNetClient *bnc,LPCSTR devname,int bwrite,int *retcode)
{
	  NetDataTuple arg,res;

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

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

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

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

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

BOOL call_alloc_linkidex(BaseNetClient *bnc,int n,NetTable *mfid)
{
	  NetDataTuple arg,res;

	 arg.AddItems(1);
	 arg.SetItemLong(0,n);
	 if(bnc->Call("alloc_linkidex",NULL,&arg,&res))
	 {
		  res.GetItemNetTable(0)->CopyTo(mfid);
		  return TRUE;
	 }
	 return FALSE;
}

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

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

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

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

BOOL call_mf_readx(BaseNetClient *bnc,int uid,LPCSTR mfpath,CString &datakey,superint_ut frompos,int len,int *retcode,CString *buf)
{
	  NetDataTuple arg,res;

	 arg.AddItems(5);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,mfpath);
	 arg.SetItemBinary(2,datakey);
	 arg.SetItemSuperLong(3,frompos);
	 arg.SetItemLong(4,len);
	 if(bnc->Call("mf_readx",NULL,&arg,&res))
	 {
		 *retcode=res.GetItemLong(0);
		  res.GetItemBinary(1,buf);
		  return TRUE;
	 }
	 return FALSE;
}

BOOL call_mf_writex(BaseNetClient *bnc,int uid,LPCSTR mfpath,CString &datakey,superint_ut frompos,CString &buf,int *retcode)
{
	  NetDataTuple arg,res;

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

BOOL call_mf_getsizex(BaseNetClient *bnc,int uid,LPCSTR mfpath,CString &datakey,int *retcode,superint_ut *fsize)
{
	  NetDataTuple arg,res;

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

BOOL call_mf_seek(BaseNetClient *bnc,int uid,LPCSTR boxname,std_datetime_t start,std_datetime_t end,LPCSTR mfrom,LPCSTR keystr,int nrows,NetTable *buf)
{
	  NetDataTuple arg,res;

	 arg.AddItems(7);
	 arg.SetItemLong(0,uid);
	 arg.SetItemString(1,boxname);
	 arg.SetItemDatetime(2,start);
	 arg.SetItemDatetime(3,end);
	 arg.SetItemString(4,mfrom);
	 arg.SetItemString(5,keystr);
	 arg.SetItemLong(6,nrows);
	 if(bnc->Call("mf_seek",NULL,&arg,&res))
	 {
		  res.GetItemNetTable(0)->CopyTo(buf);
		  return TRUE;
	 }
	 return FALSE;
}

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

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

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

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

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

⌨️ 快捷键说明

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