BthAGNetworkGetCallState (Windows CE 5.0)

Send Feedback

This function is called by the Audio Gateway (AG) service to retrieve the current state of the network.

DWORD BthAGNetworkGetCallState ( PDWORD pdwFlags);

Parameters

  • pdwFlags [out]
    Points to the received network flag. The following table shows the possible flag values.
    Flag options Description
    NETWORK_FLAGS_STATE_ACTIVE (0x01) Indicates an active call.
    NETWORK_FLAGS_STATE_HOLD (0x02) Indicates a call that is on hold.
    NETWORK_FLAGS_STATE_OFFERING (0x04) Indicates an incoming call.
    NETWORK_FLAGS_STATE_OUTGOING (0x08) Indicates an outgoing call.

Return Values

If the function call succeeds, the return value is ERROR_SUCCESS. Any other value indicates a failure.

Remarks

BthAGNetworkGetCallState returns synchronously.

If the function call fails, call the BthAGOnNetworkEvent function. The following table shows the parameter values to pass.

Parameter Value
dwEvent NETWORK_EVENT_FAILED
pszParam Pointer to the NetworkCallFailedInfo structure.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Btagpub.h.
Link Library: Btagsvc_network.lib.

See Also

Network Component

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.