This question shows research effort; it is useful and clear
1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我正在尝试从中获取 Windows ProductId,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion但它返回null,但ProductName确实返回了正确的值。我在想 Windows 有某种保护,或者它不是以管理员身份运行的?