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:
Windows Shell Icons displayed and exported to ICO files (Vista)
SHGetStockIconInfo
..msdn    Add comment     W32 Constants      Translate this page
Retrieves information about system-defined Shell icons.
Code examples:
Windows Shell Icons displayed and exported to ICO files (Vista)
Declaration:
HRESULT SHGetStockIconInfo(
           SHSTOCKICONID siid,
           UINT uFlags,
  __inout  SHSTOCKICONINFO *psii
);
FoxPro declaration:
DECLARE INTEGER SHGetStockIconInfo IN shell32;
    INTEGER siid,;
    LONG uFlags,;
    INTEGER psii
Parameters:
siid
One of the values from the SHSTOCKICONID enumeration that specifies which icon should be retrieved.

uFlags
A combination of zero or more of the following flags that specify which information is requested.

psii [in, out]
A pointer to a SHSTOCKICONINFO structure.
Return value:
If the method succeeds, it returns S_OK (0). Otherwise, it returns an HRESULT error code.
Usage:
WITH THIS
    .rawdata = CREATEOBJECT("PChar",;
        PADR(num2dword(SHSTOCKICONINFO_SIZE),;
        SHSTOCKICONINFO_SIZE, CHR(0)) )

    nResult = SHGetStockIconInfo( .IconIndex,;
        .IconFlags, .rawdata.GetAddr() )
ENDWITH
My comment:
If this function returns an icon handle in the hIcon member of the SHSTOCKICONINFO structure pointed to by psii, you are responsible for freeing the icon with DestroyIcon when you no longer need it.

See also: ExtractIcon, ExtractAssociatedIcon, GetIconInfo
Word Index links for the SHGetStockIconInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2011-01-17 15:49:08
Modified: 2011-01-17 16:44:29
Visited in last 7 days: 76
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.167.202.184)
2 sec.Function: 'GetGraphicsMode'
4 sec.Function: 'GdipTranslateWorldTransform'
7 sec.Function: 'ImageList_GetImageInfo'
10 sec.Function: 'FtpFindFirstFile'
13 sec.Function: 'CreateWindowEx'
17 sec.Function: 'CeCreateDirectory'
19 sec.Function: 'GetFileSizeEx'
23 sec.Function: 'AssocQueryString'
26 sec.Function: 'GlobalFree'
29 sec.Function: 'VkKeyScan'
Google
Advertise here!