The ZwRecoverResourceManager routine tries to recover the transaction that is associated with each enlistment of a specified resource manager object.
__kernel_entry NTSYSCALLAPI NTSTATUS NtRecoverResourceManager( HANDLE ResourceManagerHandle );
ZwRecoverResourceManager returns STATUS_SUCCESS if the operation succeeds. Otherwise, this routine might return one of the following values:
||The specified handle is not a handle to a resource manager object.|
||An object handle is invalid.|
||The transaction manager that is associated with the specified resource manager is not available.|
||The caller does not have appropriate access to the resource manager object.|
The routine might return other NTSTATUS values.
When a resource manager calls ZwRecoverResourceManager, KTM sends a TRANSACTION_NOTIFY_RECOVER notification to the resource manager for each of the resource manager's enlistments. (If the enlistment is a superior enlistment, KTM sends TRANSACTION_NOTIFY_RECOVER_QUERY instead of TRANSACTION_NOTIFY_RECOVER.)
The final notification that KTM sends to the resource manager is TRANSACTION_NOTIFY_LAST_RECOVER.
For more information about ZwRecoverResourceManager, see Handling Recovery Operations.
NtRecoverResourceManager and ZwRecoverResourceManager are two versions of the same Windows Native System Services routine.
For calls from kernel-mode drivers, the NtXxx and ZwXxx versions of a Windows Native System Services routine can behave differently in the way that they handle and interpret input parameters. For more information about the relationship between the NtXxx and ZwXxx versions of a routine, see Using Nt and Zw Versions of the Native System Services Routines.
|Minimum supported client||Available in Windows Vista and later operating system versions.|
|Header||wdm.h (include Wdm.h, Ntifs.h)|
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.