The Virtual Interface Architecture

Synopsis
VIP_RETURN VipNSInit( IN VIP_NIC_HANDLE NicHandle, IN VIP_PVOID NSInitInfo )
Parameters
| NicHandle : | The VI NIC context in which to initialize the name service. |
| NSInitInfo : | nitialization information for the name service. In the case of a file based name service, this could be the name of the alternate file to use for name lookups. A value of (VIP_PVOID)0 specifies default behavior. |
Description
VipNSInit initializes the name service using the specified parameters. It is recommended that it be possible to successfully initialize the name service by specifying default behavior. For example, set the NSInitInfo parameter to (VIP_PVOID)0.
It is up to the provider of the name service routines to specify the format of the initialization parameter. It is recommended that file-based name service implementations use the initialization parameter to specify an alternate database file. It is also recommended that other name service implementations use string-based initialization parameters.
Returns
VIP_SUCCESS Operation completed successfully.
VIP_INVALID_PARAMETER The NSInitInfo parameter or NicHandle parameter was invalid.
VIP_ERROR_NAMESERVICE Name service for the specified NIC context is already initialized.
VIP_ERROR_RESOURCE The operation failed due to insufficient resources or was unable to initialize resources.
Synopsis
VIP_RETURN VipNSGetHostByName( ...