Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SCOPE_LEVEL enumeration is used with the IP_ADAPTER_ADDRESSES structure to identify scope levels for IPv6 addresses.
Syntax
typedef enum {
ScopeLevelInterface = 1,
ScopeLevelLink = 2,
ScopeLevelSubnet = 3,
ScopeLevelAdmin = 4,
ScopeLevelSite = 5,
ScopeLevelOrganization = 8,
ScopeLevelGlobal = 14,
ScopeLevelCount = 16
} SCOPE_LEVEL;
Constants
ScopeLevelInterfaceValue: 1 The scope is interface-level. |
ScopeLevelLinkValue: 2 The scope is link-level. |
ScopeLevelSubnetValue: 3 The scope is subnet-level. |
ScopeLevelAdminValue: 4 The scope is admin-level. |
ScopeLevelSiteValue: 5 The scope is site-level. |
ScopeLevelOrganizationValue: 8 The scope is organization-level. |
ScopeLevelGlobalValue: 14 The scope is global. |
ScopeLevelCountValue: 16 |
Remarks
The SCOPE_LEVEL enumeration is used in the ZoneIndices member of the IP_ADAPTER_ADDRESSES structure.
On Windows Vista and later as well as on the Microsoft Windows Software Development Kit (SDK), the organization of header files has changed and the SCOPE_LEVEL enumeration type is defined in the Ws2def.h header file. Note that the Ws2def.h header file is automatically included in Winsock2.h, and should never be used directly.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Header | ws2def.h (include Winsock2.h) |