Is there any way to convert the open FILE* returned from fopen to HANDLE , which is used in the Windows API functions? If so, how?
FILE*
fopen
HANDLE
(HANDLE) _get_osfhandle ( _fileno ( file ) )
(HANDLE)
_get_osfhandle
(
_fileno
( file ) )
Good luck on 64-bit systems if you use Visual C ++ 2008 or earlier, because the return type is long on them. :(
long
Source: https://habr.com/ru/post/888590/More articles:How can I prevent duplicate rows in a selected query? - oracleNamed variable names - 2 different classes - How to copy values ββfrom one to another - Reflection - C # - reflection(Un) boxing primitive arrays in Java - javaTrack some emails with gmail gem - ruby ββ| fooobar.comXML comments. How (or where) do you create XML comments for your namespaces and library? - namespacesIs access speed to the MySQL database accessible mainly due to db or the language used to access it? - cUnable to set cookies in IFRAME in IE, even with the title P3P - internet-explorerUITextView in custom UITableViewCell not responding to didSelectRowAtIndexPath - objective-cIs there a way to conditionally add an array to one row? - ruby ββ| fooobar.comWhy doesn't Django create CSRF or session cookies behind the proxy server? - pythonAll Articles