Skip to content

Latest commit

 

History

History
100 lines (80 loc) · 2.94 KB

nf-wincrypt-certdeletectlfromstore.md

File metadata and controls

100 lines (80 loc) · 2.94 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wincrypt.CertDeleteCTLFromStore
CertDeleteCTLFromStore function (wincrypt.h)
The CertDeleteCTLFromStore function deletes the specified certificate trust list (CTL) context from a certificate store.
CertDeleteCTLFromStore
CertDeleteCTLFromStore function [Security]
_crypto2_certdeletectlfromstore
security.certdeletectlfromstore
wincrypt/CertDeleteCTLFromStore
security\certdeletectlfromstore.htm
security
e24d3445-8929-463a-b771-1f25f4e999b5
12/05/2018
CertDeleteCTLFromStore, CertDeleteCTLFromStore function [Security], _crypto2_certdeletectlfromstore, security.certdeletectlfromstore, wincrypt/CertDeleteCTLFromStore
wincrypt.h
Windows
Windows XP [desktop apps \| UWP apps]
Windows Server 2003 [desktop apps \| UWP apps]
Crypt32.lib
Crypt32.dll
Windows
19H1
CertDeleteCTLFromStore
wincrypt/CertDeleteCTLFromStore
c++
APIRef
kbSyntax
DllExport
Crypt32.dll
CertDeleteCTLFromStore

CertDeleteCTLFromStore function

-description

The CertDeleteCTLFromStore function deletes the specified certificate trust list (CTL) context from a certificate store.

-parameters

-param pCtlContext [in]

A pointer to the CTL_CONTEXT structure to be deleted.

-returns

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. For extended error information, call GetLastError. One possible error code is the following.

Return code Description
E_ACCESSDENIED
The store was opened read-only, and a delete operation is not allowed.

-remarks

All subsequent get or find operations for the CTL in this store fail. However, memory allocated for the CTL is not freed until all duplicated contexts have also been freed.

The pCtlContext parameter is always freed by this function by using CertFreeCTLContext, even for an error.

-see-also

CertFreeCTLContext

Certificate Trust List Functions