What's wrong with Registry.GetValue?

后端 未结 5 1326
轻奢々
轻奢々 2021-01-12 07:25

I trying to get a registry value:

var value = Registry.GetValue(@\"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography\", \"MachineGuid\", 0);
5条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 08:06

    I solved the problem when i imported Microsoft.Win32 and changed the application-settings to x64 like pedrocgsousa mentioned.

提交回复
热议问题