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
)
Public Function GetIcon (
iconAttributes As Shell32FileAttributes
) As IntPtr
public:
IntPtr GetIcon(
Shell32FileAttributes iconAttributes
)
member GetIcon :
iconAttributes : Shell32FileAttributes -> IntPtr
Parameters
- iconAttributes
- Type: Alphaleonis.Win32.FilesystemShell32FileAttributes
Icon size SmallIcon or LargeIcon. Can also be combined with AddOverlays and others.
Return Value
Type:
IntPtrAn
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