Share via


NdisMFreeMapRegisters (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

VOID NdisMFreeMapRegisters(
  NDIS_HANDLE MiniportAdapterHandle
);

Parameters

Return Value

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

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

See Also

Reference

NDIS Library Functions
MiniportInitialize