Using Win32 functions in Visual FoxPro Image Gallery
Shell Functions
..msdn
AssocQueryString
DllGetVersion
DragAcceptFiles
DragFinish
DragQueryFile
DragQueryPoint
FileIconInit
FindExecutable
GetFileNameFromBrowse
GetMenuContextHelpId
GetWindowContextHelpId
InetIsOffline
IsUserAnAdmin
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
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: 17
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.234.42.16)
3 sec.Function: 'CreatePopupMenu'
3.7 hrs.Function: 'ImpersonateLoggedOnUser'
 Example: 'Form Magnifier'
5.05 hrs.Function: 'LockServiceDatabase'
 Function: 'NetConnectionEnum'
6.2 hrs.Function: 'SCardGetProviderId'
 Example: 'Dynamic strings implemented through VFP Custom class'
7.63 hrs.Function: 'DllInstall'
Function group: 'Shell Lightweight Utility APIs -- misc. functions'
9.27 hrs.Function: 'waveOutGetDevCaps'
 Function: 'GetHGlobalFromStream'
Function group: 'COM'
Google
Advertise here!