View Full Version : Windows file handle on QFile?
Teerayoot
14th May 2007, 10:35
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.
wysota
14th May 2007, 10:44
Use QFile::handle() and then transform it into a Windows file descriptor using a native call.
Teerayoot
14th May 2007, 11:02
Could you tell me which "native call" api name ,that let use to tranform to Windows file descriptor .:o
wysota
14th May 2007, 11:06
No, as I don't use WinAPI :) But I'm sure MSDN will tell you :)
Teerayoot
14th May 2007, 11:11
ok,problem solved with (HANDLE)_get_osfhandle(file.handle() );
api is on io.h
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.