#ifndef _NTMMAPI_H
//
// Enclave support
//
#if (PHNT_VERSION >= PHNT_WINDOWS_10)
// rev
/**
* Ends the execution of the threads that are running within an enclave.
*
* \param BaseAddress The base address of the enclave in which to end the execution of the threads.
* \param Flags Additional flags for the termination operation.
* \return NTSTATUS Successful or errant status.
* \see https://learn.microsoft.com/en-us/windows/win32/api/enclaveapi/nf-enclaveapi-terminateenclave
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtTerminateEnclave(
_In_ PVOID BaseAddress,
_In_ ULONG Flags // TERMINATE_ENCLAVE_FLAG_*
);
View code on GitHub#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwTerminateEnclave(
_In_ PVOID BaseAddress,
_In_ ULONG Flags // TERMINATE_ENCLAVE_FLAG_*
);
View code on GitHubNo description available.