// storport.h
ULONG StorPortGetActivityIdSrb(
[in] PVOID HwDeviceExtension,
[in] PSCSI_REQUEST_BLOCK Srb,
[out] LPGUID ActivityId
);
View the official Windows Driver Kit DDI referenceNo description available.
Retrieves the Event Tracing for Windows (ETW) activity ID associated with a request block.
HwDeviceExtension [in]A pointer to the hardware device extension for the host bus adapter (HBA).
Srb [in]The request block to retrieve the ETW activity ID for.
ActivityId [out]A pointer to a caller-supplied GUID to receive the ETW activity ID.
A status value indicating the result of the notification. This can be one of these values:
| Return code | Description |
|---|---|
| STOR_STATUS_SUCCESS | The ETW activity ID was returned in ActivityId. |
| STOR_STATUS_INVALID_PARAMETER | The pointer in ActivityId or Srb is NULL. |
| STOR_STATUS_UNSUCCESSFUL | An ETW activity ID is not associated with the request in Srb. |