Naming conventions for the ASCIIZ strings used with LAN Server APIs depend on the type of name. For instance, server or resource names follow different rules than the names for users or groups.
A server is named during the installation of the LAN Server code, where the name is placed in the IBMLAN.INI file in the computername parameter. Subsequently, an application always must refer to that server by that name, preceded by a double backslash (\\).
Any shared resource can be named according to the universal naming convention (UNC). A UNC name consists of a double backslash, the name of the server, another backslash, and the name of the resource: \\servername\netname.
Any shared resource (or portion of a UNC name) can be assigned an alias name of up to 8 bytes. Once assigned an alias, a resource can be addressed simply by the name of the alias, regardless of the server to which the resource is connected.
On HPFS partitions, LAN Server supports directory names of up to 260 bytes, including:
For file allocation table (FAT) disk partitions and all DLS requesters, file names can be up to 8 bytes long; extensions, up to 3 bytes; individual path names, up to 63 bytes; and a fully designated path name, up to 128 bytes.
Other naming restrictions for OS/2 requesters and servers include the following:
" / \ [ ] : | < > + =
LAN API Symbolic Constants and the NETCONS.H header file provide additional information about the formats and lengths of symbolic constants used by LAN Server. For more information about UNC naming conventions and aliases, see the IBM OS/2 LAN Server Version 4.0 Network Administrator Reference Volume 1: Planning, Installation, and Configuration.