How do I get the file HANDLE from the fopen FILE structure?
Use _fileno followed by _get_osfhandle. Don’t forget to _close it when you are done. EDIT: it’s not clear to me that _get_osfhandle is supported on WinCE. However the docs for WinCE _fileno say it returns a “file handle” rather than “descriptor”. YMMV but this suggests that you can maybe just use _fileno return value directly … Read more