Partager via


IBDA_IPSinkInfo::get_AdapterIPAddress

 
Microsoft DirectShow 9.0

IBDA_IPSinkInfo::get_AdapterIPAddress

This interface is available for use in the Microsoft Windows 2000, Windows XP, and Windows Server 2003 operating systems. It may be altered or unavailable in subsequent versions.

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.

Requirements

Header: Include bdaiface.h.

See Also