Help Center

AfxGetComputerNamefunction

Retrieves the NetBIOS name of the local computer.

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxGetComputerName () AS DWSTRING
Also documented as AfxComputerName — 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
  • Defined in AfxNova/AfxWin.inc:4656
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures