Microsoft KB Archive/192482

{|
 * width="100%"|

DOC: Do Not Need NdisTerminateWrapper in MiniportHalt

 * }

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 kbOSWinNT400fix

Issue type : kbinfo

Technology : kbAudDeveloper kbWinDDKSearch kbWin32sSearch kbWin32DDKSearch kbWin32DDKNT400 kbWin32DDKNTSearch