TransportGetInterfaceCount

Returns the number of enumerated interfaces available for debugging.

Syntax

PULSE_STATUS TransportGetInterfaceCount(
 [in] PPS_TRANSPORT pTransport,
 [out] uint32_t *pInterfaceCount
);

Parameters

PPS_TRANSPORT pTransport

An opaque handle to a transport created by the TransportCreate function.

uint32_t *pInterfaceCount

A pointer to a uint32_t variable that will receive the number of available interfaces.

Return value

If the function succeeds, the return value is PULSE_STATUS_SUCCESS.

If it fails, it returns one of the PULSE_STATUS values. Possible return codes include, but are not limited to, the following:

PULSE_STATUS_INVALID_PARAMETER
0xC0000010
Might happen if:
  • The pTransport argument is NULL.
  • The pInterfaceCount argument is NULL.
  • Remarks

    The function can succeed but still return 0 available interfaces. This typically happens if the transport cannot be enumerated. See the TransportEnumerateInterfaces function for details.

    You can try to get the name of the enumerated interface using the TransportGetInterfaceName function. Use an index that is less than the *pInterfaceCount value.