I'm writing native C++ using VS2005.
I have a FILE* for a file opened with fopen. I want to get the WIN32
file handle for this file so I can call GetFileTime on it.
I can get the descriptor number with _fileno, but there doesn't seem to
be a function to give me the handle from the descriptor number.
Any ideas how I can do this?
Thanks,
++PLS
Brian Muth - 29 Nov 2007 05:02 GMT
Use _fileno followed by _get_osfhandle.
Regards,
Brian Muth
> I'm writing native C++ using VS2005.
>
[quoted text clipped - 8 lines]
> Thanks,
> ++PLS