怎么获取计算机所在域的名字
如何获取计算机所在域的名字
如何获取本机在局域网中域的名字。。
------解决方案--------------------
好像GetComputerNameEx()可以.
------解决方案--------------------
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724301(v=vs.85).aspx
------解决方案--------------------
NetGroupGetInfo()
------解决方案--------------------
GetComputerNameExW 或者 ComputerNameDnsDomain
------解决方案--------------------
GetComputerNameEx Function
Retrieves a NetBIOS or DNS name associated with the local computer. The names are established at system startup, when the system reads them from the registry.
BOOL WINAPI GetComputerNameEx(
__in COMPUTER_NAME_FORMAT NameType,
__out LPTSTR lpBuffer,
__in_out LPDWORD lpnSize
);
第一个参数用
ComputerNameDnsDomain
------解决方案--------------------
NetGroupGetInfo()不行?
------解决方案--------------------
有兴趣,也疑惑
GetComputerNameEx() 可得DNS domain name
NetGroupGetInfo() 可得GroupName
两者是一样的么?什么情况下
如何获取本机在局域网中域的名字。。
------解决方案--------------------
好像GetComputerNameEx()可以.
------解决方案--------------------
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724301(v=vs.85).aspx
------解决方案--------------------
NetGroupGetInfo()
------解决方案--------------------
GetComputerNameExW 或者 ComputerNameDnsDomain
------解决方案--------------------
GetComputerNameEx Function
Retrieves a NetBIOS or DNS name associated with the local computer. The names are established at system startup, when the system reads them from the registry.
BOOL WINAPI GetComputerNameEx(
__in COMPUTER_NAME_FORMAT NameType,
__out LPTSTR lpBuffer,
__in_out LPDWORD lpnSize
);
第一个参数用
ComputerNameDnsDomain
------解决方案--------------------
NetGroupGetInfo()不行?
------解决方案--------------------
有兴趣,也疑惑
GetComputerNameEx() 可得DNS domain name
NetGroupGetInfo() 可得GroupName
两者是一样的么?什么情况下