NdisMDeregisterIoPortRange

This function releases a mapping that was set up with the NdisMRegisterIoPortRange function during driver initialization.

VOID NdisMDeregisterIoPortRange(
IN NDIS_HANDLE MiniportAdapterHandle, 
IN UINT InitialPort, 
IN UINT NumberOfPorts, 
IN PVOID PortOffset );

Parameters

  • MiniportAdapterHandle
    Handle input to the MiniportInitialize function.
  • InitialPort
    Specifies the bus-relative address of the first port in the range of ports.
  • NumberOfPorts
    Specifies the number of ports in the range.
  • PortOffset
    Specifies the mapped base port address returned by the NdisMRegisterIoPortRange function.

Remarks

The miniport must pass the same InitialPort and NumberOfPorts parameters to this function that were passed when the MiniportInitialize function called the NdisMRegisterIoPortRange function to get the mapped PortOffset value. That is, a miniport cannot call this function to release a subrange of a mapped port range.

This function can be called from the MiniportInitialize or the MiniportHalt function only if MiniportInitialize previously made a successful call to the NdisMRegisterIoPortRange function.

This function also releases the driver's claim on the I/O port range in the registry.

After it calls NdisMRegisterIoPortRange, the miniport can no longer access the network adapter's port range with calls to the NdisRawXXXPortXXX functions.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Ndis.h   Ndislib.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

MiniportHalt, MiniportInitialize, NdisMRegisterIoPortRange

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.