⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 udtsocketexception.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace NCindy.Protocol.UDT
{
    using System;
    using System.Runtime.InteropServices;

    public sealed class UDTSocketException : Exception
    {
        private int _errorCode;

        public UDTSocketException() : base(API_GetLastErrorMessage())
        {
            this._errorCode = API_GetLastErrorCode();
        }

        public UDTSocketException(int errorCode, string errorMessage) : base(errorMessage)
        {
            this._errorCode = errorCode;
        }

        [DllImport("transport.dll", EntryPoint="UDTGetlasterrorCode")]
        private static extern int API_GetLastErrorCode();
        [DllImport("transport.dll", EntryPoint="UDTGetlasterrorMessage")]
        private static extern string API_GetLastErrorMessage();

        public int ErrorCode
        {
            get
            {
                return this._errorCode;
            }
            set
            {
                this._errorCode = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -