次の方法で共有


NdisMRemoveMiniport (Windows Embedded CE 6.0)

1/6/2010

This function removes the specified miniport adapter that the miniport driver has determined is unrecoverable from the system.

Syntax

NDIS_STATUS NdisMRemoveMiniport(
  NDIS_HANDLE MiniportAdapterHandle
);

Parameters

  • MiniportAdapterHandle
    [in] Specifies the handle to the initialized adapter that the miniport driver has determined is unrecoverable.

Return Value

The following table shows the return values for this function.

Value Description

NDIS_STATUS_SUCCESS

The miniport adapter has been removed.

NDIS_STATUS_FAILURE

An attempt to remove the miniport adapter failed.

Remarks

If a miniport driver has determined that a particular miniport adapter has failed and is unrecoverable, the miniport driver can call NdisMRemoveMiniport to remove the adapter from the system. In this call, the miniport driver passes the handle to the adapter to remove.

A miniport driver can use a bundle of miniport adapters to balance the workload that each miniport adapter carries and to enable a secondary miniport adapter to take over packet transfers and information requests if the primary miniport adapter fails. For example, if the miniport driver's primary adapter fails, the miniport driver can call NdisMRemoveMiniport to remove the primary adapter from the system and from the miniport driver's bundle. The miniport driver can then call the NdisMPromoteMiniport function to promote a secondary adapter to the primary role.

The first miniport adapter that the miniport driver initialized is initially the primary miniport adapter. The primary miniport adapter handles all packet transfers and requests for information. A miniport driver can call the NdisMSetMiniportSecondary function during the subsequent initialization of several miniport adapters to set them all to secondary roles. That is, multiple secondary miniport adapters can exist in a bundle.

Requirements

Header ndis.h
Library ndis.dll
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisMPromoteMiniport
NdisMSetMiniportSecondary