// storport.h
ULONG StorPortRevertToUserGroupAffinityThread(
[in] PVOID HwDeviceExtension,
[in/optional] PVOID ThreadContext,
[in] PSTOR_GROUP_AFFINITY PreviousAffinity
);
View the official Windows Driver Kit DDI referenceNo description available.
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.
PreviousAffinity [in]Pointer to a STOR_GROUP_AFFINITY structure with the group affinity to restore. This group affinity was obtained in a prior call to StorPortSetSystemGroupAffinityThread.
StorPortRevertToUserGroupAffinityThread returns one of the following values:
| Return code | Description |
|---|---|
| STOR_STATUS_SUCCESS | The original group affinity was restored successfully. |
| STOR_STATUS_INVALID_IRQL | IRQL level must be <= DISPATCH_LEVEL. |
| STOR_STATUS_INVALID_PARAMETER | One or more of the provided parameters are invalid. |
| STOR_STATUS_UNSUCCESSFUL | Returned for other internal system reasons. |
If a miniport calls StorPortSetSystemGroupAffinityThread to temporarily change the group affinity of the thread, then it should call StorPortRevertToUserGroupAffinityThread to revert thread affinity to its original value before the thread exits.
StorPortSetSystemGroupAffinityThread