Xia*_*ofu 11
如果您想要在注册表中输入注册的公司名称,您可以从以下位置获取:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOrganization
Run Code Online (Sandbox Code Playgroud)
使用Registry类,您可以执行以下操作:
string org = (string)Microsoft.Win32.Registry.GetValue(@"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion", "RegisteredOrganization", "");
Run Code Online (Sandbox Code Playgroud)