扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:lornshrimp 来源:blog 2007年11月22日
关键字:
INT WSASetService( LPWSAQUERYSET lpqsRegInfo, WSAESETSERVICEOP essoperation, DWORD dwControlFlags ); |
lpqsRegInfo | dwSize | sizeof(WSAQUERYSET) |
lpszServiceInstanceName | Not supported on Windows CE. Set to 0. | |
lpServiceClassId | Not supported on Windows CE. Set to 0. | |
dwNameSpace | NS_BTH. | |
dwNumberOfCsAddrs | Not supported on Windows CE. Set to 0. | |
IpcsaBuffer | Not supported on Windows CE. Set to 0. | |
lpBlob | Points to a BTHNS_SETBLOB structure, containing information about the service to be added. | |
* |
All other WSAQUERYSET fields are ignored. |
[DllImport("mscoree", EntryPoint="@339")] public static extern int connect(int s, byte[] name, int namelen); |
new Socket((AddressFamily) 0x20, SocketType.Stream, ProtocolType.Ggp); |
[DllImport("Btdrt.dll", SetLastError=true)] public static extern int BthGetPINRequest(byte[] pba); |
[DllImport("btdrt.dll", SetLastError=true)] public static extern int BthSetPIN(byte[] pba, int cPinLength, byte[] ppin); |
[DllImport("Btdrt.dll", SetLastError=true)] public static extern int BthCreateACLConnection(byte[] pbt, ref ushort phandle); |
[DllImport("Btdrt.dll", SetLastError=true)] public static extern int BthAuthenticate(byte[] pbt); |
[DllImport("Btdrt.dll", SetLastError=true)] public static extern int BthCloseConnection(ushort handle); |
public enum RadioMode { Connectable = 1, Discoverable = 2, PowerOff = 0 } |
[DllImport("BthUtil.dll", SetLastError=true)] public static extern int BthSetMode(RadioMode dwMode); |
[DllImport("BthUtil.dll", SetLastError=true)] public static extern int BthGetMode(ref RadioMode dwMode); |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者