次の方法で共有


RIL_GetGPRSContextActivatedList (Compact 2013)

3/26/2014

This function gets the GPRS activation state for all contexts.

Syntax

HRESULT RIL_GetGPRSContextActivatedList(
  HRIL hRil
  RILGPRSCONTEXTACTIVATED * pGPRSContextActivated,
  DWORD * pdwDataSize
);

Parameters

  • pGPRSContextActivated
    [in] Pointer to a storage area to place the results.

    [out] Pointer to a list of RILGPRSCONTEXTACTIVATED structures.

  • pdwDataSize
    [in] Pointer to the length of pGPRSContextActivated.

    [out] Pointer to the returned data size of pGPRSContextActivated.

Return Value

Asynchronous

Positive HRESULT values indicate success and are used as command identifications for matching the asynchronous call result. Negative HRESULT values indicate an error. HRESULT error values of E_XXX are defined in winerror.h. HRESULT error values of RIL_E_XXX are defined in Ril.h.

An asynchronous result callback of RIL_RESULT_OK indicates success. The lpData notification parameter points to a RILGPRSCONTEXTACTIVATED structure that indicates activation state.

Synchronous

HRESULT value S_OK indicates success. Information is returned in the data structure pointed to by pGPRSContextActivated. HRESULT values of E_XXX indicate an error. Errors are defined in winerror.h.

If the return data is bigger than the input value of pdwDataSize, ERROR_INSUFFICIENT_BUFFER is returned as the synchronous API result.

Remarks

This function is asynchronous when the input value of pGPRSContextActivated is NULL. The RIL proxy translates the RIL_GetGPRSContextActivatedList function into IOCTL_RIL_GetGPRSContextActivatedList when the RIL proxy calls RIL_IOControl.

This function is synchronous when pGPRSContextActivated is not set to NULL. The RIL driver needs to support RIL_NOTIFY_GPRSCONTEXTACTIVATED for the synchronous function. In the registry key, HKEY_LOCAL_MACHINE\Comm\Cellular\RIL\CapsNotificationImplParams, the value RIL_CAPS_NOTIFICATION_GPRSCONTEXTACTIVATEDLIST is used to determine if RIL_NOTIFY_GPRSCONTEXTACTIVATED is supported. If the RIL_CAPS_NOTIFICATION_GPRSCONTEXTACTIVATEDLIST value is not set to TRUE, RIL_E_SYNCHRONOUS_DATA_UNAVAILABLE is returned. You can use RIL_GetDevCaps(hRil, RIL_CAPSTYPE_NOTIFICATIONIMPLEMENTATION ) to determine which notification values are set to TRUE.

Requirements

Header

ril.h

Library

Ril.lib

See Also

Reference

RIL Functions