How to extract an icon from a file

Hello, I’m attempting to extract an icon from a file (to get a list of files onto a display) How would I go about doing so?
I’ve tried to use ‘ExtractAssociatedIcon’ But it refused to work because the namespace doesn’t exist. Any ideas? Thanks.

Why not import the namespace then?

using System.Drawing;