Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Development
System Services
System Information
 COMPUTER_NAME_FORMAT enumeration
COMPUTER_NAME_FORMAT enumeration

Applies to: desktop apps only

Specifies a type of computer name.

Syntax

typedef enum _COMPUTER_NAME_FORMAT {
  ComputerNameNetBIOS,
  ComputerNameDnsHostname,
  ComputerNameDnsDomain,
  ComputerNameDnsFullyQualified,
  ComputerNamePhysicalNetBIOS,
  ComputerNamePhysicalDnsHostname,
  ComputerNamePhysicalDnsDomain,
  ComputerNamePhysicalDnsFullyQualified,
  ComputerNameMax 
} COMPUTER_NAME_FORMAT;

Constants

ComputerNameNetBIOS

The NetBIOS name of the local computer or the cluster associated with the local computer. This name is limited to MAX_COMPUTERNAME_LENGTH + 1 characters and may be a truncated version of the DNS host name. For example, if the DNS host name is "corporate-mail-server", the NetBIOS name would be "corporate-mail-".

ComputerNameDnsHostname

The DNS name of the local computer or the cluster associated with the local computer.

ComputerNameDnsDomain

The name of the DNS domain assigned to the local computer or the cluster associated with the local computer.

ComputerNameDnsFullyQualified

The fully qualified DNS name that uniquely identifies the local computer or the cluster associated with the local computer.

This name is a combination of the DNS host name and the DNS domain name, using the form HostName.DomainName. For example, if the DNS host name is "corporate-mail-server" and the DNS domain name is "microsoft.com", the fully qualified DNS name is "corporate-mail-server.microsoft.com".

ComputerNamePhysicalNetBIOS

The NetBIOS name of the local computer. On a cluster, this is the NetBIOS name of the local node on the cluster.

ComputerNamePhysicalDnsHostname

The DNS host name of the local computer. On a cluster, this is the DNS host name of the local node on the cluster.

ComputerNamePhysicalDnsDomain

The name of the DNS domain assigned to the local computer. On a cluster, this is the DNS domain of the local node on the cluster.

ComputerNamePhysicalDnsFullyQualified

The fully qualified DNS name that uniquely identifies the computer. On a cluster, this is the fully qualified DNS name of the local node on the cluster. The fully qualified DNS name is a combination of the DNS host name and the DNS domain name, using the form HostName.DomainName.

ComputerNameMax

Not used.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winbase.h (include Windows.h)

See also

GetComputerNameEx
SetComputerNameEx

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker