Upravit

Sdílet prostřednictvím


DeleteEnclave function (enclaveapi.h)

Deletes the specified enclave.

Syntax

BOOL DeleteEnclave(
  [in] LPVOID lpAddress
);

Parameters

[in] lpAddress

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 code Description
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

Requirement Value
Minimum supported client Windows 10, version 1709 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header enclaveapi.h
Library onecore.lib
DLL kernel32.dll; Api-ms-win-core-enclave-l1-1-0.dll

See also

Enclave functions

TerminateEnclave

CreateEnclave