Domanda

I'm looking for a way to programattically determine whether or not the user has Windows' "store and display recently opened items in the Start Menu and the Taskbar" option enabled. I'm using the WinAPICodecPack (C#) to add items/categories to my Application's jumplist, but Exceptions are thrown when the user has the option unchecked.

Does anyone happen to know if there is a registry key, or some other method of determining the state of this settings?

È stato utile?

Soluzione

When the tracking feature is disabled by the user:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced:Start_TrackDocs=0x0 (REG_DWORD)

When the tracking feature is disabled through Group Policy:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer:NoRecentDocsHistory=0x1 (REG_DWORD)

regards, Martin

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top