// ntddk.h
NTSTATUS IoGetActivityIdIrp(
[in] PIRP Irp,
[out] LPGUID Guid
);
View the official Windows Driver Kit DDI referenceNo description available.
The IoGetActivityIdIrp routine retrieves the current activity ID associated with an IRP.
Irp [in]The IRP from which to retrieve the activity ID.
Guid [out]A pointer to a location to store the retrieved GUID.
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. |