I have removed LUP_FLUSCACHE
and LUP_CONTAINERS
from my flags,
DWORD flags = LUP_RETURN_NAME | LUP_RETURN_ADDR;
and only use it in WSALookupServiceBegin
if(WSALookupServiceBegin(query_set,flags |= LUP_FLUSHCACHE | LUP_CONTAINERS,&lookup_handle)==SOCKET_ERROR)
{
fprintf(stderr, "something went completely wrong... %d",WSAGetLastError());
system("PAUSE");
ExitProcess(2);
}
it seems to prevent the problem. I just read this MSDN entry
hehe, I also used fprintf to stdin instead of stdout (may I burn in eternal fire).