[英]Windows Hostname (NetBIOS) in windows 10 kernel driver?
How can I get the Windows Hostname (NetBIOS) while coding a windows 10 kernel driver?如何在编写 Windows 10 内核驱动程序时获取 Windows 主机名 (NetBIOS)?
I know GetComputerNameExA works in User mode, but how do I do the same in kernel mode?我知道 GetComputerNameExA 在用户模式下工作,但我如何在内核模式下做同样的事情?
You can get hostname through the following registry path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName您可以通过以下注册表路径获取主机名:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName
Read the registry.阅读注册表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.