Click or drag to resize

Shell32InfoGetIcon Method

Gets an IntPtr handle to the Shell icon that represents the file.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public IntPtr GetIcon(
	Shell32FileAttributes iconAttributes
)

Parameters

iconAttributes
Type: Alphaleonis.Win32.FilesystemShell32FileAttributes
Icon size SmallIcon or LargeIcon. Can also be combined with AddOverlays and others.

Return Value

Type: IntPtr
An IntPtr handle to the Shell icon that represents the file.
Remarks
Caller is responsible for destroying this handle with DestroyIcon() when no longer needed.
See Also