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
2630146b
Commit
2630146b
authored
Jul 22, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add definition of MIB_IF_ROW2.
parent
6cf1de44
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
110 additions
and
0 deletions
+110
-0
ipifcons.h
include/ipifcons.h
+2
-0
netioapi.h
include/netioapi.h
+58
-0
ntddndis.h
include/ntddndis.h
+50
-0
No files found.
include/ipifcons.h
View file @
2630146b
...
@@ -227,6 +227,8 @@
...
@@ -227,6 +227,8 @@
#define MIB_IF_TYPE_LOOPBACK 24
#define MIB_IF_TYPE_LOOPBACK 24
#define MIB_IF_TYPE_SLIP 28
#define MIB_IF_TYPE_SLIP 28
typedef
ULONG
IFTYPE
;
#define MIB_IF_ADMIN_STATUS_UP 1
#define MIB_IF_ADMIN_STATUS_UP 1
#define MIB_IF_ADMIN_STATUS_DOWN 2
#define MIB_IF_ADMIN_STATUS_DOWN 2
#define MIB_IF_ADMIN_STATUS_TESTING 3
#define MIB_IF_ADMIN_STATUS_TESTING 3
...
...
include/netioapi.h
View file @
2630146b
...
@@ -19,6 +19,63 @@
...
@@ -19,6 +19,63 @@
#ifndef __WINE_NETIOAPI_H
#ifndef __WINE_NETIOAPI_H
#define __WINE_NETIOAPI_H
#define __WINE_NETIOAPI_H
#include <ntddndis.h>
typedef
struct
_MIB_IF_ROW2
{
NET_LUID
InterfaceLuid
;
NET_IFINDEX
InterfaceIndex
;
GUID
InterfaceGuid
;
WCHAR
Alias
[
IF_MAX_STRING_SIZE
+
1
];
WCHAR
Description
[
IF_MAX_STRING_SIZE
+
1
];
ULONG
PhysicalAddressLength
;
UCHAR
PhysicalAddress
[
IF_MAX_PHYS_ADDRESS_LENGTH
];
UCHAR
PermanentPhysicalAddress
[
IF_MAX_PHYS_ADDRESS_LENGTH
];
ULONG
Mtu
;
IFTYPE
Type
;
TUNNEL_TYPE
TunnelType
;
NDIS_MEDIUM
MediaType
;
NDIS_PHYSICAL_MEDIUM
PhysicalMediumType
;
NET_IF_ACCESS_TYPE
AccessType
;
NET_IF_DIRECTION_TYPE
DirectionType
;
struct
{
BOOLEAN
HardwareInterface
:
1
;
BOOLEAN
FilterInterface
:
1
;
BOOLEAN
ConnectorPresent
:
1
;
BOOLEAN
NotAuthenticated
:
1
;
BOOLEAN
NotMediaConnected
:
1
;
BOOLEAN
Paused
:
1
;
BOOLEAN
LowPower
:
1
;
BOOLEAN
EndPointInterface
:
1
;
}
InterfaceAndOperStatusFlags
;
IF_OPER_STATUS
OperStatus
;
NET_IF_ADMIN_STATUS
AdminStatus
;
NET_IF_MEDIA_CONNECT_STATE
MediaConnectState
;
NET_IF_NETWORK_GUID
NetworkGuid
;
NET_IF_CONNECTION_TYPE
ConnectionType
;
ULONG64
TransmitLinkSpeed
;
ULONG64
ReceiveLinkSpeed
;
ULONG64
InOctets
;
ULONG64
InUcastPkts
;
ULONG64
InNUcastPkts
;
ULONG64
InDiscards
;
ULONG64
InErrors
;
ULONG64
InUnknownProtos
;
ULONG64
InUcastOctets
;
ULONG64
InMulticastOctets
;
ULONG64
InBroadcastOctets
;
ULONG64
OutOctets
;
ULONG64
OutUcastPkts
;
ULONG64
OutNUcastPkts
;
ULONG64
OutDiscards
;
ULONG64
OutErrors
;
ULONG64
OutUcastOctets
;
ULONG64
OutMulticastOctets
;
ULONG64
OutBroadcastOctets
;
ULONG64
OutQLen
;
}
MIB_IF_ROW2
,
*
PMIB_IF_ROW2
;
DWORD
WINAPI
ConvertInterfaceGuidToLuid
(
const
GUID
*
,
NET_LUID
*
);
DWORD
WINAPI
ConvertInterfaceGuidToLuid
(
const
GUID
*
,
NET_LUID
*
);
DWORD
WINAPI
ConvertInterfaceIndexToLuid
(
NET_IFINDEX
,
NET_LUID
*
);
DWORD
WINAPI
ConvertInterfaceIndexToLuid
(
NET_IFINDEX
,
NET_LUID
*
);
DWORD
WINAPI
ConvertInterfaceLuidToGuid
(
const
NET_LUID
*
,
GUID
*
);
DWORD
WINAPI
ConvertInterfaceLuidToGuid
(
const
NET_LUID
*
,
GUID
*
);
...
@@ -28,5 +85,6 @@ DWORD WINAPI ConvertInterfaceLuidToNameW(const NET_LUID*,WCHAR*,SIZE_T);
...
@@ -28,5 +85,6 @@ DWORD WINAPI ConvertInterfaceLuidToNameW(const NET_LUID*,WCHAR*,SIZE_T);
DWORD
WINAPI
ConvertInterfaceNameToLuidA
(
const
char
*
,
NET_LUID
*
);
DWORD
WINAPI
ConvertInterfaceNameToLuidA
(
const
char
*
,
NET_LUID
*
);
DWORD
WINAPI
ConvertInterfaceNameToLuidW
(
const
WCHAR
*
,
NET_LUID
*
);
DWORD
WINAPI
ConvertInterfaceNameToLuidW
(
const
WCHAR
*
,
NET_LUID
*
);
void
WINAPI
FreeMibTable
(
void
*
);
void
WINAPI
FreeMibTable
(
void
*
);
DWORD
WINAPI
GetIfEntry2
(
MIB_IF_ROW2
*
);
#endif
/* __WINE_NETIOAPI_H */
#endif
/* __WINE_NETIOAPI_H */
include/ntddndis.h
View file @
2630146b
...
@@ -165,6 +165,56 @@ typedef struct _NDIS_802_11_BSSID_LIST {
...
@@ -165,6 +165,56 @@ typedef struct _NDIS_802_11_BSSID_LIST {
typedef
int
NDIS_STATUS
,
*
PNDIS_STATUS
;
typedef
int
NDIS_STATUS
,
*
PNDIS_STATUS
;
#endif
#endif
typedef
enum
_NDIS_MEDIUM
{
NdisMedium802_3
,
NdisMedium802_5
,
NdisMediumFddi
,
NdisMediumWan
,
NdisMediumLocalTalk
,
NdisMediumDix
,
NdisMediumArcnetRaw
,
NdisMediumArcnet878_2
,
NdisMediumAtm
,
NdisMediumWirelessWan
,
NdisMediumIrda
,
NdisMediumBpc
,
NdisMediumCoWan
,
NdisMedium1394
,
NdisMediumInfiniBand
,
NdisMediumTunnel
,
NdisMediumNative802_11
,
NdisMediumLoopback
,
NdisMediumWiMAX
,
NdisMediumIP
,
NdisMediumMax
}
NDIS_MEDIUM
,
*
PNDIS_MEDIUM
;
typedef
enum
_NDIS_PHYSICAL_MEDIUM
{
NdisPhysicalMediumUnspecified
,
NdisPhysicalMediumWirelessLan
,
NdisPhysicalMediumCableModem
,
NdisPhysicalMediumPhoneLine
,
NdisPhysicalMediumPowerLine
,
NdisPhysicalMediumDSL
,
NdisPhysicalMediumFibreChannel
,
NdisPhysicalMedium1394
,
NdisPhysicalMediumWirelessWan
,
NdisPhysicalMediumNative802_11
,
NdisPhysicalMediumBluetooth
,
NdisPhysicalMediumInfiniband
,
NdisPhysicalMediumWiMax
,
NdisPhysicalMediumUWB
,
NdisPhysicalMedium802_3
,
NdisPhysicalMedium802_5
,
NdisPhysicalMediumIrda
,
NdisPhysicalMediumWiredWAN
,
NdisPhysicalMediumWiredCoWan
,
NdisPhysicalMediumOther
,
NdisPhysicalMediumMax
}
NDIS_PHYSICAL_MEDIUM
,
*
PNDIS_PHYSICAL_MEDIUM
;
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
...
...
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