Microsoft DirectX 9.0

IBDA_IPSinkInfo::get_AdapterIPAddress

The get_AdapterIPAddress method retrieves the IP address of the data that the IP Sink filter receives. This address is assigned by the system; it is not guaranteed to be the same for any two instances of the IP Sink filter.

Syntax

HRESULT get_AdapterIPAddress(
  BSTR*  pbstrBuffer
);

Parameters

  pbstrBuffer

[out]  Pointer to a BSTR that receives the IP address. The returned string has the form N.N.N.N; for example, 3.0.0.0.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

The caller must free the returned string, using the SysFreeString method.

See Also