Help Center

AfxComputerNamefunction

Retrieves the NetBIOS name of the local computer.

WindowsfunctionAfxWin.incdoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION AfxGetComputerName () AS DWSTRING
Also documented as AfxGetComputerName — one description covers them all.

Return value

The NetBIOS name of the local computer.

Description

Retrieves the NetBIOS name of the local computer. This name is established at system startup, when the system reads it from the registry.

Remarks

The behavior of this function can be affected if the local computer is a node in a cluster. For more information, see ResUtilGetEnvironmentWithNetName and UseNetworkName.

Reference

  • Include file AfxWin.inc
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures