Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c520ad01
Commit
c520ad01
authored
Sep 04, 2019
by
Alex Henrie
Committed by
Alexandre Julliard
Sep 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add structures and constants needed for ParseNetworkString.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c113c5b9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
iphlpapi.h
include/iphlpapi.h
+47
-0
windns.h
include/windns.h
+1
-0
No files found.
include/iphlpapi.h
View file @
c520ad01
...
@@ -26,6 +26,26 @@ extern "C" {
...
@@ -26,6 +26,26 @@ extern "C" {
#include <ipexport.h>
#include <ipexport.h>
#include <iptypes.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
,
DWORD
WINAPI
GetExtendedTcpTable
(
PVOID
pTcpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
,
ULONG
ulAf
,
TCP_TABLE_CLASS
TableClass
,
ULONG
Reserved
);
ULONG
ulAf
,
TCP_TABLE_CLASS
TableClass
,
ULONG
Reserved
);
...
@@ -162,6 +182,33 @@ DWORD WINAPI AllocateAndGetTcpExTableFromStack(VOID **ppTcpTable, BOOL bOrder, H
...
@@ -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
AllocateAndGetIpNetTableFromStack
(
PMIB_IPNETTABLE
*
ppIpNetTable
,
BOOL
bOrder
,
HANDLE
heap
,
DWORD
flags
);
DWORD
WINAPI
AllocateAndGetIpForwardTableFromStack
(
PMIB_IPFORWARDTABLE
*
ppIpForwardTable
,
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
#ifdef __cplusplus
}
}
#endif
#endif
...
...
include/windns.h
View file @
c520ad01
...
@@ -177,6 +177,7 @@ typedef struct
...
@@ -177,6 +177,7 @@ typedef struct
#define DNS_ADDRESS_STRING_LENGTH IP6_ADDRESS_STRING_LENGTH
#define DNS_ADDRESS_STRING_LENGTH IP6_ADDRESS_STRING_LENGTH
#define IP4_ADDRESS_STRING_BUFFER_LENGTH IP4_ADDRESS_STRING_LENGTH
#define IP4_ADDRESS_STRING_BUFFER_LENGTH IP4_ADDRESS_STRING_LENGTH
#define IP6_ADDRESS_STRING_BUFFER_LENGTH IP6_ADDRESS_STRING_LENGTH
#define IP6_ADDRESS_STRING_BUFFER_LENGTH IP6_ADDRESS_STRING_LENGTH
#define DNS_MAX_NAME_BUFFER_LENGTH 256
typedef
struct
_IP4_ARRAY
typedef
struct
_IP4_ARRAY
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment