The CertSerializeCRLStoreElement function serializes a CRL context's encoded CRL and an encoded representation of its properties. The result may be persisted to storage so that the CRL and properties may be retrieved at a later time.
#include <wincrypt.h>
BOOL WINAPI CertSerializeCRLStoreElement(
PCCRL_CONTEXT pCrlContext, // 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.
Note When processing the data returned in the buffer, applications need to use the actual size of the data returned. The actual size may be slightly smaller than the size of the buffer specified on input. (On input, buffer sizes are usually specified large enough to ensure that the largest possible output data will fit in the buffer.) On output, the variable pointed to by this parameter is updated to reflect the actual size of the data copied to the buffer.
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