The CertSerializeCTLStoreElement function serializes a CTL context's encoded CTL and an encoded representation of its properties. The result may be persisted to storage so that the CTL and properties may be retrieved at a later time.
#include <wincrypt.h>
BOOL WINAPI CertSerializeCTLStoreElement(
PCCTL_CONTEXT pCtlContext, // in
DWORD dwFlags, // in
BYTE *pbElement, // out
DWORD *pcbElement // in, out
);
This parameter can be NULL to set the size of this information for memory allocation purposes. For more information, see Common In/Out Parameter Conventions.
TRUE if the function succeeded. FALSE if the function failed.
Call GetLastError to see the reason for any failures.
See example code with CertSerializeCertificateStoreElement.
Windows NT: Requires version 4.0 SP3 or later. Available also in IE 3.02 and later.
Windows: Requires Windows 95 OSR2 or later.
Windows CE: Unsupported.
Header: Declared in wincrypt.h.
Import Library: Use crypt32.lib.
CertAddSerializedElementToStore