Download the source code

The RIL API RIL_GetAllOperatorsList retrieves all built-in known operators list. The API returns the operators list in an array of RILOPERATORNAMES structures. The structure is defined as:

typedef struct {
  DWORD cbSize;
  DWORD dwParams;
  char szLongName[MAXLENGTH_OPERATOR_LONG];
  char szShortName[MAXLENGTH_OPERATOR_SHORT];
  char szNumName[MAXLENGTH_OPERATOR_NUMERIC];
  char szCountryCode[MAXLENGTH_OPERATOR_COUNTRY_CODE];
} RILOPERATORNAMES;

The szLongName member contains the long name of the operator and szShortName contains the short name of the operator. The szNumName represents the numeric representation of the operator and the szCountryCode member represents the country/region code of the operator.

This function retrieves all known operators, to retrieve all available operators list use the API RIL_GetOperatorList. This function returns the list in an array of RILOPERATORINFO structures. The structure is defined as:

typedef struct {
  DWORD cbSize;
  DWORD dwParams;
  DWORD dwIndex;
  DWORD dwStatus;
  RILOPERATORNAMES ronNames;
} RILOPERATORINFO;

The ronNames contains the operator details.