I need to use Shell32 in my C# application to create a lnk file.
I added shell32.dll to my references and tried to compile this single code line:
Shell32.Shell shell = new Shell32.Shell();
and I got an InvalidCastException
!
the error code : 'HRESULT: 0x80004002 (E_NOINTERFACE)).'
How should I use Shell32.Shell?