We have some C code that runs on multiple platforms (VMS, UNIX,Windows) and need the capability in Windows to be able to open files specifed as a UNC path. All the MSDN help I read points me to using CreateFile(). That's fine. However, its not too bad to replace all the fopen()'s in the code currently with
but the rest of the code uses the return from fopen(), the FILE pointer for accessing the file. I'd *really* rather now take on the job of replacing this code that is everywhere with that. Soooooo, I was wondering...is there a way to take the returned HANDLE from CreateFile() and turn it into a FILE pointer somehow, so I can use the other functions to access it?