IoGetActivityIdIrp function (ntddk.h)

The IoGetActivityIdIrp routine retrieves the current activity ID associated with an IRP.

Syntax

NTSTATUS IoGetActivityIdIrp(
  PIRP   Irp,
  LPGUID Guid
);

Parameters

Irp

[in] The IRP from which to retrieve the activity ID.

Guid

[out] A pointer to a location to store the retrieved GUID.

Return value

IoGetActivityIdIrp returns STATUS_SUCCESS if the call is successful. Possible error return values include the following.

Return code Description
STATUS_NOT_FOUND
No activity ID is associated with the request.

Requirements

   
Minimum supported client Available starting with Windows 8.
Target Platform Universal
Header ntddk.h (include Ntddk.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level