Sapphire IMEI Utility使您可以記錄國際移動設備標識(IEMI)或者國際移動用戶標識(IMSI)數字。這些數字可以用來追蹤哪些設備和SIM卡正在被哪個用戶使用。通過數據把這些數字用作設備的前綴,它還可以用來確認設備內的數據是否唯一。Sapphire IMEI Utility可以從SmartPhone或者是PPC2002/2003手機版本設備中讀取IMEI和IMSI數字。
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手機版本設備上開發應用程序,您也許希望能夠記錄下設備的國際移動設備標識(IEMI)或者國際移動用戶標識(IMSI)數字。這些數字可以被用來追蹤哪些設備和SIM卡正在被哪個用戶使用。

Sapphire IMEI Utility可以從SmartPhone或者是PPC2002/2003手機版本設備中讀取IMEI和IMSI數字.
實例代碼: 該操作是如此簡單的,您只需在您的程序中聲明相應的DLL函數,然后在您需要的地方調用即可。下面的示例說明了在VB.NET里讀取設備的IMEI數字。
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