You can open a file descriptor for a windows file handle using
_open_osfhandle, declared in io.h. However, I must be doing something wrong because nothing happens.
How did you solve it with imem? Can you give me some tips? I need to do something similar.