蓝牙安装的服务和GUID [英] Bluetooth Installed Service and GUIDs

查看:560
本文介绍了蓝牙安装的服务和GUID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我使用BluetoothEnumerateInstalledServices()函数来检索已安装的服务GUID。

I use BluetoothEnumerateInstalledServices() functions to retrieve installed services GUIDs.

我的问题是如何获得GUID的友好(显示名称)名称?

My question is How to get friendly (display name) name of GUIDs?

谢谢

推荐答案

嗨drjackool,

Hi drjackool,

感谢您在这里发帖。

> ;>我使用BluetoothEnumerateInstalledServices()函数来检索已安装的服务GUID。

我的问题是如何获得GUID的友好(显示名称)名称?

对于这种情况,您可以使用WSALookupServiceBegin函数来启动受到 中包含的信息约束的客户端查询。

WSAQUERYSET
结构体。在
dwControlFlags 参数中使用LUP_RETURN_NAME
WSALookupServiceBegin
和 
WSALookupServiceNext
用于控制查询结果,使其返回  lpszServiceInstanceName成员中服务的显示名称。

WSAQUERYSET
每次调用
WSALookupServiceNext的结构
function。

For this case, you could use WSALookupServiceBegin function to initiate a client query that is constrained by the information contained within a  WSAQUERYSET structure. Use LUP_RETURN_NAME  in the dwControlFlags parameter of the WSALookupServiceBegin and  WSALookupServiceNext functions to control the query results, make it return  the display name of the service in the lpszServiceInstanceName member of the  WSAQUERYSET structure for each call to the WSALookupServiceNext function.

有关详细信息,请参阅以下文档。

For more information, please refer to this document below.

https://msdn.microsoft.com/en-us/library/windows/desktop/aa362914(v = VS。 85).aspx

希望这可以帮到你。

最好的问候,

Sera Yu


这篇关于蓝牙安装的服务和GUID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆