MiniportReconfigure

NDIS_STATUS
    MiniportReconfigure(
        OUT PNDIS_STATUS
 OpenErrorStatus,
        IN NDIS_HANDLE MiniportAdapterContext,
        IN NDIS_HANDLE WrapperConfigurationContext
        );

MiniportReconfigure is an function that the NDIS library currently never calls but that a MiniportInitialize function can call as an internal driver function.

Parameters

OpenErrorStatus
Points to a variable that MiniportReconfigure sets to an NDIS_STATUS_XXX code specifying additional information about the error if MiniportReconfigure will return NDIS_STATUS_OPEN_ERROR.
MiniportAdapterContext
Specifies the handle to a miniport-allocated context area in which the driver maintains per-NIC state, set up by MiniportInitialize with NdisMSetAttributes or NdisMSetAttributesEx.
WrapperConfigurationContext
Specifies a handle used only during initialization for calls to NdisXxx configuration and initialization functions. For example, this handle is a required parameter to NdisOpenConfiguration and the NdisImmediateReadXxx and NdisImmediateWriteXxx functions.

Return Value

MiniportReconfigure either returns NDIS_STATUS_SUCCESS or it can return any driver-determined value, such as one of the following:

NDIS_STATUS_NOT_ACCEPTED
NDIS_STATUS_OPEN_ERROR
NDIS_STATUS_FAILURE

Comments

As an internal driver function, MiniportReconfigure might be called from MiniportInitialize to reconfigure a NIC to new parameters returned by one of the NdisXxx bus-relative configuration functions. For example, a MiniportReconfigure function might be used to support plug-and-play NICs or software-configurable NICs.

Because an internal MiniportReconfigure function is called from MiniportInitialize, no other driver request can be outstanding when MiniportReconfigure is called, and NDIS will never submit another request to the miniport until its caller, MiniportInitialize, returns control.

Like MiniportInitialize, MiniportReconfigure can be pre-empted by an interrupt if the driver has already called NdisMRegisterInterrupt or if the NIC shares an IRQ.

As an internal driver function called from MiniportInitialize, MiniportReconfigure can be pageable code.

By default, MiniportReconfigure runs at the same IRQL as MiniportIntialize.

See Also

MiniportInitialize