ZwXxx / NtXxx Routines
The Zw*Xxx* routines provide a set of system entry points that parallel some of the executive's system services. Calling a Zw*Xxx* routine from kernel-mode code results in a call to the corresponding system service. Calling a Zw*Xxx* routine from user mode is not supported; instead, native applications (applications that bypass the Microsoft Win32 subsystem) should call the Nt*Xxx* equivalent of the Zw*Xxx* routine.
For a list of Nt*Xxx* routines, see NtXxx Routines.
For a call to a Zw*Xxx* routine from a kernel-mode driver, the system does not check the caller's access rights, nor does it set the previous processor mode to UserMode. Before calling a Zw*Xxx* routine, a kernel-mode driver must check all user-supplied parameters for validity.
For more information about the relationship between Nt*Xxx* and Zw*Xxx* routines, see Using Nt and Zw Versions of the Native System Services Routines. For a list of the Zw*Xxx* routines in each major functional category, see Summary of Kernel-Mode Support Routines.
The following routines are reserved for system use. Do not use them in your driver.
ZwCancelTimer. Use KeCancelTimer instead.
ZwSetTimer. Use KeSetTimer instead.
NtRenameTransactionManager is obsolete.
Note NtRenameTransactionManager and TmRenameTransactionManager are two versions of the same routine. Kernel-mode drivers should not call NtRenameTransactionManager. They should instead call TmRenameTransactionManager.