lsocket,sysutils,winsock,windows,messages;\r
\r
type\r
lsocket,sysutils,winsock,windows,messages;\r
\r
type\r
\r
getmem(output,sizeof(taddrinfo));\r
if assigned(prev) then prev.ai_next := output;\r
\r
getmem(output,sizeof(taddrinfo));\r
if assigned(prev) then prev.ai_next := output;\r
if servname <> nil then output.ai_addr.InAddr.port := htons(strtoint(servname)) else output.ai_addr.InAddr.port := 0;\r
output.ai_addr.InAddr.addr := longint(addrlist^^);\r
if servname <> nil then output.ai_addr.InAddr.port := htons(strtoint(servname)) else output.ai_addr.InAddr.port := 0;\r
output.ai_addr.InAddr.addr := longint(addrlist^^);\r
output.ai_flags := 0;\r
output.ai_family := af_inet;\r
output.ai_socktype := 0;\r
output.ai_protocol := 0;\r
output.ai_flags := 0;\r
output.ai_family := af_inet;\r
output.ai_socktype := 0;\r
output.ai_protocol := 0;\r
if assigned (dwas.onrequestdone) then dwas.onrequestdone(dwas,awparam);\r
dwas.hadevent := true;\r
if dwas.freewhendone then dwas.free;\r
if assigned (dwas.onrequestdone) then dwas.onrequestdone(dwas,awparam);\r
dwas.hadevent := true;\r
if dwas.freewhendone then dwas.free;\r
end else begin\r
//not passing unknown messages on to defwindowproc will cause window\r
//creation to fail! --plugwash\r
end else begin\r
//not passing unknown messages on to defwindowproc will cause window\r
//creation to fail! --plugwash\r
nil); { CreateParam }\r
//writeln('dnswin hwnd is ',hwnddnswin);\r
//writeln('last error is ',GetLastError);\r
nil); { CreateParam }\r
//writeln('dnswin hwnd is ',hwnddnswin);\r
//writeln('last error is ',GetLastError);\r