The overlapped mode is the problem. If you only have a handle then ReadFile / WriteFile will fail if you don't include the overlapped structure in the call. It was opened with the OVERLAPPED flag so this parameter cannot be NULL.
What exactly are you trying to do? Maybe there is another way.
Do you have any example of ".pro" file on how you imported required libraries and headers?
I'm trying for some times to implement Push notification on Windows Phone, but i'm still stuck on allowing access of WinRT C++ classes from Qt
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.