It looks like you get a handle to the icon in the "sfi.hIcon" structure from that "GetIconIndex" function. Put that into the PICTDESC structure and you should be good to go.