ReactOS  0.4.14-dev-114-gc8cbd56
ifdef.h
Go to the documentation of this file.
1 /* WINE ifdef.h
2  * Copyright 2010 Juan Lang
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 #ifndef WINE_IFDEF_H
19 #define WINE_IFDEF_H
20 
21 #include <ipifcons.h>
22 
29 
30 #define NET_IF_OPER_STATUS_DOWN_NOT_AUTHENTICATED 0x00000001
31 #define NET_IF_OPER_STATUS_DOWN_NOT_MEDIA_CONNECTED 0x00000002
32 #define NET_IF_OPER_STATUS_DORMANT_PAUSED 0x00000004
33 #define NET_IF_OPER_STATUS_DORMANT_LOW_POWER 0x00000008
34 
35 #define NET_IF_COMPARTMENT_ID_UNSPECIFIED 0
36 #define NET_IF_COMPARTMENT_ID_PRIMARY 1
37 
38 #define NET_IF_OID_IF_ALIAS 0x00000001
39 #define NET_IF_OID_COMPARTMENT_ID 0x00000002
40 #define NET_IF_OID_NETWORK_GUID 0x00000003
41 #define NET_IF_OID_IF_ENTRY 0x00000004
42 
43 #define NET_SET_UNSPECIFIED_NETWORK_GUID(x)
44 #define NET_IS_UNSPECIFIED_NETWORK_GUID(x)
45 
46 #define NET_SITEID_UNSPECIFIED 0
47 #define NET_SITEID_MAXUSER 0x07ffffff
48 #define NET_SITEID_MAXSYSTEM 0x0fffffff
49 
50 #define NET_IFINDEX_UNSPECIFIED 0
51 #define IFI_UNSPECIFIED NET_IFINDEX_UNSPECIFIED
52 
53 #define NET_IFLUID_UNSPECIFIED 0
54 
55 #define NIIF_HARDWARE_INTERFACE 0x00000001
56 #define NIIF_FILTER_INTERFACE 0x00000002
57 #define NIIF_NDIS_WDM_INTERFACE 0x00000020
58 #define NIIF_NDIS_ENDPOINT_INTERFACE 0x00000040
59 #define NIIF_NDIS_ISCSI_INTERFACE 0x00000080
60 #define NIIF_WAN_TUNNEL_TYPE_UNKNOWN 0xffffffff
61 
62 #define NET_BUS_NUMBER_UNKNOWN 0xffffffff
63 #define NET_SLOT_NUMBER_UNKNOWN 0xffffffff
64 #define NET_FUNCTION_NUMBER_UNKNOWN 0xffffffff
65 
66 #define IF_MAX_STRING_SIZE 256
67 #define IF_MAX_PHYS_ADDRESS_LENGTH 32
68 
69 typedef enum _NET_IF_ADMIN_STATUS {
74 
75 typedef enum _NET_IF_OPER_STATUS {
84 
90 
91 typedef struct _NET_IF_RCV_ADDRESS_LH {
98 
99 typedef union _NET_LUID_LH {
101  struct {
105  } Info;
111 
112 typedef enum _NET_IF_ACCESS_TYPE {
119 
126 
133 
139 
145 
153 
154 typedef struct _IF_COUNTED_STRING_LH {
160 
161 typedef struct _IF_PHYSICAL_ADDRESS_LH {
167 
168 typedef enum {
176 } TUNNEL_TYPE;
177 
183 
184 typedef enum {
193 
228 
229 #endif /* WINE_IFDEF_H*/
enum _IF_ADMINISTRATIVE_STATE IF_ADMINISTRATIVE_STATE
enum _NET_IF_ADMIN_STATUS NET_IF_ADMIN_STATUS
NET_IFINDEX * PIF_INDEX
Definition: ifdef.h:27
NET_IF_OPER_STATUS ifOperStatus
Definition: ifdef.h:195
UINT16 * PNET_IFTYPE
Definition: ifdef.h:28
NET_LUID_LH NET_LUID
Definition: ifdef.h:107
unsigned int ULONG32
Definition: basetsd.h:125
ULONG64 Reserved
Definition: ifdef.h:102
struct _IF_PHYSICAL_ADDRESS_LH * PIF_PHYSICAL_ADDRESS_LH
_NET_IF_ACCESS_TYPE
Definition: ifdef.h:112
enum _NET_IF_OPER_STATUS NET_IF_OPER_STATUS
NET_IF_MEDIA_DUPLEX_STATE MediaDuplexState
Definition: ifdef.h:198
NET_IF_MEDIA_CONNECT_STATE MediaConnectState
Definition: ifdef.h:197
ULONG64 ifHCInMulticastOctets
Definition: ifdef.h:220
enum _NET_IF_MEDIA_DUPLEX_STATE * PNET_IF_MEDIA_DUPLEX_STATE
_NET_IF_CONNECTION_TYPE
Definition: ifdef.h:127
union _NET_LUID_LH NET_LUID_LH
IF_OPER_STATUS
Definition: ifdef.h:184
TUNNEL_TYPE
Definition: ifdef.h:168
enum _NET_IF_MEDIA_CONNECT_STATE * PNET_IF_MEDIA_CONNECT_STATE
ULONG64 ifHCOutBroadcastPkts
Definition: ifdef.h:216
GUID NET_IF_NETWORK_GUID
Definition: ifdef.h:25
USHORT ifRcvAddressOffset
Definition: ifdef.h:94
IF_PHYSICAL_ADDRESS_LH IF_PHYSICAL_ADDRESS
Definition: ifdef.h:165
enum _NET_IF_RCV_ADDRESS_TYPE NET_IF_RCV_ADDRESS_TYPE
ULONG64 ifHCOutBroadcastOctets
Definition: ifdef.h:224
enum _NET_IF_OPER_STATUS * PNET_IF_OPER_STATUS
unsigned int UINT32
UINT16 NET_IFTYPE
Definition: ifdef.h:28
_NET_IF_RCV_ADDRESS_TYPE
Definition: ifdef.h:85
ULONG32 * PNET_IF_OBJECT_ID
Definition: ifdef.h:23
enum _NET_IF_ACCESS_TYPE NET_IF_ACCESS_TYPE
unsigned char BOOLEAN
struct _IF_COUNTED_STRING_LH * PIF_COUNTED_STRING_LH
struct _NET_PHYSICAL_LOCATION_LH * PNET_PHYSICAL_LOCATION_LH
NET_IF_RCV_ADDRESS_LH NET_IF_RCV_ADDRESS
Definition: ifdef.h:96
enum _NET_IF_ADMIN_STATUS * PNET_IF_ADMIN_STATUS
ULONG64 ifHCOutMulticastPkts
Definition: ifdef.h:215
enum _NET_IF_MEDIA_DUPLEX_STATE NET_IF_MEDIA_DUPLEX_STATE
ULONG * PNET_IFINDEX
Definition: ifdef.h:26
ULONG64 ifHCOutMulticastOctets
Definition: ifdef.h:223
ULONG64 IfType
Definition: ifdef.h:104
struct _IF_PHYSICAL_ADDRESS_LH IF_PHYSICAL_ADDRESS_LH
struct _NDIS_INTERFACE_INFORMATION * PNDIS_INTERFACE_INFORMATION
struct _NET_PHYSICAL_LOCATION_LH NET_PHYSICAL_LOCATION_LH
IF_COUNTED_STRING * PIF_COUNTED_STRING
Definition: ifdef.h:159
enum _IF_ADMINISTRATIVE_STATE * PIF_ADMINISTRATIVE_STATE
__wchar_t WCHAR
Definition: xmlstorage.h:180
struct _NET_LUID_LH::@2871 Info
UCHAR Address[IF_MAX_PHYS_ADDRESS_LENGTH]
Definition: ifdef.h:163
ULONG64 NetLuidIndex
Definition: ifdef.h:103
NET_IF_RCV_ADDRESS_LH * PNET_IF_RCV_ADDRESS
Definition: ifdef.h:97
NET_PHYSICAL_LOCATION * PNET_PHYSICAL_LOCATION
Definition: ifdef.h:152
enum _NET_IF_ACCESS_TYPE * PNET_IF_ACCESS_TYPE
BOOLEAN ifDeviceWakeUpEnable
Definition: ifdef.h:201
NET_PHYSICAL_LOCATION_LH NET_PHYSICAL_LOCATION
Definition: ifdef.h:151
unsigned __int64 ULONG64
Definition: imports.h:198
unsigned char UCHAR
Definition: xmlstorage.h:181
_NET_IF_OPER_STATUS
Definition: ifdef.h:75
enum _NET_IF_DIRECTION_TYPE NET_IF_DIRECTION_TYPE
NET_IF_RCV_ADDRESS_TYPE ifRcvAddressType
Definition: ifdef.h:92
enum _NET_IF_DIRECTION_TYPE * PNET_IF_DIRECTION_TYPE
union _NET_LUID_LH * PNET_LUID_LH
enum _NET_IF_CONNECTION_TYPE NET_IF_CONNECTION_TYPE
enum _NET_IF_MEDIA_CONNECT_STATE NET_IF_MEDIA_CONNECT_STATE
ULONG64 ifCounterDiscontinuityTime
Definition: ifdef.h:205
struct _IF_COUNTED_STRING_LH IF_COUNTED_STRING_LH
_NET_IF_DIRECTION_TYPE
Definition: ifdef.h:120
ULONG64 Value
Definition: ifdef.h:100
unsigned short USHORT
Definition: pedump.c:61
WCHAR String[IF_MAX_STRING_SIZE+1]
Definition: ifdef.h:156
_NET_IF_MEDIA_DUPLEX_STATE
Definition: ifdef.h:140
struct _NET_IF_RCV_ADDRESS_LH NET_IF_RCV_ADDRESS_LH
unsigned short UINT16
_IF_ADMINISTRATIVE_STATE
Definition: ifdef.h:178
NET_IFINDEX IF_INDEX
Definition: ifdef.h:27
_NET_IF_ADMIN_STATUS
Definition: ifdef.h:69
UINT32 * PNET_IF_COMPARTMENT_ID
Definition: ifdef.h:24
unsigned int ULONG
Definition: retypes.h:1
ULONG NET_IFINDEX
Definition: ifdef.h:26
IF_COUNTED_STRING_LH IF_COUNTED_STRING
Definition: ifdef.h:158
USHORT ifRcvAddressLength
Definition: ifdef.h:93
ULONG64 ifHCInBroadcastOctets
Definition: ifdef.h:221
struct _NET_IF_RCV_ADDRESS_LH * PNET_IF_RCV_ADDRESS_LH
enum _NET_IF_RCV_ADDRESS_TYPE * PNET_IF_RCV_ADDRESS_TYPE
NET_IF_COMPARTMENT_ID CompartmentId
Definition: ifdef.h:225
_NET_IF_MEDIA_CONNECT_STATE
Definition: ifdef.h:134
IF_PHYSICAL_ADDRESS * PIF_PHYSICAL_ADDRESS
Definition: ifdef.h:166
enum _NET_IF_CONNECTION_TYPE * PNET_IF_CONNECTION_TYPE
struct _NDIS_INTERFACE_INFORMATION NDIS_INTERFACE_INFORMATION
#define IF_MAX_PHYS_ADDRESS_LENGTH
Definition: ifdef.h:67
UINT32 NET_IF_COMPARTMENT_ID
Definition: ifdef.h:24
NET_LUID * PIF_LUID
Definition: ifdef.h:110
#define IF_MAX_STRING_SIZE
Definition: ifdef.h:66
GUID * PNET_IF_NETWORK_GUID
Definition: ifdef.h:25
ULONG32 NET_IF_OBJECT_ID
Definition: ifdef.h:23
NET_LUID IF_LUID
Definition: ifdef.h:109
NET_LUID * PNET_LUID
Definition: ifdef.h:108