RtlSetCurrentTransaction - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

// private
/**
 * The RtlSetCurrentTransaction routine associates the specified transaction handle with the calling thread.
 *
 * \param TransactionHandle An optional handle to the transaction to associate with the current thread, or NULL to clear the current transaction.
 * \return `TRUE` if the transaction was set, otherwise `FALSE`.
 * \remarks Gets or sets the calling thread TEB transaction slot; it does not duplicate, close, commit or roll back a handle. The setter rejects INVALID_HANDLE_VALUE and otherwise stores the supplied value, including NULL. Preserve and restore prior thread state around temporary changes.
 */
NTSYSAPI
LOGICAL
NTAPI
RtlSetCurrentTransaction(
    _In_opt_ HANDLE TransactionHandle
    );

#endif

View code on GitHub

NtDoc

No description available.