DOC: Do Not Need NdisTerminateWrapper in MiniportHalt

ID: Q192482


The information in this article applies to:
  • Microsoft Win32 Device Driver Kit (DDK) for Windows NT, version 4.0


SUMMARY

The NDIS Library Function Reference for NdisTerminateWrapper states that a driver should call NdisTerminateWrapper from its MiniportHalt function when its last NIC is being removed. This is incorrect. The miniport driver does not have to terminate the wrapper by calling NdisTerminateWrapper, and the NdisMTerminateWrapper function does not exist (Microsoft samples do not use NdisTerminateWrapper anymore).


MORE INFORMATION

During the netcard removal operation, the miniport driver removes associated resources by calling NdisMDeregisterInterrupt. After the resources are removed, the miniport driver calls NdisMDeregisterIoPortRange and NdisMUnmapIoSpace, through which the NDIS wrapper informs the operating system that the netcard has been removed. The NDIS wrapper guarantees that there will be no requests or sends while the netcard is being disabled.

Additional query words: NdisMDeregisterInterrupt MiniportHalt NdisTerminateWrapper

Keywords : kbDDK kbNDIS kbNTOS400fix
Version :
Platform :
Issue type : kbinfo


Last Reviewed: March 5, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.