SCOPE_LEVEL enumeration (ws2def.h)
The SCOPE_LEVEL enumeration is used with the IP_ADAPTER_ADDRESSES structure to identify scope levels for IPv6 addresses.
Syntax
typedef enum {
ScopeLevelInterface,
ScopeLevelLink,
ScopeLevelSubnet,
ScopeLevelAdmin,
ScopeLevelSite,
ScopeLevelOrganization,
ScopeLevelGlobal,
ScopeLevelCount
} SCOPE_LEVEL;
Constants
ScopeLevelInterfaceThe scope is interface-level. |
ScopeLevelLinkThe scope is link-level. |
ScopeLevelSubnetThe scope is subnet-level. |
ScopeLevelAdminThe scope is admin-level. |
ScopeLevelSiteThe scope is site-level. |
ScopeLevelOrganizationThe scope is organization-level. |
ScopeLevelGlobalThe scope is global. |
ScopeLevelCount |
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
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Header | ws2def.h (include Winsock2.h) |