Global.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. #pragma once
  2. #include "Const.h"
  3. #include <vector>
  4. using namespace std; // 在这里声明
  5. typedef struct __USEREQUIPINFO
  6. {
  7. int nEquipTypeID;
  8. int nEquipID;
  9. }USEREQUIPINFO, *PUSEREQUIPINFO;
  10. typedef struct __USERINFO
  11. {
  12. CString strTel;
  13. CString strMobileTel;
  14. CString strFax;
  15. CString strEmail;
  16. }USERINFO, *PUSERINFO;
  17. typedef struct __USERROLEINFO
  18. {
  19. int nEquipTypeID;
  20. int nEquipID;
  21. vector<__USERINFO> vtUserInfo;
  22. }USERROLEINFO, *PUSERROLEINFO;
  23. typedef struct __USERTELINFO
  24. {
  25. int nEquipTypeID;
  26. int nEquipID;
  27. CString strActiveTel;
  28. vector<CString> vtTel;
  29. }USERTELINFO, *PUSERTELINFO;
  30. extern CString g_strCommunity;
  31. extern bool g_bHaveControlPwd;
  32. extern DWORD g_nRunEditVarTick;//在运行状态编辑变量的TICK
  33. extern bool g_bRunEditVar;//是否在运行状态编辑变量
  34. //版本信息ControlPwd=d41d8cd98f00b204e9800998ecf8427e
  35. extern CString g_strVersion;
  36. //日志
  37. extern CHAR g_strDirectory[MAX_PATH_LENGTH + 1];
  38. extern CHAR g_strAppName[MAX_PATH_LENGTH + 1];
  39. //程序退出事件
  40. extern HANDLE g_hRunObject;
  41. //Server
  42. extern CHAR g_strServerIP[MAX_EQUIP_IP + 1];
  43. extern CHAR g_strServerPort[MAX_PORT + 1];
  44. //Database
  45. extern CHAR g_strConnectString[MAX_PATH + 1];
  46. extern CHAR g_strDBType[MAX_SERVER_LENGTH + 1];
  47. extern CHAR g_strAccessFile[MAX_PATH_LENGTH + 1];
  48. extern CHAR g_strServerName[MAX_SERVER_LENGTH + 1];
  49. extern CHAR g_strDataBaseName[MAX_DATABASE_LENGTH + 1];
  50. extern CHAR g_strUserName[MAX_USER_LENGTH + 1];
  51. extern CHAR g_strPassword[MAX_PASSWORD_LENGTH + 1];
  52. extern DWORD g_dwDataBasePort;
  53. //用户信息
  54. extern CHAR g_strLoginUserID[MAX_USER_LENGTH + 1];
  55. extern CHAR g_strLoginPwd[MAX_PASSWORD_LENGTH + 1];
  56. extern CHAR g_strDefaultUserID[MAX_USER_LENGTH + 1];
  57. extern CHAR g_strDefaultUserPwd[MAX_PASSWORD_LENGTH + 1];
  58. extern INT g_nIsDemo;
  59. //RunParam
  60. extern INT g_nIsPoll;
  61. extern INT g_nPollInterval;
  62. extern INT g_nPollCount;
  63. extern CHAR g_strPollPath[MAX_VIEW_NUM][MAX_PATH];
  64. extern CHAR g_strPollDesc[MAX_VIEW_NUM][MAX_DESC];
  65. extern INT g_nPollIndex;
  66. extern DWORD g_dwTick;
  67. //AlarmMode
  68. extern INT g_nAlarmModeIsDlg;
  69. extern INT g_nAlarmModeIsSound;
  70. extern INT g_nAlarmModeSoundPlayNum;
  71. extern INT g_nAlarmToView;
  72. //Comm
  73. extern INT g_nCommDlgLevel;
  74. extern INT g_nCommWavLevel;
  75. //TTS参数配置
  76. extern INT g_nTTSType; // TTS格式类型
  77. //Toolbar显示选项
  78. extern INT g_nToolbarTop;
  79. extern INT g_nToolbarLeft;
  80. extern INT g_nToolbarRun;
  81. extern INT g_nToolBarStatus;
  82. //资源字符串
  83. extern CString g_strSet;
  84. extern CString g_strAdjust;
  85. extern CString g_strPictureLink;
  86. extern CString g_strExit;
  87. extern CString g_strExLink;
  88. extern CString g_strTestAlarm;
  89. extern CString g_strAlarmRed;
  90. extern CString g_strNoticeRed;
  91. extern CString g_strDeviceLog;
  92. extern CString g_strSystemLog;
  93. extern CString g_strVarManage;
  94. extern CString g_strUserManage;
  95. extern CString g_strPwdManage;
  96. extern CString g_strFirstPage;
  97. extern CString g_strNativageTree;
  98. extern CString g_strVarTypeID;
  99. extern CString g_strSelLine;
  100. extern CString g_strVarID;
  101. extern CString g_strVarUid1;
  102. extern CString g_strVarName1;
  103. extern CString g_strVarDesc;
  104. extern CString g_strVarDataLen;
  105. extern CString g_strOnDesc;
  106. extern CString g_strOffDesc;
  107. extern CString g_strMaxValues;
  108. extern CString g_strMinValues;
  109. extern CString g_strMaxScale;
  110. extern CString g_strMinScale;
  111. extern CString g_strLowerLimit;
  112. extern CString g_strUpperLimit;
  113. extern CString g_strNormalState;
  114. extern CString g_strSetValue;
  115. extern CString g_strRearm;
  116. extern CString g_strOffset;
  117. extern CString g_strUint;
  118. extern CString g_strCollectFreq;
  119. extern CString g_strCoef;
  120. extern CString g_strAlarmLevel;
  121. extern CString g_strReadWrite;
  122. extern CString g_strSaveData;
  123. extern CString g_strCollectThreadData;
  124. extern CString g_strSaveCurve;
  125. extern CString g_strIsDDE;
  126. extern CString g_strRegNum;
  127. extern CString g_strFuncID;
  128. extern CString g_strChildID;
  129. extern CString g_strItemID;
  130. extern CString g_strSnmpOid;
  131. extern CString g_strSnmpPublic;
  132. extern CString g_strDevTypeID;
  133. extern CString g_strVarStartAddr;
  134. extern CString g_strRs232Cmd;
  135. extern CString g_strRs232Type;
  136. extern CString g_strRs232Index;
  137. extern CString g_strIndentifyTime;
  138. extern CString g_strRedectTime;
  139. extern CString g_strReturnNormalAlarm;
  140. extern CString g_strShowCurrValue;
  141. extern CString g_strAlarmVarName;
  142. extern CString g_strVarUidIsBlank;
  143. extern CString g_strVarNameIsBlank;
  144. extern CString g_strVarNameExist;
  145. extern CString g_strVarName2;
  146. extern CString g_strSelDev;
  147. extern CString g_strStoneuTech;
  148. extern CString g_strPictureFile1;
  149. extern CString g_strCannotLoseAllForm;
  150. extern CString g_strStartBit;
  151. extern CString g_strEndBit;
  152. extern CString g_strVarBitExist;
  153. extern CString g_strSelDevice;
  154. extern CString g_strOldPasswordCannotBlank;
  155. extern CString g_strOldpasswordInCorrect;
  156. extern CString g_strpasswordInCorrect;
  157. extern CString g_strPasswordNotMatch1;
  158. extern CString g_strAll;
  159. extern CString g_strDevName;
  160. extern CString g_strHappentTime1;
  161. extern CString g_strEventArea;
  162. extern CString g_strCurrValue;
  163. extern CString g_strDateTime;
  164. extern CString g_strHappenTime2;
  165. extern CString g_strWarnContent;
  166. extern CString g_strAllDev;
  167. extern CString g_strEthernet;
  168. extern CString g_strMywizard;
  169. extern CString g_strDevNameInUse;
  170. extern CString g_strUserID;
  171. extern CString g_strHintUserName;
  172. extern CString g_strTel;
  173. extern CString g_strMobile;
  174. extern CString g_strFax;
  175. extern CString g_strMail;
  176. extern CString g_strStatus;
  177. extern CString g_strUserPwd;
  178. extern CString g_strUserNameCannotEmpty;
  179. extern CString g_strPasswordNotMatch2;
  180. extern CString g_strUserNameExit;
  181. extern CString g_strID;
  182. extern CString g_strDevUid2;
  183. extern CString g_strAlarmStatus;
  184. extern CString g_strAlarmStatusDesc;
  185. extern CString g_strNormalStatusID;
  186. extern CString g_strAlarmStatusIDCannotEmpty;
  187. extern CString g_strAlarmStatusDescCannotEmpty;
  188. extern CString g_strNormalStatusIDCannotBlank;
  189. extern CString g_strAlarmStatusInfoExist;
  190. extern CString g_strTimesNewRoman;
  191. extern CString g_strEntityProperty;
  192. extern CString g_strParamSet;
  193. extern CString g_strHour;
  194. extern CString g_strDate;
  195. extern CString g_strMean;
  196. extern CString g_strControl;
  197. extern CString g_strTRACE0;
  198. extern CString g_strAppwizardCreateApp;
  199. extern CString g_strPictureFile2;
  200. extern CString g_strSaveModify;
  201. extern CString g_strStoneuIspcms;
  202. extern CString g_strUnSelectEntity;
  203. extern CString g_strIsNotPrimitive;
  204. extern CString g_strSelect;
  205. extern CString g_strTrace2;
  206. extern CString g_strTline;
  207. extern CString g_strText;
  208. extern CString g_strRect;
  209. extern CString g_strOval;
  210. extern CString g_strButton;
  211. extern CString g_strData;
  212. extern CString g_strLed;
  213. extern CString g_strBar;
  214. extern CString g_strCurve;
  215. extern CString g_strLine;
  216. extern CString g_strBreaker;
  217. extern CString g_strSwitch;
  218. extern CString g_strGrid;
  219. extern CString g_strBitmap;
  220. extern CString g_strGif;
  221. extern CString g_strTransfer;
  222. extern CString g_strArc;
  223. extern CString g_strArrow;
  224. extern CString g_strPoly;
  225. extern CString g_strMLine;
  226. extern CString g_strPipe;
  227. extern CString g_strZhePipe;
  228. extern CString g_strYPipe;
  229. extern CString g_strWatch;
  230. extern CString g_strSingleBar;
  231. extern CString g_strRoundRect;
  232. extern CString g_strPie;
  233. extern CString g_strFan;
  234. extern CString g_strHisCurve;
  235. extern CString g_strTable;
  236. extern CString g_strComposite;
  237. extern CString g_strConnectionFailed;
  238. extern CString g_strMoniterSite;
  239. extern CString g_strDevice;
  240. extern CString g_strSerial;
  241. extern CString g_strDataDict;
  242. extern CString g_strVarSet;
  243. extern CString g_strScriptManage;
  244. extern CString g_strActionWithAlarm;
  245. extern CString g_strNoticeList;
  246. extern CString g_strSysParam;
  247. extern CString g_strExitConfirm;
  248. extern CString g_strIPComoccupy;
  249. extern CString g_strDevNumCannotBlank;
  250. extern CString g_strDevUidExist;
  251. extern CString g_strDevNameExist;
  252. extern CString g_strSerialPortInUse;
  253. extern CString g_strIPNotBlank;
  254. extern CString g_strComcanNot0;
  255. extern CString g_strNetDev;
  256. extern CString g_strIPConflict;
  257. extern CString g_strCannotCreateDirecitory;
  258. extern CString g_strDelDev;
  259. extern CString g_strDelView;
  260. extern CString g_strConfirm;
  261. extern CString g_strEventType;
  262. extern CString g_strEventInfo;
  263. extern CString g_strLowAlarm;
  264. extern CString g_strHighAlarm;
  265. extern CString g_strReturnNormal1;
  266. extern CString g_strReturnNormal2;
  267. extern CString g_strAlarm;
  268. extern CString g_strTime;
  269. extern CString g_strVarName3;
  270. extern CString g_strColumnName;
  271. extern CString g_strHeader;
  272. extern CString g_strFormat;
  273. extern CString g_strScriptPass;
  274. extern CString g_strScriptNameCannotEmpty;
  275. extern CString g_strStrVar;
  276. extern CString g_strDes;
  277. extern CString g_strOne;
  278. extern CString g_strTwo;
  279. extern CString g_strThree;
  280. extern CString g_strFour;
  281. extern CString g_strFine;
  282. extern CString g_strSix;
  283. extern CString g_strSeven;
  284. extern CString g_strEight;
  285. extern CString g_strNine;
  286. extern CString g_strTen;
  287. extern CString g_strHandred;
  288. extern CString g_strBilion;
  289. extern CString g_strWan;
  290. extern CString g_strThousand;
  291. extern CString g_strYuan1;
  292. extern CString g_strCent;
  293. extern CString g_strZero;
  294. extern CString g_strMinute;
  295. extern CString g_strYuan2;
  296. extern CString g_strDevDataLog;
  297. extern CString g_strOverWriteError;
  298. extern CString g_strSaveas;
  299. extern CString g_strTip;
  300. extern CString g_strScriptError;
  301. extern CString g_strLogicDoorinate;
  302. extern CString g_strFontNameCHT;
  303. extern CString g_strCharacter;
  304. extern CString g_strNormal;
  305. extern CString g_strIsNotice;
  306. extern CString g_strIsModify;
  307. extern CString g_strParamInit;
  308. extern CString g_strParamMin;
  309. extern CString g_strParamMax;
  310. extern CString g_strOCX;
  311. extern CString g_strGIF;
  312. extern CString g_strFlash;
  313. extern CString g_strRadio;
  314. extern CString g_strCheck;
  315. extern CString g_strLogType;
  316. extern CString g_strModbusType;
  317. extern CString g_strLogContent;
  318. extern CString g_strLogHappenTime;
  319. extern CString g_strNoPermit;//沒權限提示
  320. extern CString g_strModifyPwdOK;
  321. extern CString g_strMonitorNameIsBlank;
  322. extern CString g_strMonitorNameCannotDel;
  323. extern CString g_strInputIsBlank;
  324. extern CString g_strPastDue;
  325. extern CString g_strNormalData;
  326. extern CString g_strAlarmData;
  327. extern CString g_strDealStatus;
  328. extern CString g_strAC_WaitConfig;
  329. extern CString g_strAC_ConfigSuccess;
  330. extern CString g_strAC_WaitOut;
  331. extern CString g_strAC_ConfigAllEvent;
  332. extern CString g_strAC_ConfigChooseEvent;
  333. extern CString g_strAC_DelAllEvent;
  334. extern CString g_strAC_DelChooseEvent;
  335. extern CString g_strEditMoreVarOK;
  336. extern CString g_strGroup;
  337. extern CString g_strDClickFirstOperate;
  338. extern CString g_strDelGroup;
  339. extern CString g_strAdd;
  340. extern CString g_strEdit;
  341. extern CString g_strDel;
  342. extern CString g_strDevice1;
  343. extern CString g_strVariant;
  344. extern CString g_strUser;
  345. extern CString g_strPwd;
  346. extern CString g_strTimePlan;
  347. extern CString g_strRegiserOCX;
  348. extern HINSTANCE g_hLangDLL;
  349. //权限
  350. extern vector<int> g_vtUserGroupID;
  351. extern vector<int> g_vtUserRoomID;
  352. extern vector<__USEREQUIPINFO> g_vtUserEquipInfo;
  353. extern vector<__USERROLEINFO> g_vtUserRoleInfo;
  354. extern vector<__USERTELINFO> g_vtUserTelInfo;
  355. extern bool g_bPurviewAddEquip;
  356. extern bool g_bPurviewAddMobusEquip;
  357. extern bool g_bPurviewSetIP;
  358. extern bool g_bPurviewEquipTypeInfoManager;
  359. extern bool g_bPurviewEquipTypeInfoRead;
  360. extern bool g_bPurviewAreaInfoManager;
  361. extern bool g_bPurviewAreaInfoRead;
  362. extern bool g_bPurviewRoomInfoManager;
  363. extern bool g_bPurviewRoomInfoRead;
  364. extern bool g_bPurviewUserInfoManager;
  365. extern bool g_bPurviewUserInfoRead;
  366. extern bool g_bPurviewUserGroupInfoManager;
  367. extern bool g_bPurviewUserGroupInfoRead;
  368. extern bool g_bPurviewUserGroupPurviewManager;
  369. extern bool g_bPurviewUserPurviewManager;
  370. extern bool g_bPurviewUserDatePlan;
  371. extern bool g_bPurviewPurviewInfoManager;
  372. extern bool g_bPurviewPurviewInfoRead;
  373. extern bool g_bPurviewSPEquipManager;
  374. extern bool g_bPurviewSPEquipRead;
  375. extern bool g_bPurviewSensorManager;
  376. extern bool g_bPurviewSensorRead;
  377. extern bool g_bPurviewRelayControl;
  378. extern bool g_bPurviewVideoContorl;
  379. extern bool g_bPurviewEquipDatePlan;
  380. extern bool g_bPurviewRouterEquipManager;
  381. extern bool g_bPurviewRouterEquipRead;
  382. extern bool g_bPurviewUpsManager;
  383. extern bool g_bPurviewUpsRead;
  384. extern bool g_bPurviewVideoEquipManager;
  385. extern bool g_bPurviewVideoEquipRead;
  386. extern bool g_bPurviewTEPWManager;
  387. extern bool g_bPurviewTEPWRead;
  388. extern bool g_bPurviewUpsMGEManager;
  389. extern bool g_bPurviewUpsMGERead;
  390. extern bool g_bPurviewMcQuayManager;
  391. extern bool g_bPurviewMcQuayRead;
  392. extern bool g_bPurviewHGManager;
  393. extern bool g_bPurviewHGRead;
  394. extern bool g_bPurviewLeakageManager;
  395. extern bool g_bPurviewLeakageRead;
  396. extern bool g_bPurviewAirConditionManager;
  397. extern bool g_bPurviewAirConditionRead;
  398. extern bool g_bPurviewAirConditionOpen;
  399. extern bool g_bPurviewAirConditionClose;
  400. extern bool g_bPurviewCFIManager;
  401. extern bool g_bPurviewCFIRead;
  402. extern bool g_bPurviewEquipAlloc;
  403. //Dog
  404. extern HANDLE g_hSemDogRead;
  405. extern char g_szDogData[10];
  406. //视频采集卡
  407. extern INT g_nCardCount; //板卡个数
  408. extern INT g_nDspsCount; //正确编码的通道个数
  409. extern INT g_nStartingCapture[64];
  410. //系统设置
  411. extern BOOL g_bEnableTimeLimited;
  412. extern INT g_iAutoRunSystem;
  413. extern CHAR g_strLanguage[MAX_LANG_LENGTH + 1];
  414. extern int g_nSoundTick;
  415. extern int g_nSoundPlayedNum;
  416. //视频卡
  417. //视频选项卡标题
  418. extern CString g_strVideoTabMonitorTitle;
  419. extern CString g_strVideoTabPlaybackTitle;
  420. extern CHAR g_strVideoCapPath[MAX_PATH + 1]; // 视频录像保存路径
  421. //界面语言
  422. extern CString g_strEmailDlgTitle;
  423. extern CString g_strEquipExist;
  424. extern CString g_strLogTypeEvent;
  425. extern CString g_strLogTypeData;
  426. extern CString g_strLogTypeError;
  427. extern CString g_strLogTypeWarning;
  428. extern CString g_strLogModMainThread;
  429. extern CString g_strLogModDB;
  430. extern CString g_strLogModEmail;
  431. extern CString g_strLogModSms;
  432. extern CString g_strLogModPing;
  433. extern CString g_strLogModTrap;
  434. extern CString g_strLogModSnmp;
  435. extern CString g_strLogModDog;
  436. extern CString g_strLogModNotice;
  437. extern CString g_strLogModContents;
  438. extern CString g_strLogModTime;
  439. extern BOOL g_bRun; //运行否
  440. extern BOOL g_bEdit; //编辑否
  441. extern int g_nElementNo; //选中的元件编号
  442. extern CString g_strViewName;
  443. extern CString g_sCurrentPageName;//当前画面名
  444. extern int g_nUserID; //当前用户的ID
  445. // 系统参数
  446. extern BOOL g_bAlarmVoice;
  447. extern BOOL g_bHideTask;
  448. extern CString g_strStartPic;
  449. extern CString g_strStartPath;
  450. extern BOOL g_bStartRun;
  451. extern BOOL g_bEventAlarm;
  452. extern BOOL g_bFullScreen;
  453. // 事件参数
  454. extern BOOL g_bControlEvent;
  455. extern CString g_strYkWave;
  456. extern BOOL g_bLoginEvent;
  457. extern CString g_strLoginWave;
  458. extern BOOL g_bReguEvent;
  459. extern CString g_strReguWave;
  460. extern BOOL g_bSetEvent;
  461. extern CString g_strSetWave;
  462. extern BOOL g_bYcEvent;
  463. extern CString g_strYcWave;
  464. extern BOOL g_bYxChangeEve;
  465. extern CString g_strYxChangeWave;
  466. //错误代码,提示
  467. extern CHAR g_strErrorExecSql[MAX_ERROR_LEN + 1];
  468. extern CHAR g_strErrorDBDisConnection[MAX_ERROR_LEN + 1];
  469. //告警提示
  470. extern CHAR g_strMsgSelectDel[MAX_ERROR_LEN + 1];
  471. extern CHAR g_strMsgConfirmDel[MAX_ERROR_LEN + 1];
  472. extern CHAR g_strMsgEditSuccess[MAX_ERROR_LEN + 1];
  473. extern CHAR g_strMsgSelectEdit[MAX_ERROR_LEN + 1];
  474. extern CHAR g_strMsgUserNotNULL[MAX_ERROR_LEN + 1];
  475. extern CHAR g_strMsgPwdNotNULL[MAX_ERROR_LEN + 1];
  476. extern CHAR g_strMsgUserInvalid[MAX_ERROR_LEN + 1];
  477. extern CHAR g_strMsgConfirmDelRecord[MAX_ERROR_LEN + 1];
  478. extern CHAR g_strMsgPrompt[MAX_ERROR_LEN + 1];
  479. extern CHAR g_strMsgUserDisable[MAX_ERROR_LEN + 1];
  480. extern CHAR g_strMsgDBConnectionSuccess[MAX_ERROR_LEN + 1];
  481. extern CHAR g_strMsgDBConnectionFail[MAX_ERROR_LEN + 1];
  482. //sys function
  483. extern void GetTokens(CStringArray * pTokens, CString sSource, CString sDelimiter);
  484. extern BOOL UserRoomHasPurview( int nRoomID );
  485. //视频采集卡动态库输出函数
  486. typedef void (WINAPI *MySTONEU_DLLCreateVideoView)(CRuntimeClass** view);
  487. typedef INT (WINAPI *MySTONEU_DLLGetTotalBoardCount)(void);
  488. typedef INT (WINAPI *MySTONEU_DLLGetTotalDSPCount)(void);
  489. typedef INT (WINAPI *MySTONEU_DLLGetDspCount)(void);
  490. typedef INT (WINAPI *MySTONEU_DLLInitHCCard)(void);
  491. typedef INT (WINAPI *MySTONEU_DLLUnInitHCCard)(void);
  492. typedef INT (WINAPI *MySTONEU_DLLDestroyVideoView)(void);
  493. typedef INT (WINAPI *MySTONEU_DLLChannelDblClk)(int nID, int nChannelNo);
  494. typedef INT (WINAPI *MySTONEU_DLLStartCap)( int nID, CHAR *pStrEquipIP, int nChannelID, CHAR *pStrCapPath );
  495. typedef INT (WINAPI *MySTONEU_DLLStopCap)( int nID, CHAR *pStrEquipIP, int nChannelID );
  496. typedef INT (WINAPI *MySTONEU_DLLStartMotionDetection)( int nMotionDetectPrec );
  497. typedef INT (WINAPI *MySTONEU_DLLStopMotionDetection)( void );
  498. typedef INT (WINAPI *MySTONEU_DLLVideoCapCallBack)( void *pPara );
  499. typedef INT (WINAPI *MySTONEU_DLLSetCapPath)( CHAR *pVideoCapPath );
  500. extern HINSTANCE g_hVideoLibModule;
  501. extern MySTONEU_DLLCreateVideoView pStoneUDllCreateVideoView;
  502. extern MySTONEU_DLLGetTotalBoardCount pStoneUDllGetTotalBoardCount;
  503. extern MySTONEU_DLLGetTotalDSPCount pStoneUDllGetTotalDSPCount;
  504. extern MySTONEU_DLLGetDspCount pStoneUDllGetDSPCount;
  505. extern MySTONEU_DLLInitHCCard pStoneUDllInitHCCard;
  506. extern MySTONEU_DLLUnInitHCCard pStoneUDllUnInitHCCard;
  507. extern MySTONEU_DLLDestroyVideoView pStoneUDllDestroyVideoView;
  508. extern MySTONEU_DLLChannelDblClk pStoneUDllChannelDblClk;
  509. extern MySTONEU_DLLStartCap pStoneUDllStartCap;
  510. extern MySTONEU_DLLStopCap pStoneUDllStopCap;
  511. extern MySTONEU_DLLStartMotionDetection pStoneUDllStartMotionDetection;
  512. extern MySTONEU_DLLStopMotionDetection pStoneUDllStopMotionDetection;
  513. extern MySTONEU_DLLVideoCapCallBack pStoneUDllVideoCapCallBack;
  514. extern MySTONEU_DLLSetCapPath pSetCapPath;
  515. //TTS动态库输出函数
  516. typedef BOOL (WINAPI *MySTONEU_DLLRegisterTTS)(void);
  517. typedef void (WINAPI *MySTONEU_DLLUnRegisterTTS)(void);
  518. typedef void (WINAPI *MySTONEU_DLLTxtToWav)( char *pText, char *pWavFileName, int nVoiceType, int nRate, int nVolume );
  519. extern HINSTANCE g_hTTSModule;
  520. extern MySTONEU_DLLRegisterTTS pStoneUDllRegisterTTS;
  521. extern MySTONEU_DLLUnRegisterTTS pStoneUDllUnRegisterTTS;
  522. extern MySTONEU_DLLTxtToWav pStoneUDLLTxtToWav;
  523. //md5全局变量
  524. #ifndef PROTOTYPES
  525. #define PROTOTYPES 1
  526. #endif
  527. /* POINTER defines a generic pointer type */
  528. typedef unsigned char *POINTER;
  529. /* UINT2 defines a two byte word */
  530. typedef unsigned short int UINT2;
  531. /* UINT4 defines a four byte word */
  532. typedef unsigned long int UINT4;
  533. /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
  534. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
  535. returns an empty list.
  536. */
  537. #if PROTOTYPES
  538. #define PROTO_LIST(list) list
  539. #else
  540. #define PROTO_LIST(list) ()
  541. #endif
  542. // 不使用登陆框进行编辑或运行模式 [8/29/2013 hero]
  543. //-------------------------------------------------------------------//
  544. extern void g_Login();