Click or drag to resize

StockIconGetStockIcon Method

Gets a stock icon by its identifier. You *must* call ShellUtilities.DestroyIcon on the returned icon handle once you have finished to use it.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Icon GetStockIcon(
	StockIconId id,
	StockIconSHGSI flags = StockIconSHGSI.SHGSI_SMALLICON
)

Parameters

id
Type: callback.ShellBoost.Core.UtilitiesStockIconId
The identifier.
flags (Optional)
Type: callback.ShellBoost.Core.UtilitiesStockIconSHGSI
The flags.

Return Value

Type: Icon
An instance of the Icon class or null if it was not found.
See Also