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

 NDIS_DECLARE_SWITCH_NET_BUFFER_LIST_CONTEXT_TYPE(
   _ContextName ContextName,
   _ExtensionId ExtensionId
);

Parameters

ContextName
An identifier for the context type.

ExtensionId
A GUID that matches the extension ID.

Return value

None.

Requirements

Target platform

Desktop

Version

Supported in NDIS 6.30 and later.

Header

Ntddndis.h (include Ndis.h)

See also


SetNetBufferListSwitchContext

GetNetBufferListSwitchContext

NET_BUFFER_LIST