Click or drag to resize

ShellUtilitiesGetIconHandle Method

Gets an icon handle from a file path.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static IntPtr GetIconHandle(
	string path,
	IconMode mode = IconMode.Default
)

Parameters

path
Type: SystemString
The file path.
mode (Optional)
Type: ShellBoost.Core.UtilitiesIconMode
The icon mode.

Return Value

Type: IntPtr
An icon handle.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.
See Also