 |
SHGetStockIconInfo ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves information about system-defined Shell icons. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2011-01-17 15:49:08 | | Modified: | 2011-01-17 16:44:29 | Visited in last 7 days: 23 |