📄 ws2consts.cs
字号:
#region Using directives
using System;
using System.Text;
using System.Runtime.InteropServices;
using System.Collections;
#endregion
namespace BTHWrapper
{
/// <summary>
/// Summary description for Ws2Consts.
/// </summary>
public class Ws2Consts
{
public static readonly int SOCKADDR_BTH_SIZE = Marshal.SizeOf(typeof(Ws2Structs.SOCKADDR_BTH));
public static readonly int AF_BTH = 32;
public static readonly int SOCK_STREAM = 1;
public static readonly int BTHPROTO_RFCOMM = 3;
public static readonly IntPtr INVALID_SOCKET = new IntPtr(0);
public static readonly IntPtr SOCKET_ERROR = new IntPtr(-1);
public static readonly int ERROR_SUCCESS = 0;
public static readonly int RECV_BUFFER = 50;
public static readonly int SD_BOTH = 2;
public enum BTH_RADIO_MODE : int
{
BTH_POWER_OFF=0,
BTH_CONNECTABLE=1,
BTH_DISCOVERABLE=2
};
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -