enclaveapi.h header

This header is used by System Services and Secure Enclaves. For more information, see:

Note

Using these APIs for a VBS Enclave requires Windows 11 Build 26100.2314 or later or Windows Server 2025 or later.

enclaveapi.h contains the following programming interfaces:

Functions

 
CallEnclave

Calls a function within an enclave.
CreateEnclave

Creates a new uninitialized enclave. An enclave is an isolated region of code and data within the address space for an application. Only code that runs within the enclave can access data within the same enclave.
DeleteEnclave

Deletes the specified enclave.
InitializeEnclave

Initializes an enclave that you created and loaded with data.
IsEnclaveTypeSupported

Retrieves whether the specified type of enclave is supported.
LoadEnclaveData

Loads data into an uninitialized enclave that you created by calling CreateEnclave.
LoadEnclaveImageA

Loads an image and all of its imports into an enclave. (ANSI)
LoadEnclaveImageW

Loads an image and all of its imports into an enclave. (Unicode)
TerminateEnclave

Ends the execution of the threads that are running within an enclave.