The WriteFolderLink function takes a list of entry identifiers leading to the linked folder, formats the folder link, and writes it to pstream.
STDAPI WriteFolderLink( LPENTRYLIST pel, LPSTREAM pstream );