GetIPFromRegistry(
IN PUNICODE_STRING pucRegistryPath,
IN PUNICODE_STRING pucBindDevice,
OUT PULONG pulIpAddress,
OUT PULONG pulSubnetMask,
IN BOOL fWantDhcpAddresses
);
Routine Description:
This routine is called to get the IP address of an adapter from the
Registry. The Registry path variable contains the path name
for NBT's registry entries. The last element of this path name is
removed to give the path to any card in the registry.
The BindDevice path contains a Bind string for NBT. We remove the last
element of this path (which is the adapter name \Elnkii01) and tack it
onto the modified registry path from above. We then tack on
\Parameters which will give the full path to the Tcpip key, which
we open to get the Ip address.
Arguments:
pucRegistryPath - Supplies pucRegistryPath. The name of Nbt's node in the
registry.
pNbtConfig - ptr to global configuration strucuture for NBT
Return Value:
NTSTATUS - STATUS_SUCCESS if everything OK, STATUS_INSUFFICIENT_RESOURCES
otherwise.