wp8 入门到精通 虚拟标示符 设备ID
//获得设备虚拟标示符 wp8
public string GetWindowsLiveAnonymousID()
{
object anid = new object();
string anonymousUserId = "";
try
{
if (UserExtendedProperties.TryGetValue("ANID2", out anid))
{
if (null == anid)
{
return string.Empty;
}
anonymousUserId = anid as string;
anonymousUserId = anonymousUserId.Substring(2, 32);
}
}
catch (Exception)
{
}
return anonymousUserId;
}

//获得设备id
//注意 同一个App在同一个手机使用设备Id相同 (包括重复卸载,更新)
// 不同的App在同一个手机使用设备Id不同 我觉得设备ID是绑定App的
public string GetDeviceId()
{
byte[] uniqueId = (byte[])DeviceExtendedProperties.GetValue("DeviceUniqueId");
string uinid = BitConverter.ToString(uniqueId);
System.Diagnostics.Debug.WriteLine(GetDeviceId());
return uinid.Replace("-", "");
}

同时加上两个能力
ID_CAP_IDENTITY_DEVICE
ID_CAP_IDENTITY_USER
用户名和邮箱是可以获取的 但是必须是越狱的手机 通过访问注册表获取 而且还可以修改liveID
越狱手机有:三星的那款WP8手机 华为W1
wp8 入门到精通 虚拟标示符 设备ID的更多相关文章
- wp8 入门到精通 Utilities类 本地存储+异步
public class CCSetting { public async static void AddOrUpdateValue<T>(string key, T value) { t ...
- wp8 入门到精通 仿美拍评论黑白列表思路
static bool isbool = false; private void BindGameDelete() { Tile tile = new Tile(); List<Color> ...
- wp8 入门到精通 生命周期
- wp8 入门到精通 定时更新瓷贴
public class ScheduledAgent : ScheduledTaskAgent { static ScheduledAgent() { Deployment.Current.Disp ...
- wp8 入门到精通 ImageCompress 图片压缩
//实例化选择器 PhotoChooserTask photoChooserTask = new PhotoChooserTask(); BitmapImage bimg; int newPixelW ...
- wp8 入门到精通 Gallery
<Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.Resources> ...
- wp8 入门到精通 MultiMsgPrompt
List<NotifyMsg> arraymsg = new List<NotifyMsg>(); List<NotifyInfo> ArrayNotifyInfo ...
- wp8 入门到精通 数据库更新字段(一)
public class UserInfoDB : BaseDB { public UserInfoDB() : base(@"Data Source=isostore:\MakeLove\ ...
- wp8 入门到精通 启动系统分享照片任务
PhotoChooserTask photoChooserTask = new PhotoChooserTask(); photoChooserTask.Completed += photoChoos ...
随机推荐
- FWT
Fast Walsh-Hadamard Transform .pre 今天本来想看FFT的应用的...翻翻picks的博客发现了好东西Fast Walsh-Hadamard Transform,感觉挺 ...
- jquery数组内多维对象
jquery数组内多维对象 var postData=[],obj,list; obj = !!obj ? obj : $('#dist_meici_checkinfo_form'); obj.fin ...
- aspx、ashx、asmx文件处理请求效率比较
人生总是面临着许多抉择许多困惑!作为一名“攻城师”或“程序猿”的我们,工作的时候更是如此.你曾经是否苦恼过在系统中使用哪种文件编写客户端请求最合适或最高效呢?aspx.ashx.asmx到底该如何选择 ...
- Random Pick Index
Given an array of integers with possible duplicates, randomly output the index of a given target num ...
- struts2框架 初始别
struts2 是webwork和struts合并而来. 1.下载struts2 说明: Full Distribution: 为完整版下载,建议下载它 Example Applications:st ...
- oracle,mybatis主键自增长
<insert id="insert" parameterType="resource"> <selectKey resultType=&qu ...
- ffmpeg-20160728-bin.7z
ESC 退出 0 进度条开关 1 屏幕原始大小 2 屏幕1/2大小 3 屏幕1/3大小 4 屏幕1/4大小 S 下一帧 [ -2秒 ] +2秒 ; -1秒 ' +1秒 下一个帧 -> -5秒 f ...
- ada 图形编辑器 - GNAT GPL
The GNAT GPL and SPARK GPL Editions are made available to the free software developers by AdaCore. T ...
- Java for LeetCode 206 Reverse Linked List
Reverse a singly linked list. 解题思路: 用Stack实现,JAVA实现如下: public ListNode reverseList(ListNode head) { ...
- Python~第三方模块
第三方库还有MySQL的驱动:MySQL-python,用于科学计算的NumPy库:numpy,用于生成文本的模板工具Jinja2 模块搜索路径 Windows下: 双\\ sys.path.ap ...