[UWP] MobileBroadbandModem - 如何使用SetIsPassthroughEnabledAsync? [英] [UWP] MobileBroadbandModem - how to use SetIsPassthroughEnabledAsync?

查看:99
本文介绍了[UWP] MobileBroadbandModem - 如何使用SetIsPassthroughEnabledAsync?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 


我想使用调制解调器的直通模式但是当我尝试使用    SetIsPassthroughEnabledAsync或GetIsPassthroughEnabledAsync时出现错误未指定错误(Excep_FromHResult) 0x80004005)。


我正在使用Windows 10 1709 build 16299。


有人可以帮我使用这种方法吗?


是否存在特殊设置 对于这种方法?


谢谢!


解决方案

嗨valouflo,


欢迎来到开发通用Windows应用论坛!请使用
标记
发布到此论坛时,谢谢!



MobileBroadbandModem
仅适用于移动运营商应用程序和UWP应用程序,具有移动网络运营商的特权访问权限。


如果您想使用此API并将应用程序发布到商店,则需要特别批准。有关详细信息,请参阅
下的特殊功能和限制功能部分
应用程序功能声明


您可以参考官方移动宽带示例


https://github.com/Microsoft/Windows-universal- samples / tree / master / Samples / MobileBroadband



此外,一些特殊用途功能还需要一个特殊的公司帐户才能提交到商店使用它们(限制功能仅适用于Microsoft及其合作伙伴)。



最好的问候,


Yong Lu


Hi, 

I would like to use passthrough mode of modem but when I tried to use  SetIsPassthroughEnabledAsync or GetIsPassthroughEnabledAsync I got the error Unspecified error (Excep_FromHResult 0x80004005).

I'm working on windows 10 1709 build 16299.

Is anybody could help me using this method?

Does it exist special settings  for this method?

Thanks!

解决方案

Hi valouflo,

Welcome to the Developing Universal Windows apps forum! Please utilize tagging when posting to this forum, thanks!

This MobileBroadbandModem is only available to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

You can refer the official Mobile broadband sample.

https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/MobileBroadband

Besides, some Special-use capabilities also require a special company account for submission to the Store to use them (restricted capabilities that are only available to Microsoft and its partners).

Best Regards,

Yong Lu


这篇关于[UWP] MobileBroadbandModem - 如何使用SetIsPassthroughEnabledAsync?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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