38 DPRINT(
"WSAAddressToStringA: %p\n", lpsaAddress);
75 lpsaAddress->sa_family,
88 lpdwAddressStringLength,
141 DPRINT(
"WSAAddressToStringW: %p\n", lpsaAddress);
169 lpsaAddress->sa_family,
182 lpdwAddressStringLength,
209 DPRINT(
"WSALookupServiceEnd: %lx\n", hLookup);
251 SIZE_T UnicodeQuerySetSize = 0;
253 DPRINT(
"WSALookupServiceBeginA: %p\n", lpqsRestrictions);
256 if (
IsBadReadPtr(lpqsRestrictions,
sizeof(*lpqsRestrictions)) ||
257 IsBadReadPtr(lpqsRestrictions->lpServiceClassId,
sizeof(*lpqsRestrictions->lpServiceClassId)))
265 lpqsRestrictions->dwOutputFlags = 0;
266 lpqsRestrictions->lpszComment =
NULL;
267 lpqsRestrictions->dwNumberOfCsAddrs = 0;
271 &UnicodeQuerySetSize,
283 &UnicodeQuerySetSize,
325 DPRINT(
"WSALookupServiceBeginW: %p\n", lpqsRestrictions);
337 IsBadReadPtr(lpqsRestrictions,
sizeof(*lpqsRestrictions)) ||
338 IsBadReadPtr(lpqsRestrictions->lpServiceClassId,
sizeof(*lpqsRestrictions->lpServiceClassId)))
396 DPRINT(
"WSALookupServiceNextW: %lx\n", hLookup);
450 DWORD UnicodeQuerySetSize;
453 DPRINT(
"WSALookupServiceNextA: %lx\n", hLookup);
474 if (!UnicodeQuerySet)
481 UnicodeQuerySetSize = 0;
490 UnicodeQuerySet =
NULL;
491 UnicodeQuerySetSize = 0;
497 &UnicodeQuerySetSize,
515 &UnicodeQuerySetSize,
553 ((
sizeof(
ULONG) * 6) - (6 * 1));
577 LPWSACOMPLETION lpCompletion)
579 DPRINT(
"WSANSPIoctl: %lx\n", hLookup);
590 DPRINT(
"WSARemoveServiceClass: %lx\n", lpServiceClassId);
604 DPRINT(
"WSASetServiceA: %lx\n", lpqsRegInfo);
618 DPRINT(
"WSASetServiceW: %lx\n", lpqsRegInfo);
633 DPRINT(
"WSAGetServiceClassInfoA: %lx\n", lpProviderId);
648 DPRINT(
"WSAGetServiceClassInfoW: %lx\n", lpProviderId);
662 DPRINT(
"WSAGetServiceClassNameByClassIdA: %lx\n", lpServiceClassId);
676 DPRINT(
"WSAGetServiceClassNameByClassIdW: %lx\n", lpServiceClassId);
688 DPRINT(
"WSAInstallServiceClassA: %lx\n", lpServiceClassInfo);
700 DPRINT(
"WSAInstallServiceClassW: %lx\n", lpServiceClassInfo);
721 sizeof(
infoW.NSProviderId));
802 DPRINT(
"WSAEnumNameSpaceProvidersInternal: %lx\n", lpnspBuffer);
819 Context.ProtocolBuffer = lpnspBuffer;
862 DPRINT(
"WSAEnumNameSpaceProvidersA: %lx\n", lpnspBuffer);
874 DPRINT(
"WSAEnumNameSpaceProvidersW: %lx\n", lpnspBuffer);
898 DPRINT(
"WSAStringToAddressA: %s\n", AddressString);
990 DPRINT(
"WSAStringToAddressW: %S\n", AddressString);
ACPI_SIZE strlen(const char *String)
BOOL Query(LPCTSTR *ServiceArgs, DWORD ArgCount, BOOL bExtended)
#define HeapFree(x, y, z)
#define WideCharToMultiByte
#define MultiByteToWideChar
BOOL WINAPI IsBadReadPtr(IN LPCVOID lp, IN UINT_PTR ucb)
BOOL NTAPI IsBadWritePtr(IN LPVOID lp, IN UINT_PTR ucb)
VOID WSAAPI WSASetLastError(IN INT iError)
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
static const SecPkgInfoW infoW
_In_ NDIS_ERROR_CODE ErrorCode
IN PCO_ADDRESS_FAMILY AddressFamily
_In_ ULONG _In_ ULONG _In_ ULONG Length
INT WSAAPI WSAGetServiceClassInfoA(IN LPGUID lpProviderId, IN LPGUID lpServiceClassId, IN OUT LPDWORD lpdwBufferLength, OUT LPWSASERVICECLASSINFOA lpServiceClassInfo)
INT WSAAPI WSAEnumNameSpaceProvidersInternal(IN OUT LPDWORD lpdwBufferLength, OUT LPWSANAMESPACE_INFOA lpnspBuffer, BOOLEAN Unicode)
INT WSAAPI WSAStringToAddressW(IN LPWSTR AddressString, IN INT AddressFamily, IN LPWSAPROTOCOL_INFOW lpProtocolInfo, OUT LPSOCKADDR lpAddress, IN OUT LPINT lpAddressLength)
INT WSAAPI WSAGetServiceClassNameByClassIdW(IN LPGUID lpServiceClassId, OUT LPWSTR lpszServiceClassName, IN OUT LPDWORD lpdwBufferLength)
INT WSAAPI WSASetServiceW(IN LPWSAQUERYSETW lpqsRegInfo, IN WSAESETSERVICEOP essOperation, IN DWORD dwControlFlags)
INT WSAAPI WSALookupServiceEnd(IN HANDLE hLookup)
INT WSAAPI WSAAddressToStringA(IN LPSOCKADDR lpsaAddress, IN DWORD dwAddressLength, IN LPWSAPROTOCOL_INFOA lpProtocolInfo, OUT LPSTR lpszAddressString, IN OUT LPDWORD lpdwAddressStringLength)
INT WSAAPI WSAGetServiceClassNameByClassIdA(IN LPGUID lpServiceClassId, OUT LPSTR lpszServiceClassName, IN OUT LPDWORD lpdwBufferLength)
INT WINAPI WSALookupServiceNextW(IN HANDLE hLookup, IN DWORD dwControlFlags, IN OUT LPDWORD lpdwBufferLength, OUT LPWSAQUERYSETW lpqsResults)
INT WINAPI WSALookupServiceBeginW(IN LPWSAQUERYSETW lpqsRestrictions, IN DWORD dwControlFlags, OUT LPHANDLE lphLookup)
INT WSAAPI WSALookupServiceNextA(IN HANDLE hLookup, IN DWORD dwControlFlags, IN OUT LPDWORD lpdwBufferLength, OUT LPWSAQUERYSETA lpqsResults)
INT WSAAPI WSAInstallServiceClassW(IN LPWSASERVICECLASSINFOW lpServiceClassInfo)
VOID WSAAPI NSProviderInfoFromContext(IN PNSCATALOG_ENTRY Entry, IN PNSPROVIDER_ENUM_CONTEXT Context)
INT WSAAPI WSAInstallServiceClassA(IN LPWSASERVICECLASSINFOA lpServiceClassInfo)
INT WSAAPI WSASetServiceA(IN LPWSAQUERYSETA lpqsRegInfo, IN WSAESETSERVICEOP essOperation, IN DWORD dwControlFlags)
INT WSAAPI WSAStringToAddressA(IN LPSTR AddressString, IN INT AddressFamily, IN LPWSAPROTOCOL_INFOA lpProtocolInfo, OUT LPSOCKADDR lpAddress, IN OUT LPINT lpAddressLength)
INT WSAAPI WSARemoveServiceClass(IN LPGUID lpServiceClassId)
INT WSAAPI WSAEnumNameSpaceProvidersW(IN OUT LPDWORD lpdwBufferLength, OUT LPWSANAMESPACE_INFOW lpnspBuffer)
INT WSAAPI WSAEnumNameSpaceProvidersA(IN OUT LPDWORD lpdwBufferLength, OUT LPWSANAMESPACE_INFOA lpnspBuffer)
INT WSPAPI WSANSPIoctl(HANDLE hLookup, DWORD dwControlCode, LPVOID lpvInBuffer, DWORD cbInBuffer, LPVOID lpvOutBuffer, DWORD cbOutBuffer, LPDWORD lpcbBytesReturned, LPWSACOMPLETION lpCompletion)
INT WSAAPI WSALookupServiceBeginA(IN LPWSAQUERYSETA lpqsRestrictions, IN DWORD dwControlFlags, OUT LPHANDLE lphLookup)
INT WSAAPI WSAAddressToStringW(IN LPSOCKADDR lpsaAddress, IN DWORD dwAddressLength, IN LPWSAPROTOCOL_INFOW lpProtocolInfo, OUT LPWSTR lpszAddressString, IN OUT LPDWORD lpdwAddressStringLength)
INT WSAAPI WSAGetServiceClassInfoW(IN LPGUID lpProviderId, IN LPGUID lpServiceClassId, IN OUT LPDWORD lpdwBufferLength, OUT LPWSASERVICECLASSINFOW lpServiceClassInfo)
BOOL WSAAPI NSProvidersEnumerationProc(PVOID EnumContext, PNSCATALOG_ENTRY Entry)
base of all file and directory entries
LPWSPSTRINGTOADDRESS lpWSPStringToAddress
LPWSPADDRESSTOSTRING lpWSPAddressToString
#define RtlMoveMemory(Destination, Source, Length)
DWORD WINAPI GetLastError(void)
#define ERROR_ARITHMETIC_OVERFLOW
_In_ _In_opt_ _Out_writes_bytes_to_opt_ lpdwBufferLength _Inout_ LPDWORD lpdwBufferLength
_Out_writes_bytes_to_ lpdwBufferLength LPSTR lpszServiceClassName
struct _WSANAMESPACE_INFOA WSANAMESPACE_INFOA
struct _WSANAMESPACE_INFOW WSANAMESPACE_INFOW
enum _WSAESETSERVICEOP WSAESETSERVICEOP
#define WSA_INVALID_HANDLE
#define WSA_NOT_ENOUGH_MEMORY
DWORD WSAAPI WsNqLookupServiceEnd(IN PNSQUERY NsQuery)
INT WSAAPI MapUnicodeQuerySetToAnsi(IN LPWSAQUERYSETW UnicodeSet, IN OUT PSIZE_T SetSize, OUT LPWSAQUERYSETA AnsiSet)
DWORD WSAAPI WsNqLookupServiceNext(PNSQUERY NsQuery, DWORD, PDWORD, OUT LPWSAQUERYSETW QuerySet)
VOID WSAAPI WsNqDelete(IN PNSQUERY NsQuery)
DWORD WSAAPI WsNqLookupServiceBegin(IN PNSQUERY NsQuery, IN LPWSAQUERYSETW QuerySet, IN DWORD ControlFlags, IN PNSCATALOG Catalog)
DWORD WSAAPI WsNqInitialize(IN PNSQUERY NsQuery)
VOID WSAAPI WsTcEntryDereference(IN PTCATALOG_ENTRY CatalogEntry)
BOOL WSAAPI WsNqValidateAndReference(IN PNSQUERY Query)
DWORD WSAAPI WsTcGetEntryFromCatalogEntryId(IN PTCATALOG TCatalog, IN DWORD CatalogEntryId, IN PTCATALOG_ENTRY *CatalogEntry)
FORCEINLINE PWSPROCESS WsGetProcess(VOID)
PNSQUERY WSAAPI WsNqAllocate(VOID)
PNSCATALOG WSAAPI WsProcGetNsCatalog(IN PWSPROCESS Process)
INT WSAAPI MapAnsiQuerySetToUnicode(IN LPWSAQUERYSETA AnsiSet, IN OUT PSIZE_T SetSize, OUT LPWSAQUERYSETW UnicodeSet)
VOID WSAAPI WsNcEnumerateCatalogItems(IN PNSCATALOG Catalog, IN PNSCATALOG_ENUMERATE_PROC Callback, IN PVOID Context)
VOID WSAAPI WsNqDereference(IN PNSQUERY Query)
PTCATALOG WSAAPI WsProcGetTCatalog(IN PWSPROCESS Process)
INT WSAAPI WsApiProlog(OUT PWSPROCESS *Process, OUT PWSTHREAD *Thread)
DWORD WSAAPI WsTcGetEntryFromAf(IN PTCATALOG TCatalog, IN INT AddressFamily, IN PTCATALOG_ENTRY *CatalogEntry)
struct _NSPROVIDER_ENUM_CONTEXT * PNSPROVIDER_ENUM_CONTEXT