Expand Minimize

PFN_CERT_CREATE_CONTEXT_SORT_FUNC function pointer

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.

Syntax


typedef BOOL ( WINAPI *PFN_CERT_CREATE_CONTEXT_SORT_FUNC)(
  _In_     DWORD cbTotalEncoded,
  _In_     DWORD cbRemainEncoded,
  _In_     DWORD cEntry,
  _Inout_  void *pvSort
);

Parameters

cbTotalEncoded [in]

The total number of bytes of the encoded entries.

cbRemainEncoded [in]

The number of bytes remaining to be encoded.

cEntry [in]

The current number of sorted entries.

pvSort [in, out]

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

Return value

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.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Wincrypt.h

See also

CERT_CREATE_CONTEXT_PARA
CertCreateContext

 

 

Community Additions

ADD
Show:
© 2014 Microsoft