How to get Win32 handle from FILE*

P

PLS

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top