NDIS_DECLARE_SWITCH_NET_BUFFER_LIST_CONTEXT_TYPE macro (ndis.h)

Hyper-V extensible switch extensions use the NDIS_DECLARE_SWITCH_NET_BUFFER_LIST_CONTEXT_TYPE macro to define the context type that is used by the SetNetBufferListSwitchContext and GetNetBufferListSwitchContext functions to attach and retrieve context from a NET_BUFFER_LIST structure. Extensions can define as many context types as they want within their driver.

Syntax

void NDIS_DECLARE_SWITCH_NET_BUFFER_LIST_CONTEXT_TYPE(
   _ContextName,
   _ExtensionId
);

Parameters

_ContextName

An identifier for the context type.

_ExtensionId

A GUID that matches the extension ID.

Return value

None

Requirements

Requirement Value
Minimum supported client Supported in NDIS 6.30 and later.
Target Platform Desktop
Header ndis.h

See also

SetNetBufferListSwitchContext

GetNetBufferListSwitchContext

NET_BUFFER_LIST