Using Win32 functions in Visual FoxPro Image Gallery
Shell Functions
..msdn
AssocQueryString
DllGetVersion
DragAcceptFiles
DragFinish
DragQueryFile
DragQueryPoint
FileIconInit
FindExecutable
GetFileNameFromBrowse
GetMenuContextHelpId
GetWindowContextHelpId
InetIsOffline
IsUserAnAdmin
LoadUserProfile
PathMakeUniqueName
PathYetAnotherMakeUniqueName
RealDriveType
RestartDialog
SHAddToRecentDocs
SHBrowseForFolder
SHCreateDirectory
ShellAbout
ShellExecute
ShellExecuteEx
Shell_GetImageLists
Shell_NotifyIcon
SHEmptyRecycleBin
SHFileOperation
SHFormatDrive
SHGetFileInfo
SHGetFolderPath
SHGetPathFromIDList
SHGetSpecialFolderLocation
SHGetStockIconInfo
SHParseDisplayName
SHQueryRecycleBin
SHSimpleIDListFromPath
UnloadUserProfile
WinHelp
Code examples:
Accessing the list of Windows Recent Documents
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:
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.
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-06 12:00:00
Modified: 2011-01-15 14:15:34
Visited in last 7 days: 22
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.198.134.32)
7 sec.Function: 'DrawText'
Function group: 'Font and Text'
14 sec.
Function group: 'Path'
19 sec.Function: 'FindExecutable'
Function group: 'Shell Functions'
28 sec.Function: 'SetupDiDestroyClassImageList'
Function group: 'Setup API functions'
34 sec.Function: 'DeleteEnhMetaFile'
Function group: 'Metafile'
39 sec.Links
43 sec.
49 sec.Function: 'NetApiBufferFree'
Function group: 'Network Management'
54 sec.Function: 'midiOutShortMsg'
Function group: 'Windows Multimedia'
58 sec.Function: 'CreateFileTransacted'
Function group: 'File Management'
Google
Advertise here!