ReactOS 0.4.15-dev-5836-g942b022
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
74
75typedef enum _NET_IF_OPER_STATUS {
84
90
91typedef struct _NET_IF_RCV_ADDRESS_LH {
98
99typedef union _NET_LUID_LH {
101 struct {
111
119
126
133
139
145
153
154typedef struct _IF_COUNTED_STRING_LH {
160
167
168typedef enum {
177
183
184typedef enum {
193
228
229#endif /* WINE_IFDEF_H*/
unsigned short UINT16
unsigned char BOOLEAN
unsigned int UINT32
unsigned int ULONG32
Definition: basetsd.h:125
_IF_ADMINISTRATIVE_STATE
Definition: ifdef.h:178
@ IF_ADMINISTRATIVE_STATE_DEMANDDIAL
Definition: ifdef.h:181
@ IF_ADMINISTRATIVE_STATE_ENABLED
Definition: ifdef.h:180
@ IF_ADMINISTRATIVE_STATE_DISABLED
Definition: ifdef.h:179
NET_IF_RCV_ADDRESS_LH NET_IF_RCV_ADDRESS
Definition: ifdef.h:96
NET_LUID_LH NET_LUID
Definition: ifdef.h:107
enum _NET_IF_ADMIN_STATUS NET_IF_ADMIN_STATUS
enum _NET_IF_CONNECTION_TYPE * PNET_IF_CONNECTION_TYPE
#define IF_MAX_PHYS_ADDRESS_LENGTH
Definition: ifdef.h:67
NET_PHYSICAL_LOCATION_LH NET_PHYSICAL_LOCATION
Definition: ifdef.h:151
enum _NET_IF_DIRECTION_TYPE NET_IF_DIRECTION_TYPE
struct _NET_IF_RCV_ADDRESS_LH * PNET_IF_RCV_ADDRESS_LH
IF_OPER_STATUS
Definition: ifdef.h:184
@ IfOperStatusNotPresent
Definition: ifdef.h:190
@ IfOperStatusUnknown
Definition: ifdef.h:188
@ IfOperStatusUp
Definition: ifdef.h:185
@ IfOperStatusLowerLayerDown
Definition: ifdef.h:191
@ IfOperStatusDown
Definition: ifdef.h:186
@ IfOperStatusTesting
Definition: ifdef.h:187
@ IfOperStatusDormant
Definition: ifdef.h:189
GUID NET_IF_NETWORK_GUID
Definition: ifdef.h:25
_NET_IF_DIRECTION_TYPE
Definition: ifdef.h:120
@ NET_IF_DIRECTION_SENDONLY
Definition: ifdef.h:122
@ NET_IF_DIRECTION_SENDRECEIVE
Definition: ifdef.h:121
@ NET_IF_DIRECTION_RECEIVEONLY
Definition: ifdef.h:123
@ NET_IF_DIRECTION_MAXIMUM
Definition: ifdef.h:124
UINT32 * PNET_IF_COMPARTMENT_ID
Definition: ifdef.h:24
enum _NET_IF_OPER_STATUS NET_IF_OPER_STATUS
NET_IFINDEX * PIF_INDEX
Definition: ifdef.h:27
_NET_IF_OPER_STATUS
Definition: ifdef.h:75
@ NET_IF_OPER_STATUS_TESTING
Definition: ifdef.h:78
@ NET_IF_OPER_STATUS_DOWN
Definition: ifdef.h:77
@ NET_IF_OPER_STATUS_DORMANT
Definition: ifdef.h:80
@ NET_IF_OPER_STATUS_NOT_PRESENT
Definition: ifdef.h:81
@ NET_IF_OPER_STATUS_LOWER_LAYER_DOWN
Definition: ifdef.h:82
@ NET_IF_OPER_STATUS_UP
Definition: ifdef.h:76
@ NET_IF_OPER_STATUS_UNKNOWN
Definition: ifdef.h:79
GUID * PNET_IF_NETWORK_GUID
Definition: ifdef.h:25
enum _NET_IF_MEDIA_DUPLEX_STATE NET_IF_MEDIA_DUPLEX_STATE
enum _NET_IF_CONNECTION_TYPE NET_IF_CONNECTION_TYPE
enum _NET_IF_MEDIA_DUPLEX_STATE * PNET_IF_MEDIA_DUPLEX_STATE
enum _NET_IF_RCV_ADDRESS_TYPE NET_IF_RCV_ADDRESS_TYPE
UINT32 NET_IF_COMPARTMENT_ID
Definition: ifdef.h:24
_NET_IF_MEDIA_DUPLEX_STATE
Definition: ifdef.h:140
@ MediaDuplexStateUnknown
Definition: ifdef.h:141
@ MediaDuplexStateHalf
Definition: ifdef.h:142
@ MediaDuplexStateFull
Definition: ifdef.h:143
IF_PHYSICAL_ADDRESS * PIF_PHYSICAL_ADDRESS
Definition: ifdef.h:166
enum _NET_IF_MEDIA_CONNECT_STATE NET_IF_MEDIA_CONNECT_STATE
NET_LUID * PNET_LUID
Definition: ifdef.h:108
enum _IF_ADMINISTRATIVE_STATE * PIF_ADMINISTRATIVE_STATE
ULONG32 NET_IF_OBJECT_ID
Definition: ifdef.h:23
NET_PHYSICAL_LOCATION * PNET_PHYSICAL_LOCATION
Definition: ifdef.h:152
#define IF_MAX_STRING_SIZE
Definition: ifdef.h:66
NET_LUID * PIF_LUID
Definition: ifdef.h:110
IF_COUNTED_STRING * PIF_COUNTED_STRING
Definition: ifdef.h:159
IF_PHYSICAL_ADDRESS_LH IF_PHYSICAL_ADDRESS
Definition: ifdef.h:165
struct _NDIS_INTERFACE_INFORMATION * PNDIS_INTERFACE_INFORMATION
struct _NDIS_INTERFACE_INFORMATION NDIS_INTERFACE_INFORMATION
_NET_IF_CONNECTION_TYPE
Definition: ifdef.h:127
@ NET_IF_CONNECTION_DEMAND
Definition: ifdef.h:130
@ NET_IF_CONNECTION_MAXIMUM
Definition: ifdef.h:131
@ NET_IF_CONNECTION_PASSIVE
Definition: ifdef.h:129
@ NET_IF_CONNECTION_DEDICATED
Definition: ifdef.h:128
TUNNEL_TYPE
Definition: ifdef.h:168
@ TUNNEL_TYPE_IPHTTPS
Definition: ifdef.h:175
@ TUNNEL_TYPE_OTHER
Definition: ifdef.h:170
@ TUNNEL_TYPE_NONE
Definition: ifdef.h:169
@ TUNNEL_TYPE_6TO4
Definition: ifdef.h:172
@ TUNNEL_TYPE_DIRECT
Definition: ifdef.h:171
@ TUNNEL_TYPE_ISATAP
Definition: ifdef.h:173
@ TUNNEL_TYPE_TEREDO
Definition: ifdef.h:174
enum _IF_ADMINISTRATIVE_STATE IF_ADMINISTRATIVE_STATE
ULONG NET_IFINDEX
Definition: ifdef.h:26
UINT16 * PNET_IFTYPE
Definition: ifdef.h:28
enum _NET_IF_OPER_STATUS * PNET_IF_OPER_STATUS
enum _NET_IF_ACCESS_TYPE * PNET_IF_ACCESS_TYPE
enum _NET_IF_ACCESS_TYPE NET_IF_ACCESS_TYPE
struct _IF_PHYSICAL_ADDRESS_LH IF_PHYSICAL_ADDRESS_LH
enum _NET_IF_ADMIN_STATUS * PNET_IF_ADMIN_STATUS
UINT16 NET_IFTYPE
Definition: ifdef.h:28
struct _IF_PHYSICAL_ADDRESS_LH * PIF_PHYSICAL_ADDRESS_LH
enum _NET_IF_DIRECTION_TYPE * PNET_IF_DIRECTION_TYPE
NET_IF_RCV_ADDRESS_LH * PNET_IF_RCV_ADDRESS
Definition: ifdef.h:97
struct _IF_COUNTED_STRING_LH IF_COUNTED_STRING_LH
NET_IFINDEX IF_INDEX
Definition: ifdef.h:27
_NET_IF_RCV_ADDRESS_TYPE
Definition: ifdef.h:85
@ NET_IF_RCV_ADDRESS_TYPE_NON_VOLATILE
Definition: ifdef.h:88
@ NET_IF_RCV_ADDRESS_TYPE_VOLATILE
Definition: ifdef.h:87
@ NET_IF_RCV_ADDRESS_TYPE_OTHER
Definition: ifdef.h:86
IF_COUNTED_STRING_LH IF_COUNTED_STRING
Definition: ifdef.h:158
enum _NET_IF_RCV_ADDRESS_TYPE * PNET_IF_RCV_ADDRESS_TYPE
_NET_IF_MEDIA_CONNECT_STATE
Definition: ifdef.h:134
@ MediaConnectStateDisconnected
Definition: ifdef.h:137
@ MediaConnectStateUnknown
Definition: ifdef.h:135
@ MediaConnectStateConnected
Definition: ifdef.h:136
enum _NET_IF_MEDIA_CONNECT_STATE * PNET_IF_MEDIA_CONNECT_STATE
_NET_IF_ADMIN_STATUS
Definition: ifdef.h:69
@ NET_IF_ADMIN_STATUS_TESTING
Definition: ifdef.h:72
@ NET_IF_ADMIN_STATUS_DOWN
Definition: ifdef.h:71
@ NET_IF_ADMIN_STATUS_UP
Definition: ifdef.h:70
struct _NET_IF_RCV_ADDRESS_LH NET_IF_RCV_ADDRESS_LH
NET_LUID IF_LUID
Definition: ifdef.h:109
struct _NET_PHYSICAL_LOCATION_LH * PNET_PHYSICAL_LOCATION_LH
struct _NET_PHYSICAL_LOCATION_LH NET_PHYSICAL_LOCATION_LH
ULONG32 * PNET_IF_OBJECT_ID
Definition: ifdef.h:23
ULONG * PNET_IFINDEX
Definition: ifdef.h:26
union _NET_LUID_LH NET_LUID_LH
struct _IF_COUNTED_STRING_LH * PIF_COUNTED_STRING_LH
union _NET_LUID_LH * PNET_LUID_LH
_NET_IF_ACCESS_TYPE
Definition: ifdef.h:112
@ NET_IF_ACCESS_POINT_TO_POINT
Definition: ifdef.h:115
@ NET_IF_ACCESS_BROADCAST
Definition: ifdef.h:114
@ NET_IF_ACCESS_LOOPBACK
Definition: ifdef.h:113
@ NET_IF_ACCESS_MAXIMUM
Definition: ifdef.h:117
@ NET_IF_ACCESS_POINT_TO_MULTI_POINT
Definition: ifdef.h:116
unsigned __int64 ULONG64
Definition: imports.h:198
unsigned short USHORT
Definition: pedump.c:61
UCHAR Address[IF_MAX_PHYS_ADDRESS_LENGTH]
Definition: ifdef.h:163
NET_IF_COMPARTMENT_ID CompartmentId
Definition: ifdef.h:225
NET_IF_MEDIA_DUPLEX_STATE MediaDuplexState
Definition: ifdef.h:198
ULONG64 ifHCOutMulticastOctets
Definition: ifdef.h:223
ULONG64 ifHCInBroadcastOctets
Definition: ifdef.h:221
ULONG64 ifHCOutBroadcastOctets
Definition: ifdef.h:224
ULONG64 ifHCInMulticastOctets
Definition: ifdef.h:220
ULONG64 ifHCOutBroadcastPkts
Definition: ifdef.h:216
NET_IF_OPER_STATUS ifOperStatus
Definition: ifdef.h:195
BOOLEAN ifDeviceWakeUpEnable
Definition: ifdef.h:201
ULONG64 ifHCOutMulticastPkts
Definition: ifdef.h:215
NET_IF_MEDIA_CONNECT_STATE MediaConnectState
Definition: ifdef.h:197
ULONG64 ifCounterDiscontinuityTime
Definition: ifdef.h:205
NET_IF_RCV_ADDRESS_TYPE ifRcvAddressType
Definition: ifdef.h:92
USHORT ifRcvAddressOffset
Definition: ifdef.h:94
USHORT ifRcvAddressLength
Definition: ifdef.h:93
uint32_t ULONG
Definition: typedefs.h:59
ULONG64 IfType
Definition: ifdef.h:104
struct _NET_LUID_LH::@2970 Info
ULONG64 Value
Definition: ifdef.h:100
ULONG64 NetLuidIndex
Definition: ifdef.h:103
ULONG64 Reserved
Definition: ifdef.h:102
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433
unsigned char UCHAR
Definition: xmlstorage.h:181
__wchar_t WCHAR
Definition: xmlstorage.h:180