Updating the ProtocolBindAdapter Function for an NDIS 6.0 Protocol Driver
In NDIS 6.0, the ProtocolBindAdapterEx function replaces the ProtocolBindAdapter function. NDIS calls ProtocolBindAdapterEx to perform binding operations whenever an underlying miniport adapter, to which the protocol driver can bind, becomes available.
ProtocolBindAdapterEx initializes a binding for network I/O operations. NDIS passes ProtocolBindAdapterEx an NDIS_BIND_PARAMETERS structure. For more information about ProtocolBindAdapterEx and this structure, see Binding to an Adapter.
The ProtocolBindAdapterEx function must:
Allocate sufficient memory to maintain the binding context information. For more information, see Allocating Memory in an NDIS 6.0 Protocol Driver.
Save the required binding information from the NDIS_BIND_PARAMETERS structure. Protocol drivers should not issue OID queries to obtain information that is already provided in the NDIS_BIND_PARAMETERS structure.
Allocate the NET_BUFFER_LIST and the NET_BUFFER pools. For more information, see Allocating Network Data Pools in NDIS 6.0 Protocol Drivers.
Open the underlying miniport adapter. For more information, see Opening an Adapter in an NDIS 6.0 Protocol Driver.
Optionally, read configuration parameters from the registry. For more information, see Reading the Registry in NDIS 6.0 Protocol Drivers.