StorPortGetActivityIdSrb function (storport.h)

Retrieves the Event Tracing for Windows (ETW) activity ID associated with a request block.

Syntax

ULONG StorPortGetActivityIdSrb(
  [in]  PVOID               HwDeviceExtension,
  [in]  PSCSI_REQUEST_BLOCK Srb,
  [out] LPGUID              ActivityId
);

Parameters

[in] HwDeviceExtension

A pointer to the hardware device extension for the host bus adapter (HBA).

[in] Srb

The request block to retrieve the ETW activity ID for.

[out] ActivityId

A pointer to a caller-supplied GUID to receive the ETW activity ID.

Return value

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.

Requirements

Requirement Value
Minimum supported client Windows 8
Target Platform Universal
Header storport.h (include Storport.h)
Library Storport.lib
IRQL Any