ril.h
来自「wince中工程模式用来测试硬件的驱动是否好用」· C头文件 代码 · 共 861 行 · 第 1/5 页
H
861 行
#define RIL_E_NORESPONSETODIAL (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_NETWORKACCESS,0x5b))) // @constdefine Dial operation hasn't received a response for a long time
#define RIL_E_SECURITYFAILURE (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_NONE,0x5c))) // @constdefine Security failure
#define RIL_E_RADIOFAILEDINIT (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_NONE,0x5d))) // @constdefine Radio failed to initialize correctly
#define RIL_E_DRIVERINITFAILED (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_RADIOUNAVAILABLE, 0x5e))) // @constdefine There was a problem initializing the radio driver
#define RIL_E_RADIONOTPRESENT (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_RADIOUNAVAILABLE, 0x5f))) // @constdefine The Radio is not present
#define RIL_E_RADIOOFF (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_RADIOUNAVAILABLE, 0x60))) // @constdefine The Radio is in Off mode
#define RIL_E_ILLEGALMS (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x61))) // @constdefine Illegal MS
#define RIL_E_ILLEGALME (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x62))) // @constdefine Illegal ME
#define RIL_E_GPRSSERVICENOTALLOWED (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x63))) // @constdefine GPRS Service not allowed
#define RIL_E_PLMNNOTALLOWED (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x64))) // @constdefine PLMN not allowed
#define RIL_E_LOCATIONAREANOTALLOWED (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x65))) // @constdefine Location area not allowed
#define RIL_E_ROAMINGNOTALLOWEDINTHISLOCATIONAREA (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x66))) // @constdefine Roaming not allowed in this location area
#define RIL_E_SERVICEOPTIONNOTSUPPORTED (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x67))) // @constdefine Service option not supported
#define RIL_E_REQUESTEDSERVICEOPTIONNOTSUBSCRIBED (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x68))) // @constdefine Requested service option not subscribed
#define RIL_E_SERVICEOPTIONTEMPORARILYOUTOFORDER (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x69))) // @constdefine Service option temporarily out of order
#define RIL_E_PDPAUTHENTICATIONFAILURE (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x6a))) // @constdefine PDP authentication failure
#define RIL_E_INVALIDMOBILECLASS (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x6b))) // @constdefine invalid mobile class
#define RIL_E_UNSPECIFIEDGPRSERROR (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_GPRS, 0x6c))) // @constdefine unspecific GPRS error
#define RIL_E_RADIOREBOOTED (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_NONE, 0x6d))) // @constdefine the command failed because the radio reset itself unexpectedly
#define RIL_E_INVALIDCONTEXTSTATE (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_NONE, 0x6e))) // @constdefine the command failed because the requested context state is invalid
#define RIL_E_MAXCONTEXTS (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_NONE, 0x6f))) // @constdefine the command failed because there are no more radio contexts.
#define RIL_E_FDNRESTRICT (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_SMSC,0x70))) // @constdefine Message FDN restriction
#define RIL_E_INVALIDASYNCCOMMANDRESPONSE (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_NONE,0x71))) // @constdefine The RIL driver has issued an invalid asynchronous command response (hr == 0)
#define RIL_E_INCOMPATIBLEPROXYDRIVER (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_NONE,0x72))) // @constdefine Incompatible versions of RIL proxy and RIL driver.
#define RIL_E_INVALIDDRIVERVERSIONEX (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_NONE,0x73))) // @constdefine Invalid RIL driver version (version ex) data.
#define RIL_E_SIMCALLMODIFIED (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_SIM,0x74))) // @constdefine USIM Call control modified the call information.
#if defined (ZTE_P550A)
/* Added by zhong 070119 begin */
#define RIL_E_FIREWALLEXIST (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_NONE,0x80))) // @constdefine the command failed because the number is already in FireWall
#define RIL_E_FIREWALLFULL (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_NONE,0x81))) // @constdefine the command failed because the FireWall is full
#define RIL_E_NORADIOERROR (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RIL, MAKE_RILERROR(RIL_ERRORCLASS_RADIOUNAVAILABLE,0x82)))// @constdefine the FireWallSet command failed because the radio is off
/* Added by zhong 070119 end */
#endif
// -----------------------------------------------------------------------------
//
// @doc EXTERNAL
//
// @constants Notification Class | Notification classes
//
// @comm None
//
// -----------------------------------------------------------------------------
#define RIL_NCLASS_FUNCRESULT (0x00000000) // @constdefine API call results
#define RIL_NCLASS_CALLCTRL (0x00010000) // @constdefine Call control notifications
#define RIL_NCLASS_MESSAGE (0x00020000) // @constdefine Messaging notifications
#define RIL_NCLASS_NETWORK (0x00040000) // @constdefine Network-related notifications
#define RIL_NCLASS_SUPSERVICE (0x00080000) // @constdefine Supplementary service notifications
#define RIL_NCLASS_PHONEBOOK (0x00100000) // @constdefine Phonebook notifications
#define RIL_NCLASS_SIMTOOLKIT (0x00200000) // @constdefine SIM Toolkit notifications
#define RIL_NCLASS_MISC (0x00400000) // @constdefine Miscellaneous notifications
#define RIL_NCLASS_RADIOSTATE (0x00800000) // @constdefine Notifications Pertaining to changes in Radio State
#define RIL_NCLASS_DEVSPECIFIC (0x80000000) // @constdefine Reserved for device specific notifications
#define RIL_NCLASS_ALL (0x00ff0000) // @constdefine All notification classes (except DevSpecifc)
#if defined (ZTE_P550A)
//janhy add
#define RIL_NCLASS_ZTE (0x01000000)
#define RIL_NOTIFY_ZTE (0x00000001 | RIL_NCLASS_ZTE)
/*added by lxl.lxl-sms-opened-1*/
#define RIL_NOTIFY_ZTE_SMS_OPENED_STATUS (0x00000002 | RIL_NCLASS_ZTE)
//add by djh 20060109, 用于收到+CPIN: READY时的处理标识
#define RIL_NOTIFY_ZTE_CPIN_READY (0x00000003 | RIL_NCLASS_ZTE)
#endif
// -----------------------------------------------------------------------------
//
// @doc EXTERNAL //guyu added 060913
//
// @constants required for the device specific call
//
// @comm None
//
// -----------------------------------------------------------------------------
#if defined (ZTE_P550A)
#define RIL_DEVSPECIFICPARAM_CHECKLASTCALLTIME 4245 //see misc.h constant 4244,guyu
/* 来电防火墙 */
/* Added by zhong 060922 begin */
#define RIL_DEVSPECIFICPARAM_FORBIDBLACKLISTCALL 4246//禁止黑名单来电
#define RIL_DEVSPECIFICPARAM_WRITEBLACKLIST 4247//添加黑名单
#define RIL_DEVSPECIFICPARAM_WRITEFRIENDSLIST 4248//添加好友名单
#define RIL_DEVSPECIFICPARAM_CLOSEFIREWALL 4249//关闭防火墙
#define RIL_DEVSPECIFICPARAM_FORBIDALLCALL 4250//禁止所有来电
#define RIL_DEVSPECIFICPARAM_ALLOWFRIENDSCALL 4251//仅允许好友来电
#define RIL_DEVSPECIFICPARAM_SEEBLACKLIST 4252//查看黑名单
#define RIL_DEVSPECIFICPARAM_SEEFRIENDSLIST 4253//查看好友名单
#define RIL_DEVSPECIFICPARAM_SEEFIREWALL 4254//查看防火墙状态
/* Added by zhong 060922 end */
/*Added by zhong 061025 begin*/
#define RIL_DEVSPECIFICPARAM_DELETEBLACKLIST 4255//删除黑名单
#define RIL_DEVSPECIFICPARAM_DELETEFRIENDSLIST 4256//删除好友名单
#define RIL_DEVSPECIFICPARAM_EDITBLACKLIST 4257//编辑黑名单
#define RIL_DEVSPECIFICPARAM_EDITFRIENDSLIST 4258//编辑好友名单
/*Added by zhong 061025 end*/
/*Added by zhong 070626 for SimPB begin*/
#define RIL_DEVSPECIFICPARAM_SETSIMPBPOSITION 4259//设置存储位置为SIM卡
#define RIL_DEVSPECIFICPARAM_READSIMPB 4260//读取sim卡电话本
/*Added by zhong 070626 for SimPB end*/
/* 工程模式 */
/*added by lxl-ex-2*/
#define RIL_DEVSPECIFICPARAM_GET_VERSION 4270 /*得到软件版本*/
#define RIL_DEVSPECIFICPARAM_OPEN_ENGIMODE 4271/*打开工程模式*/
#define RIL_DEVSPECIFICPARAM_CLOSE_ENGIMODE 4272 /*关闭工程模式*/
//#define RIL_DEVSPECIFICPARAM_ENGIMODE_SC_PAGE 4273 /*服务小区工程模式的第几页*/
//#define RIL_DEVSPECIFICPARAM_ENGIMODE_NC_PAGE 4274 /*临近小区工程模式的第几页*/
#define RIL_DEVSPECIFICPARAM_ENGIMODE_NEXT_PAGE 4273/*工程模式的下一页信息,有可能是服务小区也有可能是邻近小区*/
#define RIL_DEVSPECIFICPARAM_STK_EVENT_LOAD 4274 /*STK业务的event download*/
#define RIL_DEVSPECIFICPARAM_STK_PROFILE 4275 /*STK业务的profile*/
#define RIL_DEVSPECIFICPARAM_SMS_OPENED_CHANGE 4276/*更改短信开通项*/
#define RIL_DEVSPECIFICPARAM_SMS_OPENED_QUERY 4277/*查询短信开通项*/
#define RIL_DEVSPECIFICPARAM_WIRELESS_BOARD_NUM 4278/*查询板号*/
#define RIL_DEVSPECIFICPARAM_GET_IMEI 4279/*查询imei*/
/* lxl-ex-2.end*/
// -----------------------------------------------------------------------------
/* Added by djh 20061231, begin */
#define RIL_DEVSPECIFICPARAM_GET_CBNUMS 4290 /*得到小区频道数*/
/* Added by djh 20061231, end */
/* Added by zhaoyi 20070817, begin */
#define RIL_DEVSPECIFICPARAM_CBAND 4291/*修改频段*/
/* Added by zhaoyi 20070817, end */
#endif
//
// @doc EXTERNAL
//
// @constants API Result | API call results (RIL_NCLASS_FUNCRESULT)
//
// @comm None
//
// -----------------------------------------------------------------------------
#define RIL_RESULT_OK (0x00000001 | RIL_NCLASS_FUNCRESULT) // @constdefine RIL API call succeded; lpData is NULL
#define RIL_RESULT_NOCARRIER (0x00000002 | RIL_NCLASS_FUNCRESULT) // @constdefine RIL API failed because no carrier was detected; lpData is NULL
#define RIL_RESULT_ERROR (0x00000003 | RIL_NCLASS_FUNCRESULT) // @constdefine RIL API failed; lpData points to RIL_E_* constant
#define RIL_RESULT_NODIALTONE (0x00000004 | RIL_NCLASS_FUNCRESULT) // @constdefine RIL API failed because no dialtone was detected; lpData is NULL
#define RIL_RESULT_BUSY (0x00000005 | RIL_NCLASS_FUNCRESULT) // @constdefine RIL API failed because the line was busy; lpData is NULL
#define RIL_RESULT_NOANSWER (0x00000006 | RIL_NCLASS_FUNCRESULT) // @constdefine RIL API failed because of the lack of answer; lpData is NULL
#define RIL_RESULT_CALLABORTED (0x00000007 | RIL_NCLASS_FUNCRESULT) // @constdefine RIL API failed because it was cancelled prior to completion; lpData is NULL
#define RIL_RESULT_CALLDROPPED (0x00000008 | RIL_NCLASS_FUNCRESULT) // @constdefine RIL API failed because the network dropped the call; lpData is NULL
#if defined (ZTE_P550A)
/*Added by zhong 070119 begin*/
#define RIL_RESULT_NORADIO (0x00000009 | RIL_NCLASS_FUNCRESULT)// @constdefine RIL API failed because the radio is off; lpData is NULL
#define RIL_RESULT_FIREWALLISFULL (0x0000000A | RIL_NCLASS_FUNCRESULT)// @constdefine RIL API failed because FireWall number is full; lpData is NULL
#define RIL_RESULT_FIREWALLEXIST (0x0000000B | RIL_NCLASS_FUNCRESULT)// @constdefine RIL API failed because FireWall number is exist; lpData is NULL
/*Added by zhong 070119 end*/
#endif
// -----------------------------------------------------------------------------
//
// @doc EXTERNAL
//
// @constants Notification Call Control | Call control notifications (RIL_NCLASS_CALLCTRL)
//
// @comm None
//
// -----------------------------------------------------------------------------
#define RIL_NOTIFY_RING (0x00000001 | RIL_NCLASS_CALLCTRL) // @constdefine Incoming call; lpData points to RILRINGINFO
#define RIL_NOTIFY_CONNECT (0x00000002 | RIL_NCLASS_CALLCTRL) // @constdefine Data/voice connection has been established; lpData points to RILCONNECTINFO
#define RIL_NOTIFY_DISCONNECT (0x00000003 | RIL_NCLASS_CALLCTRL) // @constdefine Data/voice connection has been terminated; lpData points to RIL_DISCINIT_* constant
#define RIL_NOTIFY_DATASVCNEGOTIATED (0x00000004 | RIL_NCLASS_CALLCTRL) // @constdefine Data connection service has been negotiated; lpData points to RILSERVICEINFO
#define RIL_NOTIFY_CALLSTATECHANGED (0x00000005 | RIL_NCLASS_CALLCTRL) // @constdefine RIL has performed an operation that may have changed state of existing calls; lpData is NULL
#define RIL_NOTIFY_EMERGENCYMODEENTERED (0x00000006 | RIL_NCLASS_CALLCTRL) // @constdefine RIL has enetered emergency mode; lpData is NULL
#define RIL_NOTIFY_EMERGENCYMODEEXITED (0x00000007 | RIL_NCLASS_CALLCTRL) // @constdefine RIL has exited emergency mode; lpData is NULL
#define RIL_NOTIFY_EMERGENCYHANGUP (0x00000008 | RIL_NCLASS_CALLCTRL) // @constdefine Existsing calls (if any) were hung up in RIL emergency mode; lpData is NULL
#define RIL_NOTIFY_HSCSDPARAMSNEGOTIATED (0x00000009 | RIL_NCLASS_CALLCTRL) // @constdefine HSCSD parameters for a call has been negotiated; lpData points to RILCALLHSCSDINFO
#define RIL_NOTIFY_DIAL (0x0000000A | RIL_NCLASS_CALLCTRL) // @constdefine Outgoing call; lpData points to RILDIALINFO
#define RIL_NOTIFY_CALLPROGRESSINFO (0x0000000B | RIL_NCLASS_CALLCTRL) // @constdefine CPI notification; lpData points to RILCALLINFO
#define RIL_NOTIFY_CURRENTLINECHANGED (0x0000000C | RIL_NCLASS_CALLCTRL) // @constdefine Current line has changed notification; lpData points to DWORD with new current address id
#define RIL_NOTIFY_GPRS_DISCONNECT (0x0000000D | RIL_NCLASS_CALLCTRL) // @constdefine GPRS connection has been terminated; lpData points to RILGPRSCONTEXTACTIVATED sturct
#define RIL_NOTIFY_CALLMODIFICATIONINFO (0x0000000E | RIL_NCLASS_CALLCTRL) // @constdefine USIM call modification; lpData points to RILCALLMODIFCATIONINFO
// -----------------------------------------------------------------------------
//
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?