win32gui.CreateIconFromResource

PyHANDLE = CreateIconFromResource(bits, fIcon , ver )

Creates an icon or cursor from resource bits describing the icon.

Parameters

bits : string

The bits

fIcon : bool

True if an icon, False if a cursor.

ver=0x00030000 : int

Specifies the version number of the icon or cursor format for the resource bits pointed to by the presbits parameter. This parameter can be 0x00030000.