IShellLinkDataList::CopyDataBlock and GetFlags methods.
Attach a file by drag & drop or click to upload