NdisMFreeMapRegisters

This function releases a set of map registers that were allocated during initialization.

VOID NdisMFreeMapRegisters(
  NDIS_HANDLE MiniportAdapterHandle
);

Parameters

Return Values

None.

Remarks

If it has already made a successful call to the NdisMAllocateMapRegisters function, the NIC driver of a bus master DMA device calls this function if any of the following occurs:

  • Its MiniportInitialize function is unable to initialize the NIC, so this function must release all existing claims on hardware resources for that NIC before it returns control.
  • The NIC for which the miniport allocated the map registers is being removed.
  • The driver is being unloaded, either because the system is shutting down or because the user reconfigured the network components used in the machine.

As soon as it calls this function, the driver of a bus master DMA NIC can no longer use the map registers that it previously allocated.

This function can be called only from an NIC driver's MiniportInitialize and MiniportHalt functions.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.
Link Library: Ndis.dll.

See Also

MiniportInitialize

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.