Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.19 KB

SHAddToRecentDocs.md

File metadata and controls

52 lines (34 loc) · 1.19 KB

Home

Function name : SHAddToRecentDocs

Group: Shell Functions - Library: shell32


Adds a document to the Shell"s list of recently used documents or clears all documents from the list.


Code examples:

Accessing the list of Windows Recent Documents

Declaration:

VOID SHAddToRecentDocs(
    UINT uFlags,
    LPCVOID pv
);  

FoxPro declaration:

DECLARE SHAddToRecentDocs IN shell32;
    INTEGER uFlags,;
    STRING @ lpName  

Parameters:

uFlags [in] Flag that indicates the meaning of the pv parameter.


Return value:

pv [in] A pointer to either a NULL terminated string with the path and file name of the document, or a PIDL that identifies the document"s file object.


Comments:

See also: SHGetFolderPath, SHGetFolderLocation, SHSimpleIDListFromPath, SHGetPathFromIDList.