删除WM6中的注册表项/值 [英] Deleting registry keys/values in WM6
问题描述
我正在为WM6编写一个注册表编辑器。目前,我可以查看,编辑和创建键/值。我正在尝试添加一个删除键/值的选项,我遇到了一个严重的问题。对于每个键/值,无论是否由我创建,我在尝试删除时都会获得UnauthorizedAccessException
。我在WM6 Professional模拟器中运行它。
I'm writing a registry editor for WM6. Currently I can view, edit and create keys/values. I'm trying to add an option to delete keys/values and I've encountered a serious problem. For every key/value, no matter if created by me or not, I get UnauthorizedAccessException when trying to delete it. I'm running it in WM6 Professional emulator.
我该怎么做才能删除键/值?有没有可能从我的代码中打开它?
What can I do to allow deleting keys/values? Is there any possibility to turn it on from my code?
///
Path - parent key path, name - subkey to be deleted name
public
void
DeleteKey(string
path, string
name)
{
RegistryKey tmpKey = Helper.RegistryKeyFromString(path);
tmpKey.DeleteSubKeyTree(name);
}
推荐答案
请查看此处的simillar讨论:
Please check the simillar discussion here:
问候,
Malleswar
Malleswar
这篇关于删除WM6中的注册表项/值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!