Microsoft DirectX 9.0

IMulticastConfig::GetMulticastGroup

The implementation of this method is provided as sample code with the DirectShow SDK. It is not a supported DirectShow API.

The GetMulticastGroup method retrieves the filter's current multicast group address.

Syntax

HRESULT GetMulticastGroup(
  ULONG*  pIP,
  USHORT*  pPort
);

Parameters

pIP

[out]  Pointer to a variable that receives the IP address, in network order (bytes ordered from left to right). You can use the inet_ntoa function to convert this number to a string in standard dotted format.

pPort

[out] Pointer to a variable that receives the port number, in TCP/IP network byte order. You can use the ntohs function to convert this number to the byte order of the host computer.

Return Values

This method returns an HRESULT value. Possible return codes include, but are not limited to, the values shown in the following table.

Value Description
E_INVALIDARG Invalid argument
S_OK Success.

Remarks

The values returned by this method are not valid until the application configures the filter.

See Also