cocos2dx 移植winphone相关整理一
来源:互联网 发布:校园网络拓扑设计 编辑:程序博客网 时间:2024/06/17 16:58
获取winphone操作系统版本号:
System.Environment.OSVersion
其中OSVersion 为OperatingSystem对象,包含PlatformID指示操作系统平台)和Version(指示操作系统的版本)
System.PlatformID枚举值及其含义
Win32S 操作系统为 Win32s(Win32 子集)类型。
Win32s 是运行于 Windows 16 位版本上的层,它提供对 32 位应用程序的访问。
Win32Windows 操作系统为 Windows 95 或较新的版本。
Win32NT 操作系统为 Windows NT 或较新的版本。
WinCE 操作系统为 Windows CE。
Unix 操作系统为 Unix。
Xbox 开发平台为 Xbox 360
Win32s 是运行于 Windows 16 位版本上的层,它提供对 32 位应用程序的访问。
Win32Windows 操作系统为 Windows 95 或较新的版本。
Win32NT 操作系统为 Windows NT 或较新的版本。
WinCE 操作系统为 Windows CE。
Unix 操作系统为 Unix。
Xbox 开发平台为 Xbox 360
其中在winphone上,winphone 8 Version形式为8.?.?.? winphone 10 Version 形式为 10.?.?.?
获取winphone语言信息:
System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName;
获取winphone 设备id:
byte[] DeviceUniqueId = (byte[])DeviceExtendedProperties.GetValue("DeviceUniqueId");
string IdStr = System.Text.Encoding.UTF8.GetString(DeviceUniqueId, 0, DeviceUniqueId.Length);
string md5Str = JeffWilcox.Utilities.Silverlight.MD5.GetMd5String(IdStr);
string IdStr = System.Text.Encoding.UTF8.GetString(DeviceUniqueId, 0, DeviceUniqueId.Length);
string md5Str = JeffWilcox.Utilities.Silverlight.MD5.GetMd5String(IdStr);
对于DeviceExtendedProperties,可以获取的信息就相对多一些,可以取到的信息如下所示:
DeviceManufacturer :获取设备制造商名称
DeviceName : 获取设备名称
DeviceUniqueId :获取设备ID
DeviceFirmwareVersion :获取设备的固件版本
DeviceHardwareVersion :获取设备的硬件版本
DeviceTotalMemory :获取设备的物理内存大小
ApplicationCurrentMemoryUsage:获取当前应用程序的使用内存大小
ApplicationPeakMemoryUsage :获取当前应用程序峰值内存大小
DeviceManufacturer :获取设备制造商名称
DeviceName : 获取设备名称
DeviceUniqueId :获取设备ID
DeviceFirmwareVersion :获取设备的固件版本
DeviceHardwareVersion :获取设备的硬件版本
DeviceTotalMemory :获取设备的物理内存大小
ApplicationCurrentMemoryUsage:获取当前应用程序的使用内存大小
ApplicationPeakMemoryUsage :获取当前应用程序峰值内存大小
添加命名空间using Microsoft.Phone.Info;
获取服务 Internet 请求的网络类型
var info = Microsoft.Phone.Net.NetworkInformation.NetworkInterface.NetworkInterfaceType;
// 摘要:
// 没有可用的网络用于访问 Internet。
None = 0,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Unknown = 1,
//
// 摘要:
// 此网络接口使用以太网连接。以太网是采用 IEEE 标准 802.3 定义的。它用于桌面 pass-through。
Ethernet = 6,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
TokenRing = 9,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Fddi = 15,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
BasicIsdn = 20,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
PrimaryIsdn = 21,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Ppp = 23,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Loopback = 24,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Ethernet3Megabit = 26,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Slip = 28,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Atm = 37,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
GenericModem = 48,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
FastEthernetT = 62,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Isdn = 63,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
FastEthernetFx = 69,
//
// 摘要:
// 网络接口使用无线 LAN 连接(IEEE 802.11 标准)。它用于任何 Wi-Fi(802.11、蓝牙等)。
Wireless80211 = 71,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
AsymmetricDsl = 94,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
RateAdaptDsl = 95,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
SymmetricDsl = 96,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
VeryHighSpeedDsl = 97,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
IPOverAtm = 114,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
GigabitEthernet = 117,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Tunnel = 131,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
MultiRateSymmetricDsl = 143,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
HighPerformanceSerialBus = 144,
//
// 摘要:
// 此网络接口使用 GSM 蜂窝网络。
MobileBroadbandGsm = 145,
//
// 摘要:
// 此网络接口使用 CDMA 蜂窝网络。
MobileBroadbandCdma = 146,
// 没有可用的网络用于访问 Internet。
None = 0,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Unknown = 1,
//
// 摘要:
// 此网络接口使用以太网连接。以太网是采用 IEEE 标准 802.3 定义的。它用于桌面 pass-through。
Ethernet = 6,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
TokenRing = 9,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Fddi = 15,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
BasicIsdn = 20,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
PrimaryIsdn = 21,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Ppp = 23,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Loopback = 24,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Ethernet3Megabit = 26,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Slip = 28,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Atm = 37,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
GenericModem = 48,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
FastEthernetT = 62,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Isdn = 63,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
FastEthernetFx = 69,
//
// 摘要:
// 网络接口使用无线 LAN 连接(IEEE 802.11 标准)。它用于任何 Wi-Fi(802.11、蓝牙等)。
Wireless80211 = 71,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
AsymmetricDsl = 94,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
RateAdaptDsl = 95,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
SymmetricDsl = 96,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
VeryHighSpeedDsl = 97,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
IPOverAtm = 114,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
GigabitEthernet = 117,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
Tunnel = 131,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
MultiRateSymmetricDsl = 143,
//
// 摘要:
// Windows Phone 不使用此网络接口类型。
HighPerformanceSerialBus = 144,
//
// 摘要:
// 此网络接口使用 GSM 蜂窝网络。
MobileBroadbandGsm = 145,
//
// 摘要:
// 此网络接口使用 CDMA 蜂窝网络。
MobileBroadbandCdma = 146,
winphone 手机分辨率获取:
System.Windows.Application.Current.Host.Content.ActualHeight
System.Windows.Application.Current.Host.Content.ActualWidth
0 0
- cocos2dx 移植winphone相关整理一
- cocos2dx 移植winphone 整理二
- cocos2dx winphone环境搭建
- cocos2dx相关文章整理
- cocos2dx移植到安卓的整理
- tslib 移植 相关整理
- winphone
- cocos2dx安卓移植相关文章的编辑
- jQuery相关知识整理(一)
- cocos2dx-3.0 相关整理,cosos2dx-3.0 Android发布注意
- Gnome 3 相关整理(一)
- XtraPivotGrid相关教程整理(一)
- 面向对象相关知识点整理(一)
- Mongodb的相关文档整理(一)
- Mongodb的相关文档整理(一)
- Halcon一维运算相关算子整理
- cocos2dx移植小问题
- cocos2dx移植android平台
- 触摸事件与手势监听--Android GestureDetector详解
- Maven命令
- ts流格式详解
- Android消息队列总结
- sublime使用
- cocos2dx 移植winphone相关整理一
- Spring事务管理(详解+实例)
- 【C语言】通讯录管理系统(容量固定)
- 状压DP-NOIPTG2005过河
- Ubuntu16.04.1系统调试笔记
- 输入框不可点击
- 59. Spiral Matrix II
- 10分钟让你明白快捷支付各种鉴权方式及风险
- PHP基础知识点