Is there any where to convert a open FILE* returned from fopen to a HANDLE that is used in the Windows API functions? If so, how?
Is there any where to convert a open FILE* returned from fopen to a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(HANDLE)_get_osfhandle(_fileno( file ) )Good luck on 64-bit systems if you’re using Visual C++ 2008 or earlier, though, because the return type is
longon those. 🙁