#ifndef _NTKEAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
NTSYSCALLAPI
NTSTATUS
NTAPI
NtYieldExecution(
VOID
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwYieldExecution(
VOID
);
View code on GitHub
This function stop executing of calling thread, and switch to any other currently running thread.