I am calling
SHCreateStreamOnFile(stTempFile,
STGM_CREATE | STGM_READWRITE | STGM_DELETEONRELEASE, &stream)
it returns invalid argument.
I really need this functionality because I am using this file as temporary storage for drag and drop. Help?