IoSetActivityIdIrp routine
The IoSetActivityIdIrp routine associates an activity ID with an IRP.
Syntax
NTSTATUS IoSetActivityIdIrp( _In_ PIRP Irp, _In_opt_ LPGUID Guid );
Parameters
- Irp [in]
-
The IRP to associate the activity ID with.
- Guid [in, optional]
-
A pointer to the GUID that represents the ID to store in the IRP. If NULL, IoSetActivityIdIrp attempts to retrieve the activity ID from the current thread if it was the thread that originally issued the request.
Return value
IoSetActivityIdIrp returns STATUS_SUCCESS if the call is successful. Possible error return values include the following.
| Return code | Description |
|---|---|
|
No GUID was provided and the ETW activity ID was unavailable. |
|
The I/O tracing provider has not been enabled on the IRP. |
Requirements
|
Version | Available starting with Windows 8. |
|---|---|
|
Header |
|
|
Library |
|
|
IRQL | Any level if a GUID is passed in, otherwise PASSIVE_LEVEL. |
Send comments about this topic to Microsoft
Build date: 5/2/2013
