Partager via


BthAGNetworkDropSwapCall (Compact 2013)

3/26/2014

This function is called by the Audio Gateway (AG) service to terminate the active call and activate the call on hold.

Syntax

DWORD BthAGNetworkDropSwapCall(void);

Parameters

None.

Return Value

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

Remarks

The following code example shows a sample implementation of BthAGNetworkDropSwapCall. For the complete implementation of the Network component, see Tapi.cpp in the %WINCEROOT%\Public\Common\Oak\Drivers\Bluetooth\Ag\Network directory.

DWORD BthAGNetworkDropSwapCall(void)
{
    DWORD dwErr;
    dwErr = BthAGNetworkDropCall(NETWORK_FLAGS_DROP_ACTIVE);
    if (ERROR_SUCCESS == dwErr) {
        dwErr = BthAGNetworkSwapCall();
    }
    return dwErr;
}

Requirements

Header

btagpub.h

Library

Btagsvc_network.lib

See Also

Reference

Bluetooth AG Service Functions