Share via


IOem3GPPSupServices::SetCallForwardingStatus

Warning  The Cellular COM API is deprecated in Windows 10. This content is provided to support maintenance of OEM and mobile operator created Windows Phone 8.1 applications.

 

The SetCallForwardingStatus method sets the call forwarding status for the service.

Syntax

HRESULT ( STDMETHODCALLTYPE *SetCallForwardingStatus )( 
    __RPC__in IOem3GPPSupServices * This,
    __RPC__in_opt ISimpleModemCompletion *pCallback,
    INT_PTR context,
    RILCALLFORWARDINGSETTINGSREASON dwReason,
    BOOL fAllClasses,
    DWORD dwInfoClasses,
    RILSERVICESETTINGSSTATUS dwStatus
);

Parameters

  • This
    [in] Pointer the service to set the call forwarding settings on

  • pCallback
    [in] Pointer to the callback interface that is called to return the results of the set call forwarding settings request

  • context
    [in] Pointer to the context

  • dwreason
    [in] The reason why the call forwarding status is being set. Possible values include:

    • RIL_FWDREASON_UNCONDITIONAL

    • RIL_FWDREASON_MOBILEBUSY

    • RIL_FWDREASON_NOREPLY

    • RIL_FWDREASON_UNREACHABLE

    • RIL_FWDREASON_ALLFORWARDING

    • RIL_FWDREASON_ALLCONDITIONAL

  • fAllClasses
    [in] If set to true, the operation applies to all telephony line classes and the dwInfoClasses parameter was ignored

  • dwInfoClasses
    [in] Represents the class of telephony line. The value of this parameter corresponds to the telephony type defined in the RILINFOCLASS enum. For call forwarding or call waiting this will typically be set to 1 (voice).

  • dwStatus
    [in] The status of the service settings. Possible values include:

    • RIL_SVCSTAT_UNKNOWN

    • RIL_SVCSTAT_DISABLED

    • RIL_SVCSTAT_ENABLED

    • RIL_SVCSTAT_DEFAULT

Return values

Returns S_OK if the method was successful.

Remarks

The ID_CAP_CELL_WNF capability is required to use the SetCallForwardingSettings method.

Requirements

Header: Generated from CellularAPI_OEM.idl

IOem3GPPSupServices

 

 

Send comments about this topic to Microsoft