NtSinglePhaseReject function (wdm.h)
The ZwSinglePhaseReject routine informs KTM that the calling resource manager will not support single-phase commit operations for a specified enlistment.
Syntax
__kernel_entry NTSYSCALLAPI NTSTATUS NtSinglePhaseReject(
[in] HANDLE EnlistmentHandle,
[in, optional] PLARGE_INTEGER TmVirtualClock
);
Parameters
[in] EnlistmentHandle
A handle to an enlistment object that was obtained by a previous call to ZwCreateEnlistment or ZwOpenEnlistment. The handle must have ENLISTMENT_SUBORDINATE_RIGHTS access to the object.
[in, optional] TmVirtualClock
A pointer to a virtual clock value. This parameter is optional and can be NULL.
Return value
ZwSinglePhaseReject returns STATUS_SUCCESS if the operation succeeds. Otherwise, this routine might return one of the following values:
Return code | Description |
---|---|
|
The specified handle is not a handle to an enlistment object. |
|
The object handle is invalid. |
|
The transaction or its enlistment is not in the correct state. |
|
The caller does not have appropriate access to the enlistment object. |
The routine might return other NTSTATUS values.
Remarks
A resource manager can call ZwSinglePhaseReject when it receives a TRANSACTION_NOTIFY_SINGLE_PHASE_COMMIT notification.
For more information about ZwSinglePhaseReject, see Handling Commit Operations.
NtSinglePhaseReject and ZwSinglePhaseReject are two versions of the same Windows Native System Services routine. The NtSinglePhaseReject routine in the Windows kernel is not directly accessible to kernel-mode drivers. However, kernel-mode drivers can access this routine indirectly by calling the ZwSinglePhaseReject 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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later operating system versions. |
Target Platform | Universal |
Header | wdm.h (include Wdm.h, Ntddk.h, Ntifs.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | PASSIVE_LEVEL |
DDI compliance rules | HwStorPortProhibitedDDIs, PowerIrpDDis |
See also
Using Nt and Zw Versions of the Native System Services Routines