从微软提供的WM开发例子程序中找到的,除了取到是否是Smartphone的信息外,SystemParametersInfo还有很多其他不错的用途

Code
BOOL IsSmartphone()
{
HRESULT hr;
TCHAR szPlatform[MAX_PLATFORM] = { 0 };
BOOL bResult = FALSE;
CBR(SystemParametersInfo(SPI_GETPLATFORMTYPE, ARRAYSIZE(szPlatform), szPlatform, 0));
if (0 == _tcsicmp(szPlatform, TEXT("Smartphone")))
{
bResult = TRUE;
}
Error:
return bResult;
}