Skip to main content
DeleteEnclave function

Deletes the specified enclave.

Syntax


BOOL WINAPI DeleteEnclave(
  _In_ LPVOID lpAddress
);

Parameters

lpAddress [in]

The base address of the enclave that you want to delete.

Return value

TRUE if the enclave was deleted successfully; otherwise FALSE. 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_ENCLAVE_NOT_TERMINATED

The execution of threads running with the enclave was not ended, because either TerminateEnclave was not called, or the execution of the threads has not yet ended in response to an earlier call to TerminateEnclave.

 

Requirements

Minimum supported client

Windows 10, version 1709 [desktop apps only]

Minimum supported server

Windows Server 2016 [desktop apps only]

Header

Enclaveapi.h

Library

Vertdll.lib

DLL

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

See also

CreateEnclave