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:
Browsing Windows Known Folders (Special Folders)
SHGetSpecialFolderLocation
..msdn    Add comment     W32 Constants      Translate this page
Retrieves a pointer to the ITEMIDLIST structure of a special folder.
Code examples:
Browsing Windows Known Folders (Special Folders)
Declaration:
HRESULT SHGetSpecialFolderLocation(
  __in   HWND hwndOwner,
  __in   int nFolder,
  __out  PIDLIST_ABSOLUTE *ppidl
);
FoxPro declaration:
DECLARE INTEGER SHGetSpecialFolderLocation IN shell32;
    INTEGER hwndOwner,;
    INTEGER nFolder,;
    INTEGER @ppidl

Parameters:
hwndOwner [in]
Reserved.

nFolder [in]
A CSIDL value that identifies the folder of interest.

ppidl [out]
A PIDL specifying the folder"s location relative to the root of the namespace (the desktop).
Return value:
If the method succeeds, it returns S_OK (0). Otherwise, it returns an HRESULT error code.
Usage:
hPidl = 0
nResult = SHGetSpecialFolderLocation(;
    0, nFolderId, @hPidl )

IF nResult = 0
    * some code that employs the obtained PIDL...
    * ...

    = CoTaskMemFree( m.hPidl )
ENDIF
My comment:
It is the responsibility of the calling application to free the returned IDList by using CoTaskMemFree.

See also: SHGetFolderPath, SHGetKnownFolderPath, SHGetPathFromIDList
Word Index links for the SHGetSpecialFolderLocation :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2011-01-20 08:11:27
Modified: 2011-01-20 08:36:41
Visited in last 7 days: 18
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.197.215.146)
2 sec.Function: 'CommDlgExtendedError'
4 sec.Example: 'How to Start a Process as Another User (NT/XP/2K)'
15 sec.Example: 'How to retrieve adapter information for the local computer (including MAC address)'
10.9 hrs.Example: 'Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera'
Google
Advertise here!