📄 comserver.idl
字号:
short stno; // 检测站号
short dirc; // 方向
short reflg; //时间偏差
}Rstation;
typedef struct {
short count;
Rstation st[400];
}Rstations;
typedef struct{
char name[16];
int AlarmPersonNum;
short addrno;
short addtyp; //0: 井下区域, 1:地面区域
short ent[8];
// short ext[4];
}address;
typedef struct{
short count;
address addr[200];
}addrlist;
//05-4-17 add Begin
typedef struct
{
DATE passtm;
short reno;
short addrno;
short stype;
short alm;
}Trac,* pTrac;
extern short staTrouble;
extern short staRecvNull[255];
const short TableSize=50;
//05-4-17 add End
extern short passtmct; //网络用超时人数
typedef struct{
short addrno;
double localtm;
double entrytm;
double exittm;
short dw_rno;
short up_rno;
short lastreno;
DATE entryAddrtm; //进入区域的时间
short tag;
short RecordCount; ////05-4-17 add
Trac TracTable[TableSize]; ////05-4-17 add
}personlist;
typedef struct{
short addrno;
double localtm;
double entrytm;
double exittm;
short dw_rno;
short up_rno;
short lastreno;
DATE entryAddrtm; //进入区域的时间
short tag;
}personlist_old;
//---------by QuanGuo 05-3-1-------//
typedef struct{
short addrno;
short rfid;
DATE intime;
DATE outtime;
}fieldlist;
extern fieldlist fieldtj[200];
extern fieldlist fieldtjb[200];
extern short fieldlistct;
extern short fieldlist_ct;
typedef struct{
short stno;
short addrno;
DATE time;
short tag; //1为报警 0为解报
}rjalarmlist;
extern rjalarmlist rjalarmtj[200];
extern rjalarmlist rjalarmtjb[200];
extern short rjalarmct;
extern short rjalarm_ct;
//--------------------------------//
typedef struct{
char name[16];
short workno;
char depart[16];
DATE dt;
short reno;
short personID;
short addrno;
}tracetj;
typedef struct {
char name[16];
short workno;
char depart[16];
DATE updtm;
DATE downdtm;
short up_rno;
short dw_rno;
short personID;
short tag;
}tjupdow;
extern tjupdow uptj[200];
extern tjupdow uptjb[200];
extern short upct;
extern short up_ct;
//extern DATE rstm[255];
extern DWORD yddd_time_flag[255];
//int yddd_flag1[255][16];
extern int send_flag[255];
extern int yddd_flag[255];
//extern short addrperson[50];
extern tracetj trclst[1000];
extern tracetj trctjb[1000];
extern short rj_ct;
extern tracetj almtj[500];
extern tracetj almtjb[500];
extern short almct;
extern short alm_ct;
//extern short setm_flg;
extern Rstations rtinfo;
extern preflist prst;
extern managerlist manager;
//extern tmtab almb;
//extern short tmgate1;
//extern short tmgate2;
extern addrlist adlst;
extern personlist perstmb[4096];
extern int traceNum;
extern BOOL trac_flg;
extern unsigned char Curpath[ 50 ];
extern unsigned char otherpcname[33];
extern int trace_notice;
extern int load_flg;
extern BOOL tmok;
extern short lastime[3];
extern tracetj net_trace[2000];
extern short net_trc_ct;
extern tracetj net_alarm[1000];
extern short net_alm_ct;
extern tjupdow net_uptj[400];
extern short net_uptj_ct;
extern short chkup[200];
extern short chkct;
extern BOOL demosys;
extern int democount;
extern HANDLE termhd;
extern BOOL comsertype; //0: 辅机,1:主机
extern BOOL tranflg;
extern float Alarm_Flag[500];
//2003.5.31 add (lpf)
typedef struct {
int number;
char Evtname[16];
DATE recordtime;
int vl1;
int vl2;
}Evtitem;
/**************************************************************************/
[
object,
uuid(0CA2666C-61A7-11D5-B050-0050BAF2A927),
dual,
helpstring("ILoadSystem Interface"),
pointer_default(unique)
]
interface ILoadSystem : IDispatch
{
// [id(2), helpstring("method Read_Sys_Files")] HRESULT Read_Sys_Files();
// [id(3), helpstring("method Read_Kjsys001")] HRESULT Read_Kjsys001();
// [id(4), helpstring("method Read_St_Ini")] HRESULT Read_St_Ini();
// [id(5), helpstring("method Read_St_Exd")] HRESULT Read_St_Exd();
// [id(11), helpstring("method Read_kjsys005")] HRESULT Read_kjsys005();
// [id(13), helpstring("method Read_Kjsys006")] HRESULT Read_Kjsys006();
// [id(15), helpstring("method Read_Cfg0")] HRESULT Read_Cfg0();
// [id(16), helpstring("method Read_Cfg1")] HRESULT Read_Cfg1();
// [id(17), helpstring("method Read_Cfg2")] HRESULT Read_Cfg2();
// [id(18), helpstring("method Read_Cfg3")] HRESULT Read_Cfg3();
// [id(19), helpstring("method Read_Cfg4")] HRESULT Read_Cfg4();
// [id(25), helpstring("method Read_Kjsys004")] HRESULT Read_Kjsys004();
// [id(26), helpstring("method Read_Kjsys002")] HRESULT Read_Kjsys002();
// [id(29), helpstring("method Read_Kjsys003")] HRESULT Read_Kjsys003();
// [id(31), helpstring("method Read_St_Xinxi")] HRESULT Read_St_Xinxi();
// [id(32), helpstring("method Read_yddd")] HRESULT Read_yddd();
// [id(33), helpstring("method Read_qydd")] HRESULT Read_qydd();
[id(1), helpstring("method Load_Sys_File")] HRESULT Load_Sys_File([out] short *flg);
[id(2), helpstring("method initsys")] HRESULT initsys();
[id(3), helpstring("method SetCurrentDirectory")] HRESULT SetCurrentDirectory(LPSTR path);
[id(4), helpstring("method SetLoadflg")] HRESULT SetLoadflg(int flg);
[id(5), helpstring("method ReleaseSys")] HRESULT ReleaseSys();
};
[
object,
uuid(0CA2666D-61A7-11D5-B050-0050BAF2A927),
dual,
helpstring("IDataSave Interface"),
pointer_default(unique)
]
interface IDataSave : IDispatch
{
[id(1), helpstring("method Set_Two_Min_Flag")] HRESULT Set_Two_Min_Flag(int Flag);
[id(2), helpstring("method Set_One_Hour_Flag")] HRESULT Set_One_Hour_Flag(int Flag);
[id(5), helpstring("method Get_Alar")] HRESULT Get_Alar(int alarNo,[out]int *addr_sensor,[out]float *maxv,[out]float *minv,[out]float *avgv,[out]DATE *start_time, [out]DATE *end_time);
[id(6), helpstring("method Set_Alar_Num")] HRESULT Set_Alar_Num(int Num);
[id(7), helpstring("method Set_Err_Num")] HRESULT Set_Err_Num(int Num);
[id(8), helpstring("method Get_Err")] HRESULT Get_Err(int errNo,[out]int *addr_sensor,[out]BYTE *errorflag,[out]BYTE *error_type,[out]DATE *start_time, [out]DATE *end_time);
[id(9), helpstring("method Get_NowData")] HRESULT Get_NowData(int NowDataNo,[out]int *addr_sensor,[out]float *nowdata,[out]float *data1,[out]float *data2,[out]float *data3,[out]float *data4,[out]int *timeflag);
[id(10), helpstring("method Get_File3")] HRESULT Get_File3(int Sensor_ind,[out]byte *property);
[id(11), helpstring("method Get_kaijutu_tab")] HRESULT Get_kaijutu_tab(int kaitu_No,[out]int *addr_sensor,[out]int * timenow,[out]long *kjt0,[out]long *kjt1,[out]long *kjt2,[out]long *kjt3);
[id(12), helpstring("method Get_Delflag")] HRESULT Get_Delflag([out] int *flag);
[id(13), helpstring("method Get_Del_Sensor")] HRESULT Get_Del_Sensor(int del_No, [out]int *addr_sensor);
[id(14), helpstring("method Set_Delflag")] HRESULT Set_Delflag(int flag);
[id(15), helpstring("method Get_Alar_Num")] HRESULT Get_Alar_Num([out] int *AlarNum);
[id(16), helpstring("method Get_Err_Num")] HRESULT Get_Err_Num([out] int *ErrNum);
[id(19), helpstring("method Get_NowData_Num")] HRESULT Get_NowData_Num([out] int *Num);
[id(20), helpstring("method Get_Kaijutu_Num")] HRESULT Get_Kaijutu_Num([out] int *Num);
[id(21), helpstring("method Get_Del_Sensor_Num")] HRESULT Get_Del_Sensor_Num([out] int *Num);
[id(26), helpstring("method Get_ryjc_trace_tab")] HRESULT Get_ryjc_trace_tab(short tjNo,[out] BSTR *name,[out] short *workno,[out] BSTR*depart,[out] DATE *dt,[out] short *stno,[out] short *dirc,[out] short *perID);
[id(27), helpstring("method Get_ryjc_trace_num")] HRESULT Get_ryjc_trace_num([out] int *trace_num,[out] int *updown_num,[out] int *alarm_num,[out] int *fieldalarm_num,[out] int *fieldrecord_num,[out]int *flag);
[id(28), helpstring("method Set_ryjc_trace_Num")] HRESULT Set_ryjc_trace_Num(int trace_num,int updown_num,int alarm_num,int fieldalarm_num,int fieldrecord_num,int flag);
[id(29), helpstring("method Get_notice_flag")] HRESULT Get_notice_flag([out] int *notice);
[id(30), helpstring("method Set_notice_flag")] HRESULT Set_notice_flag(int notice);
[id(31), helpstring("method Get_rjerr")] HRESULT Get_rjerr(int errNo,[out]int *fzNo,[out]BYTE *errtype,[out]DATE *start_time,[out]DATE *end_time,[out]BSTR *name,[out] BSTR *describe,[out]int *val);
[id(32), helpstring("method Get_Save_NowData")] HRESULT Get_Save_NowData(int i,[out]int *addr_sensor,[out]float *nowdata,[out]float* data1,[out]float *data2,[out]float *data3,[out]float *data4,[out]int *timeflag,[out]int *rcdw);
[id(33), helpstring("method Get_NowBj_Num")] HRESULT Get_NowBj_Num([out] int *num);
[id(34), helpstring("method Get_NowGz_Num")] HRESULT Get_NowGz_Num([out]int *num);
[id(35), helpstring("method Get_NowBj")] HRESULT Get_NowBj(int alarNo,[out]int *addr_sensor,[out]DATE *start_time,[out]float *maxv,[out]float *minv,[out]float *avgv);
[id(36), helpstring("method Get_NowGz")] HRESULT Get_NowGz(int errNo,[out]BYTE *errorflag,[out]int *addr_sensor,[out]DATE *start_time,[out]BYTE *error_type);
[id(37), helpstring("method Get_Fz_State")] HRESULT Get_Fz_State(int num,[out,size_is(num)]byte *test);
[id(38), helpstring("method Get_Kckz")] HRESULT Get_Kckz(int num,[out,size_is(num)]long *kckzz);
[id(39), helpstring("method Get_ErrInfo")] HRESULT Get_ErrInfo(int Addr_Sensor,[out]int *State);
[id(40), helpstring("method Get_ryjc_alarm_tab")] HRESULT Get_ryjc_alarm_tab(short tjNo, [out]BSTR *name, [out]short *workno, [out]BSTR *depart, [out]DATE *dt, [out]short *reno, [out]short *perID,[out]short *addrno);
[id(41), helpstring("method Get_ryjc_updown_tab")] HRESULT Get_ryjc_updown_tab(short tjNo, [out]BSTR *name, [out]short *workno, [out]BSTR *depart, [out]DATE *updtm, [out]DATE *downdtm,[out]short *up_rno, [out]short *dw_rno,[out]short *personID,[out]short *tag);
[id(42), helpstring("method setcopy_flag")] HRESULT setcopy_flag(int flag);
[id(43), helpstring("method Get_ryjc_fieldalarm_tab")] HRESULT Get_ryjc_fieldalarm_tab([in]short tjno,[out]short *stno,[out]short *addrno,[out]DATE *time,[out]short *tag);
[id(44), helpstring("method Get_ryjc_Fieldxx_tab")] HRESULT Get_ryjc_Fieldxx_tab(short tjno, [out]short *rfid, [out]short *addrno, [out]DATE *intime, [out]DATE *outtime);
[id(45), helpstring("method Getkgch_num")] HRESULT Getkgch_num([out] short *num);
[id(46), helpstring("method Getkgch")] HRESULT Getkgch(short i,[out]int* addr_sensor,[out]DATE* st_tm, [out]DATE *steptm,[out]long *addtm,[out]long* status);
[id(47), helpstring("method Setkgch_num")] HRESULT Setkgch_num([in]short num);
};
[
object,
uuid(0CA2666E-61A7-11D5-B050-0050BAF2A927),
dual,
helpstring("IAlarm Interface"),
pointer_default(unique)
]
interface IAlarm : IDispatch
{
// [id(3), helpstring("method fz_err_dj")] HRESULT fz_err_dj(int stNo);
[id(4), helpstring("method fz_errold_dj")] HRESULT fz_errold_dj(int stNo);
[id(5), helpstring("method Get_station_state")] HRESULT Get_station_state(int stNo,[out] int *state);
// [id(6), helpstring("method Get_cd_num")] HRESULT Get_cd_num([out] int *num);
[id(7), helpstring("method Get_cd_status")] HRESULT Get_cd_status(int cdNo,[out] int *mnl_kgl,[out] int *state);
// [id(8), helpstring("method cd_err_dj")] HRESULT cd_err_dj(int cdNo);
[id(9), helpstring("method cd_errold_dj")] HRESULT cd_errold_dj(int cdNo);
// [id(10), helpstring("method cd_alarm_mnl_dj")] HRESULT cd_alarm_mnl_dj(int cdNo);
[id(11), helpstring("method cd_alarmold_dj")] HRESULT cd_alarmold_dj(int cdNo);
// [id(12), helpstring("method cd_alarm_kgl_dj")] HRESULT cd_alarm_kgl_dj(int cdNo,int onoff);
[id(13), helpstring("method Get_Error_Num")] HRESULT Get_Error_Num([out] int *Num);
[id(14), helpstring("method Get_Error")] HRESULT Get_Error(int gz_No,[out]int *Err_Flag,[out]int *fz_cd_No);
[id(15), helpstring("method Get_Alarm_Num")] HRESULT Get_Alarm_Num([out]int *num);
[id(16), helpstring("method Get_Alarm")] HRESULT Get_Alarm(int alarm_No,[out] int *cdNo);
[id(17), helpstring("method Alarm_mnl_db")] HRESULT Alarm_mnl_db(int cdNo);
[id(18), helpstring("method yddd_Proc")] HRESULT yddd_Proc();
[id(19), helpstring("method init_yddd")] HRESULT init_yddd();
[id(21), helpstring("method Get_trace_notice")] HRESULT Get_trace_notice([out] int *notice);
[id(22), helpstring("method Get_ryjc_ErrNum")] HRESULT Get_ryjc_ErrNum([out] int *Num);
[id(23), helpstring("method cd_alarm_mnl_db")] HRESULT cd_alarm_mnl_db(int cdNo);
[id(24), helpstring("method clearscan")] HRESULT clearscan();
};
[
object,
uuid(0CA26671-61A7-11D5-B050-0050BAF2A927),
dual,
helpstring("IDataFlow Interface"),
pointer_default(unique)
]
interface IDataFlow : IDispatch
{
[id(1), helpstring("method getaddrbps")] HRESULT getaddrbps([out] int *port,[out] int *bps);
[id(4), helpstring("method iforder")] HRESULT iforder([out] int * rb);
[id(5), helpstring("method ifixst")] HRESULT ifixst([out] int * rb);
[id(6), helpstring("method if01ord")] HRESULT if01ord([out] int *rb);
[id(7), helpstring("method setNormalord")] HRESULT setNormalord([in] int stno,[out] int *nextno);
[id(8), helpstring("method getordbuf")] HRESULT getordbuf([out] byte odbuf[300],[out] int *odsize);
[id(9), helpstring("method setrecvbuf")] HRESULT setrecvbuf([in] int st,[in] int ct,[in,size_is(ct)] byte *recv);
[id(10), helpstring("method processdata")] HRESULT processdata([out] int * rb);
[id(11), helpstring("method ifchecktime")] HRESULT ifchecktime([out] int *rb);
[id(12), helpstring("method setstErr")] HRESULT setstErr();
[id(13), helpstring("method ifinit")] HRESULT ifinit([in] int no,[out] int *stno);
[id(17), helpstring("method ifprocess")] HRESULT ifprocess([out] int *rb);
[id(16), helpstring("method clearFlg")] HRESULT clearFlg();
[id(18), helpstring("method getrjdata")] HRESULT getrjdata();
[id(3), helpstring("method init")] HRESULT init();
[id(2), helpstring("method getotherName")] HRESULT getotherName([out,size_is(32)] CHAR *name);
[id(19), helpstring("method ifrjst")] HRESULT ifrjst([out] int *rb);
[id(20), helpstring("method setre7ord")] HRESULT setre7ord();
[id(21), helpstring("method sethotuse")] HRESULT sethotuse([in] short hot);
[id(14), helpstring("method ifinitExt")] HRESULT ifinitExt([in] int no,[out] int *stno);
[id(15), helpstring("method ifinitExp")] HRESULT ifinitExp([in] int no,[out] int *stno);
};
[
object,
uuid(0CA26672-61A7-11D5-B050-0050BAF2A927),
dual,
helpstring("IDataChange Interface"),
pointer_default(unique)
]
interface IDataChange : IDispatch
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -