#pragma once #include "Const.h" #include using namespace std; // 在这里声明 typedef struct __USEREQUIPINFO { int nEquipTypeID; int nEquipID; }USEREQUIPINFO, *PUSEREQUIPINFO; typedef struct __USERINFO { CString strTel; CString strMobileTel; CString strFax; CString strEmail; }USERINFO, *PUSERINFO; typedef struct __USERROLEINFO { int nEquipTypeID; int nEquipID; vector<__USERINFO> vtUserInfo; }USERROLEINFO, *PUSERROLEINFO; typedef struct __USERTELINFO { int nEquipTypeID; int nEquipID; CString strActiveTel; vector vtTel; }USERTELINFO, *PUSERTELINFO; extern CString g_strCommunity; extern bool g_bHaveControlPwd; extern DWORD g_nRunEditVarTick;//在运行状态编辑变量的TICK extern bool g_bRunEditVar;//是否在运行状态编辑变量 //版本信息ControlPwd=d41d8cd98f00b204e9800998ecf8427e extern CString g_strVersion; //日志 extern CHAR g_strDirectory[MAX_PATH_LENGTH + 1]; extern CHAR g_strAppName[MAX_PATH_LENGTH + 1]; //程序退出事件 extern HANDLE g_hRunObject; //Server extern CHAR g_strServerIP[MAX_EQUIP_IP + 1]; extern CHAR g_strServerPort[MAX_PORT + 1]; //Database extern CHAR g_strConnectString[MAX_PATH + 1]; extern CHAR g_strDBType[MAX_SERVER_LENGTH + 1]; extern CHAR g_strAccessFile[MAX_PATH_LENGTH + 1]; extern CHAR g_strServerName[MAX_SERVER_LENGTH + 1]; extern CHAR g_strDataBaseName[MAX_DATABASE_LENGTH + 1]; extern CHAR g_strUserName[MAX_USER_LENGTH + 1]; extern CHAR g_strPassword[MAX_PASSWORD_LENGTH + 1]; extern DWORD g_dwDataBasePort; //用户信息 extern CHAR g_strLoginUserID[MAX_USER_LENGTH + 1]; extern CHAR g_strLoginPwd[MAX_PASSWORD_LENGTH + 1]; extern CHAR g_strDefaultUserID[MAX_USER_LENGTH + 1]; extern CHAR g_strDefaultUserPwd[MAX_PASSWORD_LENGTH + 1]; extern INT g_nIsDemo; //RunParam extern INT g_nIsPoll; extern INT g_nPollInterval; extern INT g_nPollCount; extern CHAR g_strPollPath[MAX_VIEW_NUM][MAX_PATH]; extern CHAR g_strPollDesc[MAX_VIEW_NUM][MAX_DESC]; extern INT g_nPollIndex; extern DWORD g_dwTick; //AlarmMode extern INT g_nAlarmModeIsDlg; extern INT g_nAlarmModeIsSound; extern INT g_nAlarmModeSoundPlayNum; extern INT g_nAlarmToView; //Comm extern INT g_nCommDlgLevel; extern INT g_nCommWavLevel; //TTS参数配置 extern INT g_nTTSType; // TTS格式类型 //Toolbar显示选项 extern INT g_nToolbarTop; extern INT g_nToolbarLeft; extern INT g_nToolbarRun; extern INT g_nToolBarStatus; //资源字符串 extern CString g_strSet; extern CString g_strAdjust; extern CString g_strPictureLink; extern CString g_strExit; extern CString g_strExLink; extern CString g_strTestAlarm; extern CString g_strAlarmRed; extern CString g_strNoticeRed; extern CString g_strDeviceLog; extern CString g_strSystemLog; extern CString g_strVarManage; extern CString g_strUserManage; extern CString g_strPwdManage; extern CString g_strFirstPage; extern CString g_strNativageTree; extern CString g_strVarTypeID; extern CString g_strSelLine; extern CString g_strVarID; extern CString g_strVarUid1; extern CString g_strVarName1; extern CString g_strVarDesc; extern CString g_strVarDataLen; extern CString g_strOnDesc; extern CString g_strOffDesc; extern CString g_strMaxValues; extern CString g_strMinValues; extern CString g_strMaxScale; extern CString g_strMinScale; extern CString g_strLowerLimit; extern CString g_strUpperLimit; extern CString g_strNormalState; extern CString g_strSetValue; extern CString g_strRearm; extern CString g_strOffset; extern CString g_strUint; extern CString g_strCollectFreq; extern CString g_strCoef; extern CString g_strAlarmLevel; extern CString g_strReadWrite; extern CString g_strSaveData; extern CString g_strCollectThreadData; extern CString g_strSaveCurve; extern CString g_strIsDDE; extern CString g_strRegNum; extern CString g_strFuncID; extern CString g_strChildID; extern CString g_strItemID; extern CString g_strSnmpOid; extern CString g_strSnmpPublic; extern CString g_strDevTypeID; extern CString g_strVarStartAddr; extern CString g_strRs232Cmd; extern CString g_strRs232Type; extern CString g_strRs232Index; extern CString g_strIndentifyTime; extern CString g_strRedectTime; extern CString g_strReturnNormalAlarm; extern CString g_strShowCurrValue; extern CString g_strAlarmVarName; extern CString g_strVarUidIsBlank; extern CString g_strVarNameIsBlank; extern CString g_strVarNameExist; extern CString g_strVarName2; extern CString g_strSelDev; extern CString g_strStoneuTech; extern CString g_strPictureFile1; extern CString g_strCannotLoseAllForm; extern CString g_strStartBit; extern CString g_strEndBit; extern CString g_strVarBitExist; extern CString g_strSelDevice; extern CString g_strOldPasswordCannotBlank; extern CString g_strOldpasswordInCorrect; extern CString g_strpasswordInCorrect; extern CString g_strPasswordNotMatch1; extern CString g_strAll; extern CString g_strDevName; extern CString g_strHappentTime1; extern CString g_strEventArea; extern CString g_strCurrValue; extern CString g_strDateTime; extern CString g_strHappenTime2; extern CString g_strWarnContent; extern CString g_strAllDev; extern CString g_strEthernet; extern CString g_strMywizard; extern CString g_strDevNameInUse; extern CString g_strUserID; extern CString g_strHintUserName; extern CString g_strTel; extern CString g_strMobile; extern CString g_strFax; extern CString g_strMail; extern CString g_strStatus; extern CString g_strUserPwd; extern CString g_strUserNameCannotEmpty; extern CString g_strPasswordNotMatch2; extern CString g_strUserNameExit; extern CString g_strID; extern CString g_strDevUid2; extern CString g_strAlarmStatus; extern CString g_strAlarmStatusDesc; extern CString g_strNormalStatusID; extern CString g_strAlarmStatusIDCannotEmpty; extern CString g_strAlarmStatusDescCannotEmpty; extern CString g_strNormalStatusIDCannotBlank; extern CString g_strAlarmStatusInfoExist; extern CString g_strTimesNewRoman; extern CString g_strEntityProperty; extern CString g_strParamSet; extern CString g_strHour; extern CString g_strDate; extern CString g_strMean; extern CString g_strControl; extern CString g_strTRACE0; extern CString g_strAppwizardCreateApp; extern CString g_strPictureFile2; extern CString g_strSaveModify; extern CString g_strStoneuIspcms; extern CString g_strUnSelectEntity; extern CString g_strIsNotPrimitive; extern CString g_strSelect; extern CString g_strTrace2; extern CString g_strTline; extern CString g_strText; extern CString g_strRect; extern CString g_strOval; extern CString g_strButton; extern CString g_strData; extern CString g_strLed; extern CString g_strBar; extern CString g_strCurve; extern CString g_strLine; extern CString g_strBreaker; extern CString g_strSwitch; extern CString g_strGrid; extern CString g_strBitmap; extern CString g_strGif; extern CString g_strTransfer; extern CString g_strArc; extern CString g_strArrow; extern CString g_strPoly; extern CString g_strMLine; extern CString g_strPipe; extern CString g_strZhePipe; extern CString g_strYPipe; extern CString g_strWatch; extern CString g_strSingleBar; extern CString g_strRoundRect; extern CString g_strPie; extern CString g_strFan; extern CString g_strHisCurve; extern CString g_strTable; extern CString g_strComposite; extern CString g_strConnectionFailed; extern CString g_strMoniterSite; extern CString g_strDevice; extern CString g_strSerial; extern CString g_strDataDict; extern CString g_strVarSet; extern CString g_strScriptManage; extern CString g_strActionWithAlarm; extern CString g_strNoticeList; extern CString g_strSysParam; extern CString g_strExitConfirm; extern CString g_strIPComoccupy; extern CString g_strDevNumCannotBlank; extern CString g_strDevUidExist; extern CString g_strDevNameExist; extern CString g_strSerialPortInUse; extern CString g_strIPNotBlank; extern CString g_strComcanNot0; extern CString g_strNetDev; extern CString g_strIPConflict; extern CString g_strCannotCreateDirecitory; extern CString g_strDelDev; extern CString g_strDelView; extern CString g_strConfirm; extern CString g_strEventType; extern CString g_strEventInfo; extern CString g_strLowAlarm; extern CString g_strHighAlarm; extern CString g_strReturnNormal1; extern CString g_strReturnNormal2; extern CString g_strAlarm; extern CString g_strTime; extern CString g_strVarName3; extern CString g_strColumnName; extern CString g_strHeader; extern CString g_strFormat; extern CString g_strScriptPass; extern CString g_strScriptNameCannotEmpty; extern CString g_strStrVar; extern CString g_strDes; extern CString g_strOne; extern CString g_strTwo; extern CString g_strThree; extern CString g_strFour; extern CString g_strFine; extern CString g_strSix; extern CString g_strSeven; extern CString g_strEight; extern CString g_strNine; extern CString g_strTen; extern CString g_strHandred; extern CString g_strBilion; extern CString g_strWan; extern CString g_strThousand; extern CString g_strYuan1; extern CString g_strCent; extern CString g_strZero; extern CString g_strMinute; extern CString g_strYuan2; extern CString g_strDevDataLog; extern CString g_strOverWriteError; extern CString g_strSaveas; extern CString g_strTip; extern CString g_strScriptError; extern CString g_strLogicDoorinate; extern CString g_strFontNameCHT; extern CString g_strCharacter; extern CString g_strNormal; extern CString g_strIsNotice; extern CString g_strIsModify; extern CString g_strParamInit; extern CString g_strParamMin; extern CString g_strParamMax; extern CString g_strOCX; extern CString g_strGIF; extern CString g_strFlash; extern CString g_strRadio; extern CString g_strCheck; extern CString g_strLogType; extern CString g_strModbusType; extern CString g_strLogContent; extern CString g_strLogHappenTime; extern CString g_strNoPermit;//沒權限提示 extern CString g_strModifyPwdOK; extern CString g_strMonitorNameIsBlank; extern CString g_strMonitorNameCannotDel; extern CString g_strInputIsBlank; extern CString g_strPastDue; extern CString g_strNormalData; extern CString g_strAlarmData; extern CString g_strDealStatus; extern CString g_strAC_WaitConfig; extern CString g_strAC_ConfigSuccess; extern CString g_strAC_WaitOut; extern CString g_strAC_ConfigAllEvent; extern CString g_strAC_ConfigChooseEvent; extern CString g_strAC_DelAllEvent; extern CString g_strAC_DelChooseEvent; extern CString g_strEditMoreVarOK; extern CString g_strGroup; extern CString g_strDClickFirstOperate; extern CString g_strDelGroup; extern CString g_strAdd; extern CString g_strEdit; extern CString g_strDel; extern CString g_strDevice1; extern CString g_strVariant; extern CString g_strUser; extern CString g_strPwd; extern CString g_strTimePlan; extern CString g_strRegiserOCX; extern HINSTANCE g_hLangDLL; //权限 extern vector g_vtUserGroupID; extern vector g_vtUserRoomID; extern vector<__USEREQUIPINFO> g_vtUserEquipInfo; extern vector<__USERROLEINFO> g_vtUserRoleInfo; extern vector<__USERTELINFO> g_vtUserTelInfo; extern bool g_bPurviewAddEquip; extern bool g_bPurviewAddMobusEquip; extern bool g_bPurviewSetIP; extern bool g_bPurviewEquipTypeInfoManager; extern bool g_bPurviewEquipTypeInfoRead; extern bool g_bPurviewAreaInfoManager; extern bool g_bPurviewAreaInfoRead; extern bool g_bPurviewRoomInfoManager; extern bool g_bPurviewRoomInfoRead; extern bool g_bPurviewUserInfoManager; extern bool g_bPurviewUserInfoRead; extern bool g_bPurviewUserGroupInfoManager; extern bool g_bPurviewUserGroupInfoRead; extern bool g_bPurviewUserGroupPurviewManager; extern bool g_bPurviewUserPurviewManager; extern bool g_bPurviewUserDatePlan; extern bool g_bPurviewPurviewInfoManager; extern bool g_bPurviewPurviewInfoRead; extern bool g_bPurviewSPEquipManager; extern bool g_bPurviewSPEquipRead; extern bool g_bPurviewSensorManager; extern bool g_bPurviewSensorRead; extern bool g_bPurviewRelayControl; extern bool g_bPurviewVideoContorl; extern bool g_bPurviewEquipDatePlan; extern bool g_bPurviewRouterEquipManager; extern bool g_bPurviewRouterEquipRead; extern bool g_bPurviewUpsManager; extern bool g_bPurviewUpsRead; extern bool g_bPurviewVideoEquipManager; extern bool g_bPurviewVideoEquipRead; extern bool g_bPurviewTEPWManager; extern bool g_bPurviewTEPWRead; extern bool g_bPurviewUpsMGEManager; extern bool g_bPurviewUpsMGERead; extern bool g_bPurviewMcQuayManager; extern bool g_bPurviewMcQuayRead; extern bool g_bPurviewHGManager; extern bool g_bPurviewHGRead; extern bool g_bPurviewLeakageManager; extern bool g_bPurviewLeakageRead; extern bool g_bPurviewAirConditionManager; extern bool g_bPurviewAirConditionRead; extern bool g_bPurviewAirConditionOpen; extern bool g_bPurviewAirConditionClose; extern bool g_bPurviewCFIManager; extern bool g_bPurviewCFIRead; extern bool g_bPurviewEquipAlloc; //Dog extern HANDLE g_hSemDogRead; extern char g_szDogData[10]; //视频采集卡 extern INT g_nCardCount; //板卡个数 extern INT g_nDspsCount; //正确编码的通道个数 extern INT g_nStartingCapture[64]; //系统设置 extern BOOL g_bEnableTimeLimited; extern INT g_iAutoRunSystem; extern CHAR g_strLanguage[MAX_LANG_LENGTH + 1]; extern int g_nSoundTick; extern int g_nSoundPlayedNum; //视频卡 //视频选项卡标题 extern CString g_strVideoTabMonitorTitle; extern CString g_strVideoTabPlaybackTitle; extern CHAR g_strVideoCapPath[MAX_PATH + 1]; // 视频录像保存路径 //界面语言 extern CString g_strEmailDlgTitle; extern CString g_strEquipExist; extern CString g_strLogTypeEvent; extern CString g_strLogTypeData; extern CString g_strLogTypeError; extern CString g_strLogTypeWarning; extern CString g_strLogModMainThread; extern CString g_strLogModDB; extern CString g_strLogModEmail; extern CString g_strLogModSms; extern CString g_strLogModPing; extern CString g_strLogModTrap; extern CString g_strLogModSnmp; extern CString g_strLogModDog; extern CString g_strLogModNotice; extern CString g_strLogModContents; extern CString g_strLogModTime; extern BOOL g_bRun; //运行否 extern BOOL g_bEdit; //编辑否 extern int g_nElementNo; //选中的元件编号 extern CString g_strViewName; extern CString g_sCurrentPageName;//当前画面名 extern int g_nUserID; //当前用户的ID // 系统参数 extern BOOL g_bAlarmVoice; extern BOOL g_bHideTask; extern CString g_strStartPic; extern CString g_strStartPath; extern BOOL g_bStartRun; extern BOOL g_bEventAlarm; extern BOOL g_bFullScreen; // 事件参数 extern BOOL g_bControlEvent; extern CString g_strYkWave; extern BOOL g_bLoginEvent; extern CString g_strLoginWave; extern BOOL g_bReguEvent; extern CString g_strReguWave; extern BOOL g_bSetEvent; extern CString g_strSetWave; extern BOOL g_bYcEvent; extern CString g_strYcWave; extern BOOL g_bYxChangeEve; extern CString g_strYxChangeWave; //错误代码,提示 extern CHAR g_strErrorExecSql[MAX_ERROR_LEN + 1]; extern CHAR g_strErrorDBDisConnection[MAX_ERROR_LEN + 1]; //告警提示 extern CHAR g_strMsgSelectDel[MAX_ERROR_LEN + 1]; extern CHAR g_strMsgConfirmDel[MAX_ERROR_LEN + 1]; extern CHAR g_strMsgEditSuccess[MAX_ERROR_LEN + 1]; extern CHAR g_strMsgSelectEdit[MAX_ERROR_LEN + 1]; extern CHAR g_strMsgUserNotNULL[MAX_ERROR_LEN + 1]; extern CHAR g_strMsgPwdNotNULL[MAX_ERROR_LEN + 1]; extern CHAR g_strMsgUserInvalid[MAX_ERROR_LEN + 1]; extern CHAR g_strMsgConfirmDelRecord[MAX_ERROR_LEN + 1]; extern CHAR g_strMsgPrompt[MAX_ERROR_LEN + 1]; extern CHAR g_strMsgUserDisable[MAX_ERROR_LEN + 1]; extern CHAR g_strMsgDBConnectionSuccess[MAX_ERROR_LEN + 1]; extern CHAR g_strMsgDBConnectionFail[MAX_ERROR_LEN + 1]; //sys function extern void GetTokens(CStringArray * pTokens, CString sSource, CString sDelimiter); extern BOOL UserRoomHasPurview( int nRoomID ); //视频采集卡动态库输出函数 typedef void (WINAPI *MySTONEU_DLLCreateVideoView)(CRuntimeClass** view); typedef INT (WINAPI *MySTONEU_DLLGetTotalBoardCount)(void); typedef INT (WINAPI *MySTONEU_DLLGetTotalDSPCount)(void); typedef INT (WINAPI *MySTONEU_DLLGetDspCount)(void); typedef INT (WINAPI *MySTONEU_DLLInitHCCard)(void); typedef INT (WINAPI *MySTONEU_DLLUnInitHCCard)(void); typedef INT (WINAPI *MySTONEU_DLLDestroyVideoView)(void); typedef INT (WINAPI *MySTONEU_DLLChannelDblClk)(int nID, int nChannelNo); typedef INT (WINAPI *MySTONEU_DLLStartCap)( int nID, CHAR *pStrEquipIP, int nChannelID, CHAR *pStrCapPath ); typedef INT (WINAPI *MySTONEU_DLLStopCap)( int nID, CHAR *pStrEquipIP, int nChannelID ); typedef INT (WINAPI *MySTONEU_DLLStartMotionDetection)( int nMotionDetectPrec ); typedef INT (WINAPI *MySTONEU_DLLStopMotionDetection)( void ); typedef INT (WINAPI *MySTONEU_DLLVideoCapCallBack)( void *pPara ); typedef INT (WINAPI *MySTONEU_DLLSetCapPath)( CHAR *pVideoCapPath ); extern HINSTANCE g_hVideoLibModule; extern MySTONEU_DLLCreateVideoView pStoneUDllCreateVideoView; extern MySTONEU_DLLGetTotalBoardCount pStoneUDllGetTotalBoardCount; extern MySTONEU_DLLGetTotalDSPCount pStoneUDllGetTotalDSPCount; extern MySTONEU_DLLGetDspCount pStoneUDllGetDSPCount; extern MySTONEU_DLLInitHCCard pStoneUDllInitHCCard; extern MySTONEU_DLLUnInitHCCard pStoneUDllUnInitHCCard; extern MySTONEU_DLLDestroyVideoView pStoneUDllDestroyVideoView; extern MySTONEU_DLLChannelDblClk pStoneUDllChannelDblClk; extern MySTONEU_DLLStartCap pStoneUDllStartCap; extern MySTONEU_DLLStopCap pStoneUDllStopCap; extern MySTONEU_DLLStartMotionDetection pStoneUDllStartMotionDetection; extern MySTONEU_DLLStopMotionDetection pStoneUDllStopMotionDetection; extern MySTONEU_DLLVideoCapCallBack pStoneUDllVideoCapCallBack; extern MySTONEU_DLLSetCapPath pSetCapPath; //TTS动态库输出函数 typedef BOOL (WINAPI *MySTONEU_DLLRegisterTTS)(void); typedef void (WINAPI *MySTONEU_DLLUnRegisterTTS)(void); typedef void (WINAPI *MySTONEU_DLLTxtToWav)( char *pText, char *pWavFileName, int nVoiceType, int nRate, int nVolume ); extern HINSTANCE g_hTTSModule; extern MySTONEU_DLLRegisterTTS pStoneUDllRegisterTTS; extern MySTONEU_DLLUnRegisterTTS pStoneUDllUnRegisterTTS; extern MySTONEU_DLLTxtToWav pStoneUDLLTxtToWav; //md5全局变量 #ifndef PROTOTYPES #define PROTOTYPES 1 #endif /* POINTER defines a generic pointer type */ typedef unsigned char *POINTER; /* UINT2 defines a two byte word */ typedef unsigned short int UINT2; /* UINT4 defines a four byte word */ typedef unsigned long int UINT4; /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it returns an empty list. */ #if PROTOTYPES #define PROTO_LIST(list) list #else #define PROTO_LIST(list) () #endif // 不使用登陆框进行编辑或运行模式 [8/29/2013 hero] //-------------------------------------------------------------------// extern void g_Login();