Is it possible to get the underlying file HANDLE from a std::ofstream (Visual C++ 2005)?
This is the opposite of this question:
Can I use CreateFile, but for
No. I try many ways. this line: "std::ifstream ifs(fh);" may not wrok in some msvs, such as 2008.
"std::ifstream ifs(fh);"
I find another way, you can enumerate handle in your process, and find the handle that releated to the filename.
In this way, I get the handle.