DHCP_OPTION_SCOPE_INFO structure (dhcpsapi.h)

The DHCP_OPTION_SCOPE_INFO structure defines information about the options provided for a certain DHCP scope.

Syntax

typedef struct _DHCP_OPTION_SCOPE_INFO {
  DHCP_OPTION_SCOPE_TYPE   ScopeType;
#if ...
  union {
    DHCP_IP_ADDRESS     SubnetScopeInfo;
    DHCP_RESERVED_SCOPE ReservedScopeInfo;
    LPWSTR              MScopeInfo;
  } ScopeInfo;
#if ...
  _DHCP_OPTION_SCOPE_UNION _DHCP_OPTION_SCOPE_UNION;
#else
  union {
    PVOID               DefaultScopeInfo;
    PVOID               GlobalScopeInfo;
    DHCP_IP_ADDRESS     SubnetScopeInfo;
    DHCP_RESERVED_SCOPE ReservedScopeInfo;
    LPWSTR              MScopeInfo;
  } ScopeInfo;
#endif
#else
  _DHCP_OPTION_SCOPE_UNION _DHCP_OPTION_SCOPE_UNION;
#endif
} DHCP_OPTION_SCOPE_INFO, *LPDHCP_OPTION_SCOPE_INFO;

Members

ScopeType

DHCP_OPTION_SCOPE_TYPE enumeration value that defines the scope type of the associated DHCP options, and indicates which of the following fields in the union will be populated.

ScopeInfo

ScopeInfo.SubnetScopeInfo

DHCP_IP_ADDRESS value that contains the subnet ID as a DWORD.

ScopeInfo.ReservedScopeInfo

DHCP_RESERVED_SCOPE structure that contains a reserved IP address and its corresponding subnet ID.

ScopeInfo.MScopeInfo

Pointer to a Unicode string that contains the multicast scope name (usually represented as the IP address of the multicast router).

_DHCP_OPTION_SCOPE_UNION

ScopeInfo.DefaultScopeInfo

Pointer to a DHCP_OPTION_ARRAY structure that contains the default DHCP scope options. This member is not currently used.

ScopeInfo.GlobalScopeInfo

Pointer to a DHCP_OPTION_ARRAY structure that contains the global DHCP server options.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header dhcpsapi.h

See also

DHCP_OPTION_ARRAY

DHCP_OPTION_SCOPE_TYPE

DHCP_RESERVED_SCOPE