private static extern Int32 GetControlCode_PTZ_TC615_P(Int32 _iAction, ref CONTROL_PARAM _cParam);
public static Int32 NetClient_GetControlCode(string strDevType, Int32 _iAction, ref CONTROL_PARAM _cParam) { if (strDevType == "DOME_PELCO_D") { return(GetControlCode_DOME_PELCO_D(_iAction, ref _cParam)); } if (strDevType == "DOME_PELCO_P") { return(GetControlCode_DOME_PELCO_P(_iAction, ref _cParam)); } if (strDevType == "DOME_TIANDY") { return(GetControlCode_DOME_TIANDY(_iAction, ref _cParam)); } if (strDevType == "PTZ_PELCO_D") { return(GetControlCode_PTZ_PELCO_D(_iAction, ref _cParam)); } if (strDevType == "PTZ_PELCO_P") { return(GetControlCode_PTZ_PELCO_P(_iAction, ref _cParam)); } if (strDevType == "PTZ_TC615_P") { return(GetControlCode_PTZ_TC615_P(_iAction, ref _cParam)); } return(-1); }
private static extern Int32 GetControlCode_DOME_TIANDY(Int32 _iAction, ref CONTROL_PARAM _cParam);