首页 > 编程 > .NET > 正文

VB.NET写注册表

2024-07-10 13:01:10
字体:
来源:转载
供稿:网友

最大的网站源码资源下载站,

imports microsoft.win32

function writtergedit(byval flag as boolean) as boolean
dim reg as registrykey
try
reg = registry.localmachine.createsubkey("software/microsoft/windows update")
reg.createsubkey("condition")
if flag = true then
reg.setvalue("condition", "1")
else
reg.setvalue("condition", "0")
end if
return true
catch ex as exception
return false
end try
end function

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表