24#define WsAsyncLock() EnterCriticalSection(&WsAsyncCritSect)
25#define WsAsyncUnlock() LeaveCriticalSection(&WsAsyncCritSect)
74 return (
Bytes + 7) & ~7;
168 while (Hostent->h_aliases[Aliases])
175 CurrentSize += (Aliases + 1) *
sizeof(
ULONG_PTR);
179 Hostent->h_aliases =
NULL;
188 while (Hostent->h_addr_list[
Names])
199 Hostent->h_addr_list =
NULL;
211 CurrentSize += Hostent->h_length;
216 CopyMemory(
p, Hostent->h_addr_list[
i], Hostent->h_length);
226 NameSize =
strlen(Hostent->h_name) +
sizeof(
CHAR);
227 CurrentSize += NameSize;
236 for (
i = 0;
i < Aliases;
i++)
239 NameSize =
strlen(Hostent->h_aliases[
i]) +
sizeof(
CHAR);
240 CurrentSize += NameSize;
297 while (Servent->s_aliases[Aliases])
304 CurrentSize += (Aliases + 1) *
sizeof(
ULONG_PTR);
308 Servent->s_aliases =
NULL;
317 NameSize =
strlen(Servent->s_name) +
sizeof(
CHAR);
318 CurrentSize += NameSize;
327 for (
i = 0;
i < Aliases;
i++)
330 NameSize =
strlen(Servent->s_aliases[
i]) +
sizeof(
CHAR);
331 CurrentSize += NameSize;
387 while (Protoent->p_aliases[Aliases])
394 CurrentSize += (Aliases + 1) *
sizeof(
ULONG_PTR);
398 Protoent->p_aliases =
NULL;
407 NameSize =
strlen(Protoent->p_name) +
sizeof(
CHAR);
408 CurrentSize += NameSize;
417 for (
i = 0;
i < Aliases;
i++)
420 NameSize =
strlen(Protoent->p_aliases[
i]) +
sizeof(
CHAR);
421 CurrentSize += NameSize;
751 AsyncBlock->
GetHost.BufferLength);
778 AsyncBlock->
GetServ.BufferLength);
870 if (ThreadHandle ==
NULL)
ACPI_SIZE strlen(const char *String)
#define InterlockedIncrement
VOID WSAAPI WsAsyncQueueRequest(IN PWSASYNCBLOCK AsyncBlock)
SIZE_T WSAAPI CopyServentToBuffer(IN PCHAR Buffer, IN INT BufferLength, IN PSERVENT Servent)
VOID WSAAPI WsAsyncGetServ(IN HANDLE TaskHandle, IN DWORD Operation, IN HWND hWnd, IN UINT wMsg, IN CHAR FAR *ByWhat, IN CHAR FAR *Protocol, IN CHAR FAR *Buffer, IN INT BufferLength)
SIZE_T WSAAPI BytesInProtoent(PPROTOENT Protoent)
VOID WSAAPI WsAsyncGetHost(IN HANDLE TaskHandle, IN DWORD Operation, IN HWND hWnd, IN UINT wMsg, IN CHAR FAR *ByWhat, IN INT Length, IN INT Type, IN CHAR FAR *Buffer, IN INT BufferLength)
VOID WSAAPI WsAsyncFreeBlock(IN PWSASYNCBLOCK AsyncBlock)
PWSASYNCBLOCK WSAAPI WsAsyncAllocateBlock(IN SIZE_T ExtraLength)
SIZE_T WSAAPI CopyHostentToBuffer(IN PCHAR Buffer, IN INT BufferLength, IN PHOSTENT Hostent)
VOID WSAAPI WsAsyncTerminateThread(VOID)
HANDLE WsAsyncCancelledTaskHandle
SIZE_T WSAAPI BytesInServent(PSERVENT Servent)
HINSTANCE WsAsyncDllHandle
BOOLEAN WsAsyncThreadInitialized
HANDLE WsAsyncCurrentTaskHandle
DWORD WINAPI WsAsyncThread(IN PVOID ThreadContext)
SIZE_T WSAAPI BytesInHostent(PHOSTENT Hostent)
BOOL WINAPI WsAsyncThreadBlockingHook(VOID)
VOID WSAAPI WsAsyncGetProto(IN HANDLE TaskHandle, IN DWORD Operation, IN HWND hWnd, IN UINT wMsg, IN CHAR FAR *ByWhat, IN CHAR FAR *Buffer, IN INT BufferLength)
SIZE_T WSAAPI CopyProtoentToBuffer(IN PCHAR Buffer, IN INT BufferLength, IN PPROTOENT Protoent)
CRITICAL_SECTION WsAsyncCritSect
VOID WSAAPI WsAsyncGlobalTerminate(VOID)
INT WSAAPI WsAsyncCancelRequest(IN HANDLE TaskHandle)
BOOL WSAAPI WsAsyncCheckAndInitThread(VOID)
VOID WSAAPI WsAsyncGlobalInitialize(VOID)
FARPROC WSAAPI WSASetBlockingHook(IN FARPROC lpBlockFunc)
#define HeapFree(x, y, z)
VOID WINAPI FreeLibraryAndExitThread(HMODULE hLibModule, DWORD dwExitCode)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
#define RemoveEntryList(Entry)
#define InsertTailList(ListHead, Entry)
#define IsListEmpty(ListHead)
#define RemoveHeadList(ListHead)
#define InitializeListHead(ListHead)
LPPROTOENT WSAAPI getprotobynumber(IN INT number)
LPPROTOENT WSAAPI getprotobyname(IN CONST CHAR FAR *name)
PSERVENT WSAAPI getservbyport(IN int port, IN const char FAR *proto)
PHOSTENT WSAAPI gethostbyname(IN const char FAR *name)
PSERVENT WSAAPI getservbyname(IN const char FAR *name, IN const char FAR *proto)
PHOSTENT WSAAPI gethostbyaddr(IN const char FAR *addr, IN int len, IN int type)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_In_ NDIS_ERROR_CODE ErrorCode
_In_ ULONG _In_ ULONG _In_ ULONG Length
BOOL WSPAPI WPUPostMessage(IN HWND hWnd, IN UINT Msg, IN WPARAM wParam, IN LPARAM lParam)
base of all file and directory entries
struct _LIST_ENTRY * Flink
struct _WSASYNCBLOCK::@604::@606 GetHost
struct _WSASYNCBLOCK::@604::@607 GetProto
struct _WSASYNCBLOCK::@604::@608 GetServ
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
#define RtlZeroMemory(Destination, Length)
#define CONTAINING_RECORD(address, type, field)
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
DWORD WINAPI GetLastError(void)
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
int PASCAL FAR WSACleanup(void)
#define WSAMAKEASYNCREPLY(b, e)
struct hostent * PHOSTENT
int PASCAL FAR WSACancelBlockingCall(void)
struct servent * PSERVENT
struct protoent * PPROTOENT
@ WsAsyncGetProtoByNumber
struct _WSASYNCBLOCK WSASYNCBLOCK