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.
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,
string path
)
<DllImportAttribute("Shell32.dll", ExactSpelling := true, SetLastError := true>]
<SecurityCriticalAttribute>
Public Shared Sub SHAddToRecentDocs (
flags As ShellAddToRecentDocsFlags,
path As String
)
Dim flags As ShellAddToRecentDocsFlags
Dim path As String
Shell32.SHAddToRecentDocs(flags, path)
public:
[DllImportAttribute(L"Shell32.dll", ExactSpelling = true, SetLastError = true)]
[SecurityCriticalAttribute]
static void SHAddToRecentDocs(
ShellAddToRecentDocsFlags flags,
String^ path
)
[<DllImportAttribute("Shell32.dll", ExactSpelling = true, SetLastError = true)>]
[<SecurityCriticalAttribute>]
static member SHAddToRecentDocs :
flags : ShellAddToRecentDocsFlags *
path : string -> 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.
- 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.