Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The network registration daemon (NETREGD) provides name registration services for Windows CE devices. It ensures that the device name and IP address are registered with WINS when the device goes online. In version 2.12, the NETREG daemon relies solely on the redirector to provide registration services. In version 3.0, NETREG can work with or without the redirector.
Parameters of NETREG daemon are stored in HKEY_LOCAL_MACHINE\Software\Microsoft\netreg. The daemon itself installs as a built-in device driver and starts at the system boot time.
The NETREG daemon can use the network tracking capability of Windows CE 2.12 and later to register the device name when network interface becomes available. To enable this capability, the DWORD value "TrackNetwork" must be set to 1.
It can also reregister a name periodically. To enable this, set the "Cycle" DWORD value to the desired elapsed time, in seconds, between registrations.
NETREG operates in two different (and mutually exclusive) modes. Redirector mode must be used when redirector is present in the system. To use it, registry DWORD value "UseRedirector" must be set to 1. On Windows CE, redirector has a side effect of supporting NetBIOS networking, including name registration and node status query support, required for hosting network servers on Windows CE devices. When working in redirector mode, NETREG simply ensures that redirector is loaded all the time by periodically (every "cycle" seconds and after network interface has come up if TrackNetwork is specified) creating a file on an non-existent network share.
If a redirector is not present in the OS image (such as on pre-2.11 Handheld PCs and all Pocket PCs), NETREG is capable of supplying all necessary NetBIOS services to guarantee that the machine is properly registered on the network. DWORD registry value "EmulateNB" needs to be set to 1 and "UseRedirector" to 0. In this mode, NETREG (with the same periodicity as in redirector mode) scans the registry's HKEY_LOCAL_MACHINE\COMM\*\Params\tcpipkey for values "WINS", "DHCPWINS", "IPAddress," and "DHCPIPAddress". It then calls gethostbyname on the local host to get list of active IP addresses and matches these to interfaces discovered in the registry to determine active network interfaces. It then registers itself with the WINS servers discovered in the active interfaces.
The NETREG utility is implemented as a device driver and installs in:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NETREGD] "Dll"="NETREGD.Dll" "Order"=dword:8 "Keep"=dword:1 "Entry"="NETREGDInitialize"