Anyway to get widows handle from QFile object ,i needto create file mapping on it.
I read on document that only stdio file descriptor are supply.
or not support yet?
Thank.
Printable View
Anyway to get widows handle from QFile object ,i needto create file mapping on it.
I read on document that only stdio file descriptor are supply.
or not support yet?
Thank.
Use QFile::handle() and then transform it into a Windows file descriptor using a native call.
Could you tell me which "native call" api name ,that let use to tranform to Windows file descriptor .:o
No, as I don't use WinAPI :) But I'm sure MSDN will tell you :)
ok,problem solved with (HANDLE)_get_osfhandle(file.handle() );
api is on io.h