shpa3api.cs
来自「三汇模拟语音卡」· CS 代码 · 共 1,058 行 · 第 1/5 页
CS
1,058 行
[DllImport("SHP_A3.dll")]public static extern int SsmGetOverallEnergyAllCh(int nBeginCh, int nChNum, ref uint pdwEnergyTable);
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@ BARGEIN OPERATION @@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[DllImport("SHP_A3.dll")]public static extern int SsmSetNoSoundDtrmTime(int ch, uint dwIsNoSoundDtrTime);
[DllImport("SHP_A3.dll")]public static extern int SsmSetIsBargeInDtrmTime(int ch, ushort wIsBargeInDtrmTime);
[DllImport("SHP_A3.dll")]public static extern int SsmSetBargeInSens(int ch, int nBargeInSens);
[DllImport("SHP_A3.dll")]public static extern int SsmGetNoSoundTime(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetNoSoundDtrmTime(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetIsBargeInDtrmTime(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetBargeInSens(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmDetectBargeIn(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmDetectNoSound(int ch);
//设置模拟电话线相对能量被叫摘机检测参数
//返回值 0:操作成功, -1:操作失败
[DllImport("SHP_A3.dll")]public static extern int SsmSetCalleeHookDetectP(int ch, // 通道号
ushort wMulti, //预定倍数
ushort wValidTime); //有效时间
//读取模拟电话线相对能量被叫摘机检测参数
//返回值 0:操作成功, -1:操作失败
[DllImport("SHP_A3.dll")]public static extern int SsmGetCalleeHookDetectP(int ch, // 通道号
ref ushort pwMulti, //预定倍数
ref ushort pwValidTime); //有效时间
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@ RING DETECT OPERATION @@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[DllImport("SHP_A3.dll")]public static extern int SsmQueryOpRingDetect(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetRingFlag(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetRingCount(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmClearRingCount(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmChkOpCallerId(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetCallerId(int ch, StringBuilder szCallerId);
[DllImport("SHP_A3.dll")]public static extern string SsmGetCallerIdA(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetCallerIdEx(int ch, StringBuilder szCallerIdEx);
[DllImport("SHP_A3.dll")]public static extern int SsmClearCallerId(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmClearCallerIdEx(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetCallerName(int ch, StringBuilder szCallerName);
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@ CALL OPERATION @@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[DllImport("SHP_A3.dll")]public static extern int SsmPickup(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmCheckActualPickup(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmSetPickupNow(int ch, bool bFlag);
[DllImport("SHP_A3.dll")]public static extern int SsmHangup(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmHangupEx(int ch, char ucCauseVal);
[DllImport("SHP_A3.dll")]public static extern int SsmAutoDial(int ch, string szPhoNum);
[DllImport("SHP_A3.dll")]public static extern int SsmChkAutoDial(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetAutoDialFailureReason(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetBlockReason(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetChState(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmSetPlayDest(int ch, int nSelDest);
[DllImport("SHP_A3.dll")]public static extern int SsmSetRecBack(int ch, int nRecBack);
[DllImport("SHP_A3.dll")]public static extern int SsmSearchIdleCallOutCh(ushort wSearchMode, uint dwPrecedence);
[DllImport("SHP_A3.dll")]public static extern int SsmSetAutoCallDirection(int ch, bool bEnAutoCall, int nDirection);
[DllImport("SHP_A3.dll")]public static extern int SsmGetAutoCallDirection(int ch, ref int pnDirection);
[DllImport("SHP_A3.dll")]public static extern int SsmAppendPhoNum(int ch, string szPhoNum);
[DllImport("SHP_A3.dll")]public static extern int SsmGetPendingReason(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetChStateKeepTime(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetPhoNumStr(int ch, StringBuilder pszPhoNum);
[DllImport("SHP_A3.dll")]public static extern string SsmGetPhoNumStrA(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetPhoNumLen(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGet1stPhoNumStr(int ch, StringBuilder pszPhoNum);
[DllImport("SHP_A3.dll")]public static extern string SsmGet1stPhoNumStrA(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGet1stPhoNumLen(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmEnableAutoSendKB(int ch, bool bEnable);
[DllImport("SHP_A3.dll")]public static extern int SsmGetAutoSendKBFlag(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmSetKB(int ch, byte btSigKB);
[DllImport("SHP_A3.dll")]public static extern int SsmSetKD(int ch, byte btSigKD);
[DllImport("SHP_A3.dll")]public static extern int SsmSetKA(int ch, byte btSigKA);
[DllImport("SHP_A3.dll")]public static extern int SsmSetTxCallerId(int ch, string pszTxCallerId);
[DllImport("SHP_A3.dll")]public static extern int SsmGetTxCallerId(int ch, StringBuilder pszTxCallerId);
[DllImport("SHP_A3.dll")]public static extern int SsmGetKA(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetKB(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetKD(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmAutoDialEx(int ch, string szPhoNum,ushort wParam);
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Following functions for applications using SS7
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[DllImport("SHP_A3.dll")]public static extern int SsmBlockLocalCh(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmUnblockLocalCh(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmQueryLocalChBlockState(int ch, ref uint pdwBlockState);
[DllImport("SHP_A3.dll")]public static extern int SsmBlockLocalPCM(int nLocalPcmNo);
[DllImport("SHP_A3.dll")]public static extern int SsmUnblockLocalPCM(int nLocalPcmNo);
[DllImport("SHP_A3.dll")]public static extern int SsmQueryLocalPCMBlockState(int nLocalPcmNo, ref uint pdwBlockState);
[DllImport("SHP_A3.dll")]public static extern int SsmQueryOpBlockRemoteCh(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmBlockRemoteCh(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmUnblockRemoteCh(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetRemoteChBlockStatus(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmBlockRemotePCM(int nLocalPcmNo, uint dwBlockMode);
[DllImport("SHP_A3.dll")]public static extern int SsmUnblockRemotePCM(int nLocalPcmNo, uint dwUnblockMode);
[DllImport("SHP_A3.dll")]public static extern int SsmGetRemotePCMBlockStatus(int nLocalPcmNo, uint dwBlockMode);
[DllImport("SHP_A3.dll")]public static extern bool SsmGetWaitAutoDialAnswerTime(ref ushort pwSeconds);
[DllImport("SHP_A3.dll")]public static extern bool SsmSetWaitAutoDialAnswerTime(ushort wSeconds);
[DllImport("SHP_A3.dll")]public static extern int SsmStartPickupAnalyze(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetPickup(int ch);
[DllImport("SHP_A3.dll")]public static extern ushort SsmGetReleaseReason(int ch);
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@ ADAPTIVE FILTER OPERATION @@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[DllImport("SHP_A3.dll")]public static extern int SsmQueryOpEchoCanceller(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmSetEchoCanceller(int ch, bool bRun);
[DllImport("SHP_A3.dll")]public static extern int SsmGetEchoCancellerState(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmSetEchoCancellerStudy(int ch, bool bRun);
[DllImport("SHP_A3.dll")]public static extern int SsmGetEchoCancellerStudyState(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmGetEchoCancellerRatio(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmSaveEchoCancellerPara(int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmSetEchoCancelDelaySize(int ch,ushort wSize);
[DllImport("SHP_A3.dll")]public static extern ushort SsmGetEchoCancelDelaySize(int ch);
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@ CT-BUS OPERATION @@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[DllImport("SHP_A3.dll")]public static extern int SsmListenTo(int ch1,int ch2);
[DllImport("SHP_A3.dll")]public static extern int SsmListenToEx(int ch1, int nVolume1, int ch2);
[DllImport("SHP_A3.dll")]public static extern int SsmStopListenTo(int ch1,int ch2);
[DllImport("SHP_A3.dll")]public static extern int SsmTalkWith(int ch1,int ch2);
[DllImport("SHP_A3.dll")]public static extern int SsmTalkWithEx(int ch1, int nVlm1, int ch2, int nVlm2);
[DllImport("SHP_A3.dll")]public static extern int SsmStopTalkWith(int ch1,int ch2);
[DllImport("SHP_A3.dll")]public static extern void PlayListen(uint dwBId, uint ch);
[DllImport("SHP_A3.dll")]public static extern void PlayListenNew(uint dwSpeakerCh, uint dwMonitorCh);
[DllImport("SHP_A3.dll")]public static extern void StopListen(uint dwBId);
[DllImport("SHP_A3.dll")]public static extern void StopListenNew(uint dwSpeakerCh);
[DllImport("SHP_A3.dll")]public static extern int SsmLinkFrom(int ch1,int ch2);
[DllImport("SHP_A3.dll")]public static extern int SsmStopLinkFrom(int ch1,int ch2);
[DllImport("SHP_A3.dll")]public static extern int SsmLinkFromEx(int ch1, int nVolume1, int ch2);
[DllImport("SHP_A3.dll")]public static extern int SsmLinkFromAllCh(int ch, int nVolume, ref int nListenerTable,int nListenerNum);
[DllImport("SHP_A3.dll")]public static extern int SsmUnLinkFromAllCh(int ch, ref int nListenerTable,int nListenerNum);
[DllImport("SHP_A3.dll")]public static extern int SsmLinkToBus(int ch,int ts);
[DllImport("SHP_A3.dll")]public static extern int SsmUnLinkToBus(int ch,int ts);
[DllImport("SHP_A3.dll")]public static extern int SsmLinkFromBus(int ts,int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmLinkFromBusEx(int ts, int ch, int vlm);
[DllImport("SHP_A3.dll")]public static extern int SsmUnLinkFromBus(int ts,int ch);
[DllImport("SHP_A3.dll")]public static extern int SsmListenToPlay(int ch1, int vlm1, int ch2);
[DllImport("SHP_A3.dll")]public static extern int SsmUnListenToPlay(int ch1, int ch2);
[DllImport("SHP_A3.dll")]public static extern int SsmClearChBusLink(int nCh);
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@ CONFERENCE OPERATION @@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[DllImport("SHP_A3.dll")]public static extern int SsmCreateConfGroup(int nMaxMember, int nMaxSpeaker, int nMaxSpeaking, int nMaxSilenceTime);
[DllImport("SHP_A3.dll")]public static extern int SsmFreeConfGroup(int nGrpId);
[DllImport("SHP_A3.dll")]public static extern int SsmJoinConfGroup(int nGrpId, int ch, ushort wJoinMode, int nMixerVolume, bool bCreateAlways, bool bExitGrpAlways);
[DllImport("SHP_A3.dll")]public static extern int SsmExitConfGroup(int ch, bool bFreeGrpAlways);
[DllImport("SHP_A3.dll")]public static extern int SsmGetConfCfgInfo(ref ushort pwMaxMember, ref ushort pwMaxSpeaker, ref ushort pwMaxSpeaking, ref ushort pwMaxSilenceTime);
[DllImport("SHP_A3.dll")]public static extern int SsmGetTotalConfGroup();
[DllImport("SHP_A3.dll")]public static extern int SsmGetConfGrpId(ref int pnGrpId);
[DllImport("SHP_A3.dll")]public static extern int SsmGetConfGrpCfgInfo(int nGrpId, ref ushort pwMaxMember, ref ushort pwMaxSpeaker, ref ushort pwMaxSpeaking, ref ushort pwMaxSilenceTime);
[DllImport("SHP_A3.dll")]public static extern int SsmGetConfGrpInfo(int nGrpId, ref ushort pwTotalMember, ref ushort pwTotalSpeaker, ref ushort pwTotalSpeaking);
[DllImport("SHP_A3.dll")]public static extern int SsmGetConfGrpMmbrId(int nGrpId, ref int pnMmbrId);
[DllImport("SHP_A3.dll")]public static extern int SsmGetConfGrpMmbrInfo(int nGrpId, int nMmbrId, ref int pnAppCh, ref ushort pwJoinMode, ref ushort pwIsSpeaking, ref uint pdwSilenceTime);
[DllImport("SHP_A3.dll")]public static extern int SsmGetConfChInfo(int ch, ref int pnGrpId, ref int pnMmbrId, ref ushort pwJoinMode, ref ushort pwIsSpeaking, ref uint pdwSilenceTime);
[DllImport("SHP_A3.dll")]public static extern int SsmValidateGrpId(int nGrpId);
[DllImport("SHP_A3.dll")]public static extern int SsmSetListenVlmInConf(int ch, int nVlm);
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@ DRIVER Ver. 1.x COMPATIBLE FUNCTIONS @@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[DllImport("SHP_A3.dll")]public static extern uint InitCard(uint add1,uint add2,uint add3,uint add4,uint add5,
uint add6,uint add7,uint add8,uint intno);
[DllImport("SHP_A3.dll")]public static extern void ShutCard();
[DllImport("SHP_A3.dll")]public static extern uint StartRecordFile(uint ch,string filename);
[DllImport("SHP_A3.dll")]public static extern void StopRecordFile(uint ch);
[DllImport("SHP_A3.dll")]public static extern void PauseRecord(uint ch);
[DllImport("SHP_A3.dll")]public static extern void RestartRecord(uint ch);
[DllImport("SHP_A3.dll")]public static extern uint GetRecordTime(uint ch);
[DllImport("SHP_A3.dll")]public static extern uint StartPlayFile(uint ch,string filename);
[DllImport("SHP_A3.dll")]public static extern void StopPlayFile(uint ch);
[DllImport("SHP_A3.dll")]public static extern uint CheckPlayingEnd(uint ch);
[DllImport("SHP_A3.dll")]public static extern void PausePlay(uint ch);
[DllImport("SHP_A3.dll")]public static extern void RestartPlay(uint ch);
[DllImport("SHP_A3.dll")]public static extern void FastPlay(uint ch);
[DllImport("SHP_A3.dll")]public static extern void BackPlay(uint ch);
[DllImport("SHP_A3.dll")]public static extern uint GetPlayTime(uint ch);
[DllImport("SHP_A3.dll")]public static extern uint GetPlayPercent(uint ch);
[DllImport("SHP_A3.dll")]public static extern void SetPlayTime(uint ch,uint time);
[DllImport("SHP_A3.dll")]public static extern void SetPlayPercent(uint ch,uint percent);
[DllImport("SHP_A3.dll")]public static extern uint LoadIndexFile(uint segno,string filename,uint startadr,uint length);
[DllImport("SHP_A3.dll")]public static extern void FreeIndexMem(uint segno);
[DllImport("SHP_A3.dll")]public static extern void PlayIndex(uint ch,string segstring);
[DllImport("SHP_A3.dll")]public static extern void StopIndex(uint ch);
[DllImport("SHP_A3.dll")]public static extern void DTMFStop(uint ch,uint if_stop);
[DllImport("SHP_A3.dll")]public static extern uint GetDTMF(uint ch);
[DllImport("SHP_A3.dll")]public static extern uint GetDTMFStr(uint ch,StringBuilder buf);
[DllImport("SHP_A3.dll")]public static extern void ClearDTMFBuf(uint ch);
[DllImport("SHP_A3.dll")]public static extern u
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?