Skip to main content
IsEnclaveTypeSupported function

Retrieves whether the specified type of enclave is supported.

Syntax


BOOL WINAPI IsEnclaveTypeSupported(
  _In_ DWORD flEnclaveType
);

Parameters

flEnclaveType [in]

The type of enclave to check.

ValueMeaning
ENCLAVE_TYPE_SGX
0x00000001

An enclave for the Intel Software Guard Extensions (SGX) architecture extension.

ENCLAVE_TYPE_VBS
0x00000010

A virtualization-based security (VBS) enclave.

 

Return value

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.

For a list of common error codes, see System Error Codes. The following error codes also apply for this function.

Return codeDescription
ERROR_NOT_SUPPORTED

An unsupported enclave type was specified.

 

Requirements

Minimum supported client

Windows 10 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2016 [desktop apps | UWP apps]

Header

Enclaveapi.h (include Winbase.h)

Library

Kernel32.lib

DLL

Api-ms-win-core-enclave-l1-1-0.dll;
Kernel32.dll;
KernelBase.dll