CyManager/Common/clsCallBook.cs

(开头部分) 13KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
///电话预订
namespace CyManager.Book
{

    public struct AD101DEVICEPARAMETER
    {
        public int nRingOn;
        public int nRingOff;
        public int nHookOn;
        public int nHookOff;
        public int nStopCID;
        public int nNoLine;			// Add this parameter in new AD101(MCU Version is 6.0)
    }


    public class clsCallBook
    {
        #region 加载动态链接库
        [DllImport("AD101Device.dll", EntryPoint = "AD101_InitDevice")]
        public static extern int AD101_InitDevice(int hWnd);

        [DllImport("AD101Device.dll", EntryPoint = "AD101_GetDevice")]
        public static extern int AD101_GetDevice();

        [DllImport("AD101Device.dll", EntryPoint = "AD101_GetCPUVersion", CharSet = CharSet.Ansi)]
        public static extern int AD101_GetCPUVersion(int nLine, StringBuilder szCPUVersion);

        // Start reading cpu id of device 
        [DllImport("AD101Device.dll", EntryPoint = "AD101_ReadCPUID")]
        public static extern int AD101_ReadCPUID(int nLine);

        // Get readed cpu id of device 
        [DllImport("AD101Device.dll", EntryPoint = "AD101_GetCPUID", CharSet = CharSet.Ansi)]
        public static extern int AD101_GetCPUID(int nLine, StringBuilder szCPUID);


        // Get caller id number  
        [DllImport("AD101Device.dll", EntryPoint = "AD101_GetCallerID", CharSet = CharSet.Ansi)]
        public static extern int AD101_GetCallerID(int nLine, StringBuilder szCallerIDBuffer, StringBuilder szName, StringBuilder szTime);

        // Get dialed number 
        [DllImport("AD101Device.dll", EntryPoint = "AD101_GetDialDigit", CharSet = CharSet.Ansi)]
        public static extern int AD101_GetDialDigit(int nLine, StringBuilder szDialDigitBuffer);


        // Get collateral phone dialed number 
        [DllImport("AD101Device.dll", EntryPoint = "AD101_GetCollateralDialDigit", CharSet = CharSet.Ansi)]
        public static extern int AD101_GetCollateralDialDigit(int nLine, StringBuilder szDialDigitBuffer);



        // Get last line state 
        [DllImport("AD101Device.dll", EntryPoint = "AD101_GetState")]
后面还有 305 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。