Bewerken

Delen via


StorPortTerminateSystemThread function (storport.h)

StorPortTerminateSystemThread terminates the current system thread.

Syntax

void StorPortTerminateSystemThread(
  [in]          PVOID HwDeviceExtension,
  [in/optional] PVOID ThreadContext
);

Parameters

[in] HwDeviceExtension

Pointer to the miniport's hardware device extension.

[in/optional] ThreadContext

Pointer to the thread context received in a prior call to StorPortCreateSystemThread.

Return value

None

Remarks

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.

Requirements

Requirement Value
Minimum supported server Windows Server 2022
Header storport.h

See also

StorPortCreateSystemThread