Possibility to read device typ/name?

  • Thread starter Thread starter Kenny Rymes
  • Start date Start date
K

Kenny Rymes

Hello

We are building an application where you can autoregister your device. (with
a webservice)
Now it would be great to send the device type or name (HTC Universal or even
better branded Name like Orange M5000) so we can store it into our database
on the server so if there is a problem, we know which device...

Is this possible in any way?

Thanks

Kenny
 
This is possible with the OEM info informations.
You can get the model name ID as follows:

GetModelName(LPTSTR lpstrName, int nLen)
{
TCHAR szOemInfo[255 + 1] = {0};
SystemParametersInfo( SPI_GETOEMINFO, sizeof(szOemInfo), szOemInfo, 0 )
);
_tcsncpy( lpstrName, szOemInfo, nLen );
}

here are some IDs I have found:

const TCHAR PPC_MODEL_NAME_MDA1[] = TEXT("PH10B");
const TCHAR PPC_MODEL_NAME_MDA2[] = TEXT("PH10A");
const TCHAR PPC_MODEL_NAME_MDA3[] = TEXT("PH20B");
const TCHAR PPC_MODEL_NAME_MDAPRO[] = TEXT("PU10");
const TCHAR PPC_MODEL_NAME_MDAVARIO[] = TEXT("HTC");
const TCHAR PPC_MODEL_NAME_MDACOMPACT[] = TEXT("PM10A");
const TCHAR PPC_MODEL_NAME_MDACOMPACT2[] = TEXT("PM200");
const TCHAR PPC_MODEL_NAME_HW6515[] = TEXT("HP IPAQ HW6515");
const TCHAR PPC_MODEL_NAME_IPAQ6340[] = TEXT("HP IPAQ H6340");
 
Back
Top