编程方式访问使用最频繁的在Windows 8.1的应用程序 [英] Programmatically access most frequently used apps in Windows 8.1

查看:176
本文介绍了编程方式访问使用最频繁的在Windows 8.1的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 8.1开始菜单提供了可以通过使用最多的排序的应用程序的列表(windows键>向下箭头>应用程序:由最常用的)。有没有一种方法以编程方式获得这些应用程序的列表的按照此顺序的在C#中?如果不按照这个顺序,至少显示在Windows 8.1开始菜单中最常用的和/或适度使用的应用程序的列表?

The Windows 8.1 start menu provides a list of apps that can be sorted by most used (Windows Button > Down arrow > Apps: by most used). Is there a way to programmatically get a list of these apps in this order in C#? If not in this order, at least a list of the most used and/or moderately used apps as displayed in the Windows 8.1 start menu?

推荐答案

或许是肯定的,就可以了,虽然它不推荐答案(也不容易)。

The answer is probably yes, you can, though it's not recommended (nor easy).

雷蒙德陈在他的博客中描述了这个漂亮的明确,的为什么会出现在开始菜单销列表中没有的编程访问?。它谈论Windows XP上的一个不同的问题,但我认为这个故事的寓意在这里也适用,这些信息太容易被滥用,因此没有公共API可用。计算器还具有直接处理MFU列表中的问题(见的这个问题),答案是,你只是不应该这样做。

Raymond Chen described this pretty clearly in his blog post, "Why is there no programmatic access to the Start menu pin list?". It talks about a different issue on Windows XP, but I think the moral of the story applies here as well, that this information is too easily abused and thus no public API is available. Stackoverflow also has a question that addresses the MFU list directly (see this question), and the answers are that you just shouldn't do it.

关键是,你看到MFU列表存储在注册表中的UserAssist部分,它的值进行加密(以前是ROT13,但我不知道8.1)。迪迪埃·史蒂文斯写道,解密值(见博客文章)的GUI,但它一直没有更新自8.1出来了。什么它的价值作者包括了源代码,但它是一个旧版本。你也许可以扩大自己的代码,使其支持8.1如果你能做到的密码分析。

The thing is, the MFU list you see is stored in the UserAssist section of the registry, and its values are encrypted (used to be ROT13, but I have no idea for 8.1). Didier Stevens wrote a GUI that decrypts the values (see blog post), but it has not been updated since 8.1 came out. For what its worth the author has included the source code but it's for an older version. You can probably expand on his code to make it support 8.1 if you can do cryptanalysis.

这篇关于编程方式访问使用最频繁的在Windows 8.1的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆