8 #ifndef _INC_cNetHostAsync_H
9 #define _INC_cNetHostAsync_H
10 #ifndef NO_PRAGMA_ONCE
16 #if defined(_WIN32) && ! defined(UNDER_CE)
17 #include "../WinAPI/WinTypes.h"
35 cHeapBlock m_HostData;
37 hostent* GetAsyncSetup();
48 HANDLE get_HostReq()
const
53 bool AsyncFindHostEntryByAddr(HWND hWnd,
WINMSG_t uMsg,
const cNetAddress& addr);
54 bool AsyncFindHostEntryByName(HWND hWnd,
WINMSG_t uMsg,
const char* pszHostName);
58 bool AsyncComplete(cNetAddress* pAddr,
LSTATUS wError, WORD wLen);
61 const hostent* GetHostEntry()
const
64 return (
const hostent*)m_HostData.get_DataBytes();
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
UINT WINMSG_t
Supplement _WIN32 "windows.h".
Definition: WinTypes.h:111
#define HANDLE_NULL
Invalid OS handle for _WIN32. Not invalid OS handle for linux.
Definition: cOSHandle.h:21
LONG LSTATUS
AKA error_status_t. FACILITY_WIN32 codes returned from RegCreateKeyEx() etc. Maybe NOT GetLastError()...
Definition: HResult.h:74