Registry Information

When you install Microsoft Windows NT or Windows 95, or when you run the Windows 3.x/MS-DOS Setup programs, the RPC protocol information you specify is stored in the registry file. The 32-bit Windows registry entries are automatically configured and no further configuration is necessary. With MS-DOS and Windows 3.x, use a text editor to change entries in the RPCREG.DAT file:

Registry entry Description
SOFTWARE\Microsoft\Rpc\
NameService\DefaultSyntax
Specifies the default syntax that is used by the RPC functions RpcNsBindingImportBegin and RpcNsBindingExport. This registry entry corresponds to the DCE environment variable RPC_DEFAULT_ENTRY_SYNTAX.
SOFTWARE\Microsoft\Rpc\
NameService\NetworkAddress
Specifies the address of the computer running the Locator that is used by clients during name-service lookup operations. The default setting is the primary domain controller.
SOFTWARE\Microsoft\Rpc\
NameService\ServerNetworkAddress
Specifies the address of the computer running the Locator that is used by servers during name-service export operations. Default is PDC (Windows NT only).
SOFTWARE\Microsoft\Rpc\
NameService\Endpoint
Specifies the endpoint used by the name service.
SOFTWARE\Microsoft\Rpc\
NameService\Protocol
Specifies the protocol used by the name service.
SOFTWARE\Microsoft\Rpc\
ClientProtocols\ncacn_np
Specifies the name of the RPC client transport DLL for named pipes.
SOFTWARE\Microsoft\Rpc\
ClientProtocols\ncacn_ip_tcp
Specifies the name of the RPC client transport DLL for TCP/IP.
SOFTWARE\Microsoft\Rpc\
ClientProtocols\ncacn_nb_nb
Specifies the name of the RPC client transport DLL for NetBEUI over NetBIOS.
SOFTWARE\Microsoft\Rpc\
ClientProtocols\ncalrpc
Specifies the name of the RPC client transport DLL for local RPC (Windows NT only).
SOFTWARE\Microsoft\Rpc\
ServerProtocols\ncacn_np
Specifies the name of the RPC server transport DLL for named pipes.
SOFTWARE\Microsoft\Rpc\
ServerProtocols\ncacn_ip_tcp
Specifies the name of the RPC server transport DLL for TCP/IP.
SOFTWARE\Microsoft\Rpc\
ServerProtocols\ncacn_nb_nb
Specifies the name of the RPC server transport DLL for NetBEUI.
SOFTWARE\Microsoft\Rpc\
ServerProtocols\ncalrpc
Specifies the name of the RPC server transport DLL for local RPC (Windows NT only).
SOFTWARE\Microsoft\Rpc\NetBios Consists of mapping strings that map protocols to NetBIOS lana numbers. For NetBIOS information, see the following section.

The Microsoft RPC Setup program automatically maps protocol strings to NetBIOS lana numbers and writes these settings in the registry. These mappings work as long as you only have one network card and one network protocol. If you have more than one network card and network protocol, or if you change your network configuration after installing Microsoft RPC, you must update the registry to indicate the new correspondences between protocol strings and NetBIOS lana numbers.

For 32-bit Windows platforms, the mapping string appears in the registry tree under \SOFTWARE\Microsoft\Rpc\NetBios. For MS-DOS and Windows 3.x, the mapping string appears in the registry file RPCREG.DAT.

The mapping string uses the following syntax:

ncacn_nb_protocol digit=lana_number

protocol
Specifies the protocol type. The valid protocol values are as follows:
Protocol Protocol type
nb NetBEUI
tcp TCP/IP

digit
Specifies a unique number associated with each instance of a protocol. Use the value 0 for the first instance of a protocol and use the next consecutive number for each additional instance of that protocol. For example, assign the value ncacn_nb_nb0 to the first NetBEUI entry; assign the value ncacn_nb_nb1 to the second NetBEUI entry.
lana_number
Specifies the NetBIOS lana number.

A unique lana number is associated with each network adapter present in the computer. For LAN Manager networks, the lana numbers for each network card are available in the configuration files LANMAN.INI and PROTOCOL.INI. For more information about the lana number, see your network documentation.

For example, the following mapping string describes a configuration that uses the NetBEUI protocol over an adapter card that is assigned lana number 0:

ncacn_nb_nb0=0
 

When you install a second card that supports both XNS and NetBEUI protocols, the mapping strings appear as follows:

ncacn_nb_tcp0=0 
ncacn_nb_nb1=1