include: Add structures and constants needed for ParseNetworkString.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c113c5b9e7
commit
c520ad0185
|
@ -26,6 +26,26 @@ extern "C" {
|
|||
#include <ipexport.h>
|
||||
#include <iptypes.h>
|
||||
|
||||
#define NET_STRING_IPV4_ADDRESS 0x00000001
|
||||
#define NET_STRING_IPV4_SERVICE 0x00000002
|
||||
#define NET_STRING_IPV4_NETWORK 0x00000004
|
||||
#define NET_STRING_IPV6_ADDRESS 0x00000008
|
||||
#define NET_STRING_IPV6_ADDRESS_NO_SCOPE 0x00000010
|
||||
#define NET_STRING_IPV6_SERVICE 0x00000020
|
||||
#define NET_STRING_IPV6_SERVICE_NO_SCOPE 0x00000040
|
||||
#define NET_STRING_IPV6_NETWORK 0x00000080
|
||||
#define NET_STRING_NAMED_ADDRESS 0x00000100
|
||||
#define NET_STRING_NAMED_SERVICE 0x00000200
|
||||
#define NET_STRING_IP_ADDRESS (NET_STRING_IPV4_ADDRESS|NET_STRING_IPV6_ADDRESS)
|
||||
#define NET_STRING_IP_ADDRESS_NO_SCOPE (NET_STRING_IPV4_ADDRESS|NET_STRING_IPV6_ADDRESS_NO_SCOPE)
|
||||
#define NET_STRING_IP_SERVICE (NET_STRING_IPV4_SERVICE|NET_STRING_IPV6_SERVICE)
|
||||
#define NET_STRING_IP_SERVICE_NO_SCOPE (NET_STRING_IPV4_SERVICE|NET_STRING_IPV6_SERVICE_NO_SCOPE)
|
||||
#define NET_STRING_IP_NETWORK (NET_STRING_IPV4_NETWORK|NET_STRING_IPV6_NETWORK)
|
||||
#define NET_STRING_ANY_ADDRESS (NET_STRING_NAMED_ADDRESS|NET_STRING_IP_ADDRESS)
|
||||
#define NET_STRING_ANY_ADDRESS_NO_SCOPE (NET_STRING_NAMED_ADDRESS|NET_STRING_IP_ADDRESS_NO_SCOPE)
|
||||
#define NET_STRING_ANY_SERVICE (NET_STRING_NAMED_SERVICE|NET_STRING_IP_SERVICE)
|
||||
#define NET_STRING_ANY_SERVICE_NO_SCOPE (NET_STRING_NAMED_SERVICE|NET_STRING_IP_SERVICE_NO_SCOPE)
|
||||
|
||||
DWORD WINAPI GetExtendedTcpTable(PVOID pTcpTable, PDWORD pdwSize, BOOL bOrder,
|
||||
ULONG ulAf, TCP_TABLE_CLASS TableClass, ULONG Reserved);
|
||||
|
||||
|
@ -162,6 +182,33 @@ DWORD WINAPI AllocateAndGetTcpExTableFromStack(VOID **ppTcpTable, BOOL bOrder, H
|
|||
DWORD WINAPI AllocateAndGetIpNetTableFromStack(PMIB_IPNETTABLE *ppIpNetTable, BOOL bOrder, HANDLE heap, DWORD flags);
|
||||
DWORD WINAPI AllocateAndGetIpForwardTableFromStack(PMIB_IPFORWARDTABLE *ppIpForwardTable, BOOL bOrder, HANDLE heap, DWORD flags);
|
||||
|
||||
typedef enum NET_ADDRESS_FORMAT_ {
|
||||
NET_ADDRESS_FORMAT_UNSPECIFIED,
|
||||
NET_ADDRESS_DNS_NAME,
|
||||
NET_ADDRESS_IPV4,
|
||||
NET_ADDRESS_IPV6,
|
||||
} NET_ADDRESS_FORMAT;
|
||||
|
||||
#ifdef __WINE_WINDNS_H
|
||||
|
||||
typedef struct NET_ADDRESS_INFO_
|
||||
{
|
||||
NET_ADDRESS_FORMAT Format;
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
WCHAR Address[DNS_MAX_NAME_BUFFER_LENGTH];
|
||||
WCHAR Port[6];
|
||||
} NamedAddress;
|
||||
SOCKADDR_IN Ipv4Address;
|
||||
SOCKADDR_IN6 Ipv6Address;
|
||||
SOCKADDR IpAddress;
|
||||
} DUMMYUNIONNAME;
|
||||
} NET_ADDRESS_INFO, *PNET_ADDRESS_INFO;
|
||||
|
||||
#endif /* __WINE_WINDNS_H */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -177,6 +177,7 @@ typedef struct
|
|||
#define DNS_ADDRESS_STRING_LENGTH IP6_ADDRESS_STRING_LENGTH
|
||||
#define IP4_ADDRESS_STRING_BUFFER_LENGTH IP4_ADDRESS_STRING_LENGTH
|
||||
#define IP6_ADDRESS_STRING_BUFFER_LENGTH IP6_ADDRESS_STRING_LENGTH
|
||||
#define DNS_MAX_NAME_BUFFER_LENGTH 256
|
||||
|
||||
typedef struct _IP4_ARRAY
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue