如何在UWP APP安装时编写注册表项 [英] How to write registry key at UWP APP install time
问题描述
我需要在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屋!