Call PrivateExtractIcon in user32 instead of duplicating the code.