Sapphire IMEI Utility使您可以記錄國(guó)際移動(dòng)設(shè)備標(biāo)識(shí)(IEMI)或者國(guó)際移動(dòng)用戶標(biāo)識(shí)(IMSI)數(shù)字。這些數(shù)字可以用來(lái)追蹤哪些設(shè)備和SIM卡正在被哪個(gè)用戶使用。通過(guò)數(shù)據(jù)把這些數(shù)字用作設(shè)備的前綴,它還可以用來(lái)確認(rèn)設(shè)備內(nèi)的數(shù)據(jù)是否唯一。Sapphire IMEI Utility可以從SmartPhone或者是PPC2002/2003手機(jī)版本設(shè)備中讀取IMEI和IMSI數(shù)字。
Sapphire IMEI Utility enables you to record the device's International Mobile Equipment Identifier (IEMI) or International Mobile Subscriber Identity (IMSI) numbers. These numbers can be used to track what device and SIM card are being used by which user. It can also be used to ensure that the data on the device is kept unique by using the number as a device prefix within your data. The Sapphire IMEI Utility allows both the IMEI and IMSI numbers to be read from SmartPhone and PPC2002/2003 Phone Edition devices.
如果您在SmartPhone或者Pocket PC手機(jī)版本設(shè)備上開(kāi)發(fā)應(yīng)用程序,您也許希望能夠記錄下設(shè)備的國(guó)際移動(dòng)設(shè)備標(biāo)識(shí)(IEMI)或者國(guó)際移動(dòng)用戶標(biāo)識(shí)(IMSI)數(shù)字。這些數(shù)字可以被用來(lái)追蹤哪些設(shè)備和SIM卡正在被哪個(gè)用戶使用。

Sapphire IMEI Utility可以從SmartPhone或者是PPC2002/2003手機(jī)版本設(shè)備中讀取IMEI和IMSI數(shù)字.
實(shí)例代碼: 該操作是如此簡(jiǎn)單的,您只需在您的程序中聲明相應(yīng)的DLL函數(shù),然后在您需要的地方調(diào)用即可。下面的示例說(shuō)明了在VB.NET里讀取設(shè)備的IMEI數(shù)字。
Public Function IMEI(ByVal lDeviceID As Integer) As String
Dim sIMEIStore As String
Dim hInstance As Integer
sIMEIStore = Space(100)
sIMEI(sIMEIStore, hInstance, lDeviceID, SapphireIMEILicence)
IMEI = StripString(sIMEIStore)
End Function
Dim sIMEI As String
Dim lDeviceID As Integer
For lDeviceID = 0 To 10
lblDeviceID.Text = "Device ID is " & lDeviceID
lblDeviceID.Update()
sIMEI = IMEI(lDeviceID)
If Len(sIMEI) >= 15 Then
sIMEI = Mid(sIMEI, 1, 15)
lblIMEI.Text = "IMEI Number is " & sIMEI
lblIMEI.Update()
Exit For
End If
Next lDeviceID
If you are rolling out your application on Smartphone or Pocket PC phone edition devices, you may wish to record the device’s International Mobile Equipment Identifier (IEMI) or International Mobile Subscriber Identity (IMSI) numbers.

These numbers can be used to track what device and SIM card are being used by which user. It can also be used to ensure that the data on the device is kept unique by using the number as a device prefix within your data.
The Sapphire IMEI Utility allows both the IMEI and IMSI numbers to be read from SmartPhone and PPC2002/2003 Phone Edition devices.Sample Code Implementation couldn’t be easier, simply declare the DLL function as a function within your application and call it as though you wrote it yourself. Here’s a sample demo to how to retrieve the device’s IMEI number within VB.NET.
Public Function IMEI(ByVal lDeviceID As Integer) As String
Dim sIMEIStore As String
Dim hInstance As Integer
sIMEIStore = Space(100)
sIMEI(sIMEIStore, hInstance, lDeviceID, SapphireIMEILicence)
IMEI = StripString(sIMEIStore)
End Function
Dim sIMEI As String
Dim lDeviceID As Integer
For lDeviceID = 0 To 10
lblDeviceID.Text = "Device ID is " & lDeviceID
lblDeviceID.Update()
sIMEI = IMEI(lDeviceID)
If Len(sIMEI) >= 15 Then
sIMEI = Mid(sIMEI, 1, 15)
lblIMEI.Text = "IMEI Number is " & sIMEI
lblIMEI.Update()
Exit For
End If
Next lDeviceID