Share via


RIL_NDIS_SetGPRSContextActivated (Compact 2013)

3/26/2014

This function sets the GPRS activation state for a context for a network driver interface specification (NDIS) connection.

Syntax

HRESULT RIL_NDIS_SetGPRSContextActivated(
    HRIL hRil,
    const RILNDISGPRSCONTEXT *lpNdisSetGprsContextActivated
);

Parameters

  • hRil
    [in] A handle to the RIL instance that is returned by RIL_Initialize.
  • lpNdisSetGprsContextActivated
    [in] A pointer to a RILNDISGPRSCONTEXT structure.

    When one of the callback functions is called, lpData points to a DWORD that contains error detail on failure or the Context ID on success.

Return Value

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

Upon successful completion, the function returns an asynchronous result code of RIL_RESULT_OK and lpData points to a RILNDISGPRSCONTEXTRESPONSE structure that contains the send/receive function pointers and IP data.

If the function is not successful, the error codes are:

Value

Description

E_INVALIDARG

Returned synchronously when lpNdisSetGprsContextActivated is invalid.

RIL_RESULT_ERROR

Returned asynchronously.

lpData points to a RILNDISGPRSCONTEXTRESPONSE structure, which contains the error code in lpData->dwError.

Requirements

Header

ril.h

Library

Ril.lib

See Also

Reference

RIL Functions
RILNDISGPRSCONTEXT
RILNDISGPRSCONTEXTRESPONSE