Shell32SHAddToRecentDocs(ShellAddToRecentDocsFlags, IShellItem) 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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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,
IShellItem shellItem
)
public:
[DllImportAttribute(L"Shell32.dll", ExactSpelling = true, SetLastError = true)]
[SecurityCriticalAttribute]
static void SHAddToRecentDocs(
ShellAddToRecentDocsFlags flags,
IShellItem^ shellItem
)
[<DllImportAttribute("Shell32.dll", ExactSpelling = true, SetLastError = true)>]
[<SecurityCriticalAttribute>]
static member SHAddToRecentDocs :
flags : ShellAddToRecentDocsFlags *
shellItem : IShellItem -> unit
No code example is currently available or this language may not be supported.
Parameters
- flags ShellAddToRecentDocsFlags
-
flags that ndicates the form of the information pointed to by the pv parameter.
- shellItem IShellItem
-
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.