读取小工具中的注册表值 [英] Reading Registry Values in Gadget

查看:66
本文介绍了读取小工具中的注册表值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Windows侧栏小工具,需要从注册表中读取某些值.我浏览了为MSDN上的小工具开发提供的API,但是找不到允许这样做的任何功能.我该如何实现?可以监视特定注册表项中小工具的更改(我想避免不必要的轮询).

I am developing a windows sidebar gadget for which I need to read certain values from the registry. I went through the APIs provided for gadget development on MSDN but couldn't find any function that allowed to do so. How do I achieve this? Is is possible to monitor a particular registry key for changes in Gadget ( I want to avoid unnecessary polling ) 

推荐答案

您好,Cyber​​,
您可以编写

System.Gadget.Settings.writeString(值" ,500);

并从注册表中读取值..

System.Gadget.Settings.readString(
Hi Cyber,
You can write the values into the registry..

System.Gadget.Settings.writeString("Value", 500);

and read the values from the registry..

System.Gadget.Settings.readString("Value");

Let me know if that is what you wanted..

Regards


这篇关于读取小工具中的注册表值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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