icon_res = win32api.LoadResource(None, win32con.RT_ICON, 1)
hicon = ctypes.windll.user32.CreateIconFromResourceEx(icon_res, len(
    icon_res), True, 196608, 16, 16, win32con.LR_DEFAULTCOLOR)
How do you load an embedded icon from an exe file with PyWin32?