Foros - getDeviceUniqueID
| Ver tema anterior :: Ver tema siguiente |
| Autor |
Mensaje |
JordiP Recién llegado
Registrado: 18 Dic 2009 Mensajes: 2
|
Publicado: 04/01/10 (09:38:41) Asunto: getDeviceUniqueID |
|
|
Buenas y Feliz 2010 a todos.
Estoy intentando obtener el numero de serie de mi PDA, es decir el numero UNICO que me identifica el dispositivo, como el IMEI de los MODEMS o nuestro DNI (Documento Nacional Identidad).
He leido todo sobre la funcion "GetDeviceUniqueID" y he probado, obteniendo algo que no se como interpretarlo.
| Código: | _
Private Shared Function GetDeviceUniqueID(ByVal appdata As Byte(), ByVal cbApplictionData As Integer, ByVal dwDeviceIDVersion As Integer, ByVal deviceIDOuput As Byte(), ByRef pcbDeviceIDOutput As Integer) As Integer
End Function
Private Function GetDeviceIdUnique(ByVal appData As String) As Byte()
Dim appDataBytes As Byte() = System.Text.Encoding.ASCII.GetBytes(appData)
Dim outputSize As Integer = 20
Dim output(19) As Byte
Dim result As Integer = GetDeviceUniqueID(appDataBytes, appDataBytes.Length, 1, output, outputSize)
Return output
End Function |
Creo que el valor que necesito esta en "OutPut", pero me viene en Bytes. Para transformarlo a String, utilizo
| Código: | | Dim IDUnique As String = System.Text.Encoding.ASCII.GetChars(GetDeviceIdUnique("appData")) |
Pero no acabo de leer el numero que necesito.
Espero que alguien pueda ayudarme.
Gracias a todos |
|
| Volver arriba |
|
 |
JordiP Recién llegado
Registrado: 18 Dic 2009 Mensajes: 2
|
|
| Volver arriba |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|