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
SHSimpleIDListFromPath
..msdn    Add comment     W32 Constants      Translate this page
Returns a pointer to an ITEMIDLIST structure when passed a path.
Code examples:
Accessing the list of Windows Recent Documents
Declaration:
PIDLIST_ABSOLUTE SHSimpleIDListFromPath(
  __in  PCWSTR pszPath
);
FoxPro declaration:
DECLARE INTEGER SHSimpleIDListFromPath IN shell32;
    STRING pszPath
Parameters:
pszPath [in]
A pointer to a null-terminated string that contains the path to be converted to a PIDL.
Return value:
Returns a pointer to an ITEMIDLIST structure if successful, or NULL 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: SHGetPathFromIDList, SHParseDisplayName
Word Index links for the SHSimpleIDListFromPath :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2011-01-15 14:03:04
Modified: 2011-01-15 14:21:29
Visited in last 7 days: 71
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.79.128)
5 sec.Function: 'GetPriorityClass'
9 sec.
Function group: 'DNS Functions'
13 sec.Function: 'SetWindowsHookEx'
18 sec.Function: 'JetEndSession'
23 sec.Function: 'WNetAddConnection'
27 sec.Function: 'HeapUnlock'
32 sec.Function: 'CeWriteFile'
37 sec.Function: 'DeviceIoControl'
42 sec.Function: 'NetUserAdd'
47 sec.
Function group: 'Data Decompression Library'
Google
Advertise here!