帮忙看看这几句代码的意思
#region HelloWorld2 使用API的方法判断设备
[DllImport("coredll.dll")]//不懂
private static extern void SystemParametersInfo(uint whichParam, uint size, StringBuilder platformType, uint notUsed);//不懂
const uint SPI_GETPLATFORMTYPE = 257;
public string HelloWorld2()
{
StringBuilder platformTypeString = new StringBuilder(255);
SystemParametersInfo(SPI_GETPLATFORMTYPE, (uint)platformTypeString.Capacity, platformTypeString, 0);
string pltType = platformTypeString.ToString();
return "Hello " + pltType;
}
#endregion
#region HelloWorld3 使用CF的方法判断设备
public string HelloWorld3()
{
string result;
#if PocketPC//不懂
result="Pocket PC";
#elif Smartphone
result= "Smartphone";
#else
result = "World";
#endif
return "Hello " + result;
}
#endregion