开发者

How can we convert a FILE* to a HANDLE?

开发者 https://www.devze.com 2023-03-07 07:27 出处:网络
Is there any where to convert a open FILE* returned from fopen to a HANDLE that is used in the Window开发者_Python百科s API functions? If so, how?(HANDLE)_get_osfhandle(_fileno( file ) )

Is there any where to convert a open FILE* returned from fopen to a HANDLE that is used in the Window开发者_Python百科s API functions? If so, how?


(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 long on those. :(

0

精彩评论

暂无评论...
验证码 换一张
取 消