windows mobile 6.5 SystemParametersInfoString 的使用

在windows mobile平台上调用,可以取得该平台的版本信息,大家可以测试下。 private const int SPI_GETPLATFORMTYPE = 257; [DllImport("coredll.dll", EntryPoint="SystemParametersInfo", SetLastError=true)] private static extern int SystemParametersInfoString(int uiAction, int uiParam, StringBuilder pvParam, int fWinIni); public static string GetPlatformName() { try { StringBuilder sb = new StringBuilder(256); if (SystemParametersInfoString(SPI_GETPLATFORMTYPE, sb.Capacity, sb, 0) != 0) { return sb.ToString(); } } catch(Exception ex) { Console.Write(ex.ToString()); } return "<unknown platform="">"; } </unknown>

你可能感兴趣的:(windows,.net,C#,mobile,compact,vs2008,Framewo)