NDIS_DECLARE_SWITCH_NET_BUFFER_LIST_CONTEXT_TYPE macro

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

This macro does not return a value.

Requirements

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

See Also

SetNetBufferListSwitchContext

GetNetBufferListSwitchContext

NET_BUFFER_LIST