Shell32SHAddToRecentDocs(ShellAddToRecentDocsFlags, String) Method

Notifies the system that an item has been accessed, for the purposes of tracking those items used most recently and most frequently.

This function can also be used to clear all usage data.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", ExactSpelling = true, SetLastError = true)]
[SecurityCriticalAttribute]
public static void SHAddToRecentDocs(
	ShellAddToRecentDocsFlags flags,
	string path
)

Parameters

flags  ShellAddToRecentDocsFlags
flags that ndicates the form of the information pointed to by the pv parameter.
path  String
A pointer to data that identifies the item that has been accessed.

Set this parameter to NULL to clear all usage data on all items.

Remarks

See Also