简体   繁体   中英

Windows Hostname (NetBIOS) in windows 10 kernel driver?

How can I get the Windows Hostname (NetBIOS) while coding a windows 10 kernel driver?

I know GetComputerNameExA works in User mode, but how do I do the same in kernel mode?

You can get hostname through the following registry path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName

Read the registry.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM