SystemImageListGetIconHandle Method (Int32) |
Gets icon handle for the image index.
Namespace:
Jam.Shell
Assembly:
ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 7.1
Syntax public IntPtr GetIconHandle(
int pIconIndex
)
Public Function GetIconHandle (
pIconIndex As Integer
) As IntPtr
public:
IntPtr GetIconHandle(
int pIconIndex
)
member GetIconHandle :
pIconIndex : int -> IntPtr
Parameters
- pIconIndex
- Type: SystemInt32
Zero-based index of the icon.
Return Value
Type:
IntPtrThe icon handle.
Remarks The returned icon handle must be released using
DestroyIcon(IntPtr) when the handle is not needed anymore to avoid GDI leaks.
See Also