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.
A version of this page is also available for
4/8/2010

Windows Embedded CE supports dynamic name registration by supporting NetBIOS over TCP/IP (NBT). Dynamic name registration means that NBT automatically registers the host name with a WINS server whenever a network interface starts up.

An OEM who requires the name of the device to be registered with WINS should call sethostname.

The name registration process begins when the client issues a NAMEREGISTRATIONREQUEST message. The WINS server checks to see if the host name is unique on the network and returns either a positive or negative response message. If positive, the registration response will include the Time to Live (TTL) for the registered name. If negative, the WINS server declines to register the name. This usually means the WINS server has identified a duplicate name.

Note:
For DNS, a TTL of zero (0) indicates that the time to live is 10 minutes.

The client must refresh the name registration before the TTL expires. When the registration is refreshed, the WINS server issues a new TTL.

See Also