WM 5 SDK Symbol

南楼画角 提交于 2019-12-03 21:50:37

See here for SIM management functions. I can't find anything for retrieving a SIM ID, if such a thing exists. I suppose that you can identify the SIM by the phone number. Is it possible two different SIMs to have the same phone number? To get the phone number there is the GetPhoneNumber sample in the Windows Mobile SDK.

As for identifying the phone, the correct way is to read the Device ID. Again there is the GetDeviceID sample in the SDK (Both are in Common\CPP\Win32). Copying from the sample's read me:

GetDeviceUniqueID protects the privacy of a device. Multiple applications need to use a device's unique identifier to communicate with servers. To protect a device's privacy, multiple servers should not be able to correlate data from the same device. GetDeviceUniqueID does not use any additional information other than the data that is provided by the application, so any application that passes in the same application data buffer will obtain the same hash. This API can be called be any application regardless of the trust level of the application.

If you want to retrieve the IMEI, see for example here.

You're after the lineGetGeneralInfo TAPI call. You want to look at the subscriber number, which is located using the dwSubscriberNumberSize and dwSubscriberNumberOffset members of the LINEGENERALINFO structure the call returns.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!