// storport.h
VOID StorPortTerminateSystemThread(
[in] PVOID HwDeviceExtension,
[in/optional] PVOID ThreadContext
);
View the official Windows Driver Kit DDI referenceNo description available.
StorPortTerminateSystemThread terminates the current system thread.
HwDeviceExtension [in]Pointer to the miniport's hardware device extension.
ThreadContext [in/optional]Pointer to the thread context received in a prior call to StorPortCreateSystemThread.
A miniport-created system thread calls StorPortTerminateSystemThread to terminate itself. A miniport that creates its own threads must ensure that each such thread terminates. The miniport must not terminate any threads that the system or other drivers created.