如何在UWP APP安装时编写注册表项 [英] How to write registry key at UWP APP install time

查看:582
本文介绍了如何在UWP APP安装时编写注册表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在UWP App安装时创建/编写注册表项,以授予对USB设备的访问权限。这是强制性的,否则uwp应用程序将无法与USB设备通信。密钥和路径是已知的:


[HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet \ Enum \ _USB \VID_10C4& PID_0002 \ 1]

" ;安全" =己烷:1,0,4,90,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,2,0, 60,0,4,0,0,0,0,0,14,0,0,0,0,10,1,1,0,0,0 ......<


我该如何实现?


谢谢,
$ b $bSérgio

解决方案

您好。 


UWP应用程序不支持在注册表中写入。用于访问USB设备
研究此示例 
&NBSP;


Hi, I need to create/write a registry key at UWP App install time to grant access to a USB device. This is mandatory or else the uwp app won't be able to communicate with the USB device. The key and path is known:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_10C4&PID_0002\1]
"Security"=hex:1,0,4,90,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,2,0,60,0,4,0,0,0,0,0,14,0,0,0,0,10,1,1,0,0,0....."

How can I implement this?

Thanks,
Sérgio

解决方案

Hello. 

UWP apps doesn't support to write in registry. For accessing USB device research this example  .


这篇关于如何在UWP APP安装时编写注册表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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