Home > Back-end >  The GetQueuedCompletionStatus error 998 CARDS work
The GetQueuedCompletionStatus error 998 CARDS work

Time:10-07

DWORD DWORD=0;
The SOCKET aSocket=NULL;
LPOVERLAPPED LPOVERLAPPED;
Lpoverlapped;
//the PROGRAM NO JOIN
If (FALSE==: : GetQueuedCompletionStatus (hCompletionPort, & amp; DWord (PULONG_PTR) aSocket, & amp; Lpoverlapped WSA_INFINITE))
{
//get error code
DWORD dwError=: : GetLastError ();

//verify the timeout
If (WAIT_TIMEOUT==dwError)
{
//the timeout after - continue testing
Sleep (5);
continue;

}
}
 

CodePudding user response:

OVERLAPPED pOverlapped=NULL;
TagDataQueue * pDataQueue=NULL;

BOOL bSuccess=GetQueuedCompletionStatus (m_hCompletionPort, & amp; DwTransferred, PULONG_PTR pDataQueue, & amp; POverlapped, INFINITE);
  • Related