Click or drag to resize

ShellUtilitiesGetIconLocation Method (String, IBindCtx, GILIN, String, Int32, GILOUT)

Gets the icon location from a shell item path.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static bool GetIconLocation(
	string path,
	IBindCtx bindContext,
	GILIN inFlags,
	out string iconLocationPath,
	out int index,
	out GILOUT outFlags
)

Parameters

path
Type: SystemString
The file path.
bindContext
Type: System.Runtime.InteropServices.ComTypesIBindCtx
A bind context that controls the parsing operation.
inFlags
Type: ShellBoost.Core.WindowsShellGILIN
Input flags.
iconLocationPath
Type: SystemString
The icon location path.
index
Type: SystemInt32
The icon index.
outFlags
Type: ShellBoost.Core.WindowsShellGILOUT
Output flags.

Return Value

Type: Boolean
true if the icon location path and index was retrieved successfully, false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.
See Also