Skip to content

Latest commit

 

History

History
83 lines (63 loc) · 2.81 KB

nc-wincrypt-pfn_cert_create_context_sort_func.md

File metadata and controls

83 lines (63 loc) · 2.81 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
NC:wincrypt.PFN_CERT_CREATE_CONTEXT_SORT_FUNC
PFN_CERT_CREATE_CONTEXT_SORT_FUNC (wincrypt.h)
Called for each sorted context entry when a context is created.
PFN_CERT_CREATE_CONTEXT_SORT_FUNC
PFN_CERT_CREATE_CONTEXT_SORT_FUNC callback
PFN_CERT_CREATE_CONTEXT_SORT_FUNC callback function [Security]
security.pfn_cert_create_context_sort_func
wincrypt/PFN_CERT_CREATE_CONTEXT_SORT_FUNC
security\pfn_cert_create_context_sort_func.htm
security
5ad79970-d076-4e97-bf56-d6aad4b46eaa
12/05/2018
PFN_CERT_CREATE_CONTEXT_SORT_FUNC, PFN_CERT_CREATE_CONTEXT_SORT_FUNC callback, PFN_CERT_CREATE_CONTEXT_SORT_FUNC callback function [Security], security.pfn_cert_create_context_sort_func, wincrypt/PFN_CERT_CREATE_CONTEXT_SORT_FUNC
wincrypt.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Windows
19H1
PFN_CERT_CREATE_CONTEXT_SORT_FUNC
wincrypt/PFN_CERT_CREATE_CONTEXT_SORT_FUNC
c++
APIRef
kbSyntax
UserDefined
Wincrypt.h
PFN_CERT_CREATE_CONTEXT_SORT_FUNC

PFN_CERT_CREATE_CONTEXT_SORT_FUNC callback function

-description

The PFN_CERT_CREATE_CONTEXT_SORT_FUNC callback function is called for each sorted context entry when a context is created. This function pointer is passed in the pfnSort member of the CERT_CREATE_CONTEXT_PARA structure.

-parameters

-param cbTotalEncoded [in]

The total number of bytes of the encoded entries.

-param cbRemainEncoded [in]

The number of bytes remaining to be encoded.

-param cEntry [in]

The current number of sorted entries.

-param pvSort [in, out]

An application-defined value that is passed in the pvSort member of the CERT_CREATE_CONTEXT_PARA structure.

-returns

Return TRUE to continue the sort or FALSE to stop the sort. If FALSE is returned, CertCreateContext will fail and set the last error code to ERROR_CANCELLED.

-see-also

CERT_CREATE_CONTEXT_PARA

CertCreateContext