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
Browsing Windows Known Folders (Special Folders)
Displaying system dialog that selects a folder
SHGetPathFromIDList
..msdn    Add comment     W32 Constants      Translate this page
Converts an item identifier list to a file system path.
Code examples:
Browsing Windows Known Folders (Special Folders)
Displaying system dialog that selects a folder
Accessing the list of Windows Recent Documents
Declaration:
BOOL SHGetPathFromIDList(
    LPCITEMIDLIST pidl,
    LPTSTR pszPath
);
FoxPro declaration:
DECLARE INTEGER SHGetPathFromIDList IN shell32;
    INTEGER   pidl,;
    STRING  @ pszPath
Parameters:
pidl
Address of an item identifier list that specifies a file or directory location relative to the root of the namespace (the desktop).

pszPath
Address of a buffer to receive the file system path. This buffer must be at least MAX_PATH characters in size.
Return value:
Returns TRUE if successful, or FALSE otherwise.
Usage:
PROCEDURE PIDLFromPath( cPath As String ) As Number
RETURN SHSimpleIDListFromPath(;
    THIS.ToUnicode(m.cPath))

PROCEDURE PathFromPIDL( nPIDL As Number ) As String
    LOCAL cBuffer
    cBuffer = REPLICATE(CHR(0), MAX_PATH)
    SHGetPathFromIDList( nPIDL, @cBuffer )
RETURN STRTRAN(m.cBuffer, CHR(0), "")

PROCEDURE ToUnicode( cSource As String ) As String
RETURN STRCONV(m.cSource+CHR(0),5)
My comment:
See also: SHSimpleIDListFromPath, SHParseDisplayName
Word Index links for the SHGetPathFromIDList :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-01-02 15:57:37
Modified: 2011-01-15 14:21:45
Visited in last 7 days: 38
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.166.232.243)
12 sec.Function: 'FatalAppExit'
25 sec.Function: 'GetActiveWindow'
39 sec.Function: 'LoadUserProfile'
51 sec.Function: 'SQLGetConfigMode'
1.05 min.Function: 'CreateFileTransacted'
1.25 min.Function: 'GetClipboardFormatName'
1.43 min.Function: 'GlobalUnlock'
1.65 min.Function: 'LockFile'
1.83 min.Function: 'waveInPrepareHeader'
2 min.Function: 'GetOldestEventLogRecord'
Google
Advertise here!