91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

基于Windows的藍牙通訊 實現下列功能: 搜索(本地設備) 搜索(遠程設備) 連接(遠程設備) 發送信息 接收信息

資源截圖

代碼片段和文件信息

#include?“StdAfx.h“
#include?“BlueTooth.h“
?
CBlueTooth::CBlueTooth(void)
{
m_Ary_RemoteBthDevInfo.SetSize?(?0?10*sizeof(BLUETOOTH_DEVICE_INFO)?);
m_Ary_LocalRadioInfo.SetSize?(?0?10*sizeof(t_LocalRadioInfo)?);
}
?
CBlueTooth::~CBlueTooth(void)
{
RemoveAll_RemoteBthDevInfo?();
RemoveAllLocalRadio?();
}
?
//
//?用?Socket?函數搜索附近的藍牙設備,成功時返回設備數,否則返回-1
//
int?CBlueTooth::WSAScanNearbyBthDev?()
{
m_Ary_RemoteBthDevInfo.RemoveAll?();
?
WSAQUERYSET?wsaq;
HANDLE?hLookup;
union
{
CHAR?buf[5000];
double?__unused;?//?ensure?proper?alignment
};
?
LPWSAQUERYSET?pwsaResults?=?(LPWSAQUERYSET)?buf;
DWORD?dwSize?=?sizeof(buf);
BOOL?bHaveName;
ZeroMemory(&wsaq?sizeof(wsaq));
wsaq.dwSize?=?sizeof(wsaq);
wsaq.dwNameSpace?=?NS_BTH;
wsaq.lpcsaBuffer?=?NU

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-07-24?10:51??TestDlg\
?????文件???????12890??2018-07-23?10:04??TestDlg\BlueTooth.cpp
?????文件????????2891??2018-07-10?17:29??TestDlg\ReadMe.txt
?????文件????????1660??2018-07-10?17:29??TestDlg\TestDlg.cpp
?????文件?????????447??2018-07-10?17:29??TestDlg\TestDlg.h
?????文件????????6584??2018-07-24?10:41??TestDlg\TestDlg.rc
?????文件?????????879??2018-07-23?15:21??TestDlg\TestDlg.sln
?????文件???????38912??2018-07-24?10:50??TestDlg\TestDlg.suo
?????文件????????5482??2018-07-23?15:38??TestDlg\TestDlg.vcproj
?????文件????????1403??2018-07-24?10:50??TestDlg\TestDlg.vcproj.ZWC.Administrator.user
?????文件???????16500??2018-07-24?10:37??TestDlg\TestDlgDlg.cpp
?????文件????????1334??2018-07-24?10:37??TestDlg\TestDlgDlg.h
?????目錄???????????0??2018-07-20?16:51??TestDlg\res\
?????文件???????21630??2003-07-24?09:52??TestDlg\res\TestDlg.ico
?????文件?????????363??2018-07-10?17:29??TestDlg\res\TestDlg.rc2
?????文件????????1298??2018-07-24?10:37??TestDlg\resource.h
?????文件?????????138??2018-07-10?17:29??TestDlg\stdafx.cpp
?????文件????????1796??2018-07-10?17:29??TestDlg\stdafx.h
?????文件????????1030??2018-07-10?17:29??TestDlg\targetver.h

評論

共有 條評論