ReactOS 0.4.16-dev-819-g75c0dc0
|
#include "precomp.h"
#include <stdlib.h>
#include <ws2spi.h>
#include <nspapi.h>
#include <winuser.h>
#include <windns.h>
#include <guiddef.h>
#include <svcguid.h>
#include <iptypes.h>
#include <strsafe.h>
#include <winreg.h>
#include "mswhelper.h"
#include <debug.h>
Go to the source code of this file.
Classes | |
struct | WSHOSTINFOINTERN |
struct | WSHANDLEINTERN |
Macros | |
#define | NDEBUG |
#define | NSP_CALLID_DNS 0x0001 |
#define | NSP_CALLID_HOSTNAME 0x0002 |
#define | NSP_CALLID_HOSTBYNAME 0x0003 |
#define | NSP_CALLID_SERVICEBYNAME 0x0004 |
#define | BUFSIZ 1024 |
#define | WS2_INTERNAL_MAX_ALIAS 512 |
#define | SKIPWS(ptr, act) {while(*ptr && isspace(*ptr)) ptr++; if(!*ptr) act;} |
#define | SKIPANDMARKSTR(ptr, act) |
Typedefs | |
typedef struct WSHOSTINFOINTERN * | PWSHOSTINFOINTERN |
typedef struct WSHANDLEINTERN * | PWSHANDLEINTERN |
Variables | |
static const GUID | guid_NULL = {0} |
static const GUID | guid_HOSTNAME = SVCID_HOSTNAME |
static const GUID | guid_INET_HOSTADDRBYINETSTRING = SVCID_INET_HOSTADDRBYINETSTRING |
static const GUID | guid_INET_HOSTADDRBYNAME = SVCID_INET_HOSTADDRBYNAME |
static const GUID | guid_INET_SERVICEBYNAME = SVCID_INET_SERVICEBYNAME |
static const GUID | guid_mswsock_TcpIp |
static const GUID | guid_mswsock_NLA |
#define BUFSIZ 1024 |
Definition at line 25 of file nsplookup.c.
#define NDEBUG |
Definition at line 16 of file nsplookup.c.
#define NSP_CALLID_DNS 0x0001 |
Definition at line 19 of file nsplookup.c.
#define NSP_CALLID_HOSTBYNAME 0x0003 |
Definition at line 21 of file nsplookup.c.
#define NSP_CALLID_HOSTNAME 0x0002 |
Definition at line 20 of file nsplookup.c.
#define NSP_CALLID_SERVICEBYNAME 0x0004 |
Definition at line 22 of file nsplookup.c.
Definition at line 550 of file nsplookup.c.
Definition at line 547 of file nsplookup.c.
#define WS2_INTERNAL_MAX_ALIAS 512 |
Definition at line 28 of file nsplookup.c.
typedef struct WSHANDLEINTERN * PWSHANDLEINTERN |
typedef struct WSHOSTINFOINTERN * PWSHOSTINFOINTERN |
|
static |
Definition at line 556 of file nsplookup.c.
Referenced by NSP_GetServiceByNameHeapAllocW().
INT WINAPI mswNSPStartup | ( | LPGUID | lpProviderId, |
LPNSP_ROUTINE | lpRout | ||
) |
Definition at line 132 of file nsplookup.c.
Referenced by NSPStartup().
INT WSAAPI mwsNSPGetServiceClassInfo | ( | _In_ LPGUID | lpProviderId, |
_In_ LPDWORD | lpdwBufSize, | ||
_In_ LPWSASERVICECLASSINFOW | lpServiceClassInfo | ||
) |
Definition at line 140 of file nsplookup.c.
Referenced by NSPStartup().
INT WSAAPI mwsNSPInstallServiceClass | ( | _In_ LPGUID | lpProviderId, |
_In_ LPWSASERVICECLASSINFOW | lpServiceClassInfo | ||
) |
Definition at line 374 of file nsplookup.c.
Referenced by NSPStartup().
INT WSAAPI mwsNSPIoCtl | ( | _In_ HANDLE | hLookup, |
_In_ DWORD | dwControlCode, | ||
_In_reads_bytes_(cbInBuffer) LPVOID | lpvInBuffer, | ||
_In_ DWORD | cbInBuffer, | ||
_Out_writes_bytes_to_(cbOutBuffer, *lpcbBytesReturned) LPVOID | lpvOutBuffer, | ||
_In_ DWORD | cbOutBuffer, | ||
_Out_ LPDWORD | lpcbBytesReturned, | ||
_In_opt_ LPWSACOMPLETION | lpCompletion, | ||
_In_ LPWSATHREADID | lpThreadId | ||
) |
Definition at line 323 of file nsplookup.c.
INT WSAAPI mwsNSPLookupServiceBegin | ( | _In_ LPGUID | lpProviderId, |
_In_ LPWSAQUERYSETW | lpqsRestrictions, | ||
_In_ LPWSASERVICECLASSINFOW | lpServiceClassInfo, | ||
_In_ DWORD | dwControlFlags, | ||
_Out_ LPHANDLE | lphLookup | ||
) |
Definition at line 147 of file nsplookup.c.
Referenced by NSPStartup().
Definition at line 339 of file nsplookup.c.
Referenced by NSPStartup().
INT WSAAPI mwsNSPLookupServiceNext | ( | _In_ HANDLE | hLookup, |
_In_ DWORD | dwControlFlags, | ||
_Inout_ LPDWORD | lpdwBufferLength, | ||
LPWSAQUERYSETW | lpqsResults | ||
) |
Definition at line 269 of file nsplookup.c.
Referenced by NSPStartup().
Definition at line 383 of file nsplookup.c.
Referenced by NSPStartup().
INT WSAAPI mwsNSPSetService | ( | _In_ LPGUID | lpProviderId, |
_In_ LPWSASERVICECLASSINFOW | lpServiceClassInfo, | ||
_In_ LPWSAQUERYSETW | lpqsRegInfo, | ||
_In_ WSAESETSERVICEOP | essOperation, | ||
_In_ DWORD | dwControlFlags | ||
) |
Definition at line 362 of file nsplookup.c.
Referenced by NSPStartup().
INT NSP_GetHostByNameHeapAllocW | ( | _In_ PWSHANDLEINTERN | data, |
_In_ DWORD | dwControlFlags, | ||
_Out_ PWSHOSTINFOINTERN | hostinfo | ||
) |
Definition at line 466 of file nsplookup.c.
Referenced by NSP_LookupServiceNextW().
Definition at line 443 of file nsplookup.c.
Referenced by NSP_LookupServiceNextW().
INT NSP_GetServiceByNameHeapAllocW | ( | _In_ PWSHANDLEINTERN | data, |
_In_ DWORD | dwControlFlags, | ||
_Out_ PWSHOSTINFOINTERN | hostinfo | ||
) |
Definition at line 700 of file nsplookup.c.
Referenced by NSP_LookupServiceNextW().
INT NSP_LookupServiceBeginW | ( | PWSHANDLEINTERN | data, |
CHAR * | hostnameA, | ||
WCHAR * | hostnameW, | ||
DWORD | CallID | ||
) |
Definition at line 407 of file nsplookup.c.
Referenced by mwsNSPLookupServiceBegin().
INT NSP_LookupServiceNextW | ( | _In_ PWSHANDLEINTERN | data, |
_In_ DWORD | dwControlFlags, | ||
_Inout_ LPWSAQUERYSETW | lpRes, | ||
_Inout_ LPDWORD | lpResLen | ||
) |
Definition at line 852 of file nsplookup.c.
Referenced by mwsNSPLookupServiceNext().
Definition at line 1045 of file nsplookup.c.
Definition at line 608 of file nsplookup.c.
Referenced by NSP_GetServiceByNameHeapAllocW().
|
static |
Definition at line 57 of file nsplookup.c.
Referenced by mwsNSPLookupServiceBegin().
|
static |
Definition at line 58 of file nsplookup.c.
Referenced by mwsNSPLookupServiceBegin().
|
static |
Definition at line 59 of file nsplookup.c.
Referenced by mwsNSPLookupServiceBegin().
|
static |
Definition at line 60 of file nsplookup.c.
Referenced by mwsNSPLookupServiceBegin().
Definition at line 71 of file nsplookup.c.
Referenced by mwsNSPLookupServiceBegin().
Definition at line 64 of file nsplookup.c.
Referenced by mwsNSPLookupServiceBegin().
Definition at line 56 of file nsplookup.c.
Referenced by mwsNSPLookupServiceBegin().