IAPI::HostnameToIPAddress

property HostnameToIPAddress.

 

Retrieves IP address(s) from a hostname or subnetwork mask if HostName contains an IP address.

Retrieves also Network IP address from an IP and the subnetwork mask with slash char "/" as separator

(for instance if HostName is containing "192.168.177/24" or "192.168.1.77/255.255.255.0")

 

HRESULT HostnameToIPAddress(
  BSTR HostName,
  BSTR *pVal
);

Parameters

HostName

[in,defaultvalue("")] .

         Hostname or IP address.

pVal

[out, retval] The returned value is an IP address list or subnetwork mask or a Network IP address.

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI