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
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: 9
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 (107.22.127.92)
3 sec.Function: 'AddPrinter'
Function group: 'Printing and Print Spooler'
6.7 min.Example: 'Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)'
6.77 min.Example: 'Attaching menu to a top-level form'
6.61 hrs.Example: 'How to print a bitmap file'
 Example: 'How to ping a remote site using IP Helper API calls'
7.09 hrs.Example: 'Custom GDI+ class'
10.64 hrs.Example: 'Storing registration key in the resources of an executable file'
 Example: 'Confining Windows calculator inside the VFP main window'
13.55 hrs.Function: 'BitBlt'
23.65 hrs.Example: 'Pocket PC: custom RAPI class for operating with files and folders on mobile device'
Google
Advertise here!