Simple bool returning function to determine if the platform you're searching for is a Smartphone or not:
static BOOL IsSmartphone()
{
TCHAR tszPlatform[64];
if (TRUE == SystemParametersInfo(SPI_GETPLATFORMTYPE,
sizeof(tszPlatform)/sizeof(*tszPlatform),tszPlatform,0))
{
if (0 == _tcsicmp(TEXT("Smartphone"), tszPlatform))
{
return TRUE;
}
}
return FALSE;
}
- It is currently Thu May 23, 2013 12:54 am • All times are UTC + 2 hours
Determine if Platform is Smartphone
1 post
• Page 1 of 1
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
