 |
SHAddToRecentDocs Add comment W32 Constants Translate this page |
 |
 |
|
Adds a document to the Shell"s list of recently used documents or clears all documents from the list. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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. |
 |
 |
| Usage: |
 |
DECLARE SHAddToRecentDocs IN shell32;
AS SHAddToRecentDocsC;
INTEGER uFlags, STRING @lpName
DECLARE SHAddToRecentDocs IN shell32;
AS SHAddToRecentDocsN;
INTEGER uFlags, INTEGER lpName
PROCEDURE AddDocument( vValue As Variant )
DO CASE
CASE EMPTY( m.vValue )
CASE VARTYPE(m.vValue) = "C"
* vValue must be a path
SHAddToRecentDocsC( SHARD_PATHA, m.vValue+CHR(0) )
CASE VARTYPE(m.vValue) = "N"
* vValue must be a pointer to an ITEMIDLIST (PIDL)
SHAddToRecentDocsN( SHARD_PIDL, m.vValue )
ENDCASE
|
 |
 |
| My comment: |
 |
| See also: SHGetFolderPath, SHGetFolderLocation, SHSimpleIDListFromPath, SHGetPathFromIDList |
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-06 12:00:00 | | Modified: | 2011-01-15 14:15:34 | Visited in last 7 days: 17 |