SHCreateStreamOnFile returns invalid argument when passing STGM_DELETEONRELEASE

236 Views Asked by At

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?

0

There are 0 best solutions below