CertEnumCTLContextProperties

The CertEnumCTLContextProperties function enumerates the properties for the specified CTL context.

#include <wincrypt.h>
DWORD WINAPI CertEnumCTLContextProperties(
  PCCTL_CONTEXT pCtlContext,     // in
  DWORD dwPropId                 // in
);
 

Parameters

pCtlContext
Pointer to the specified CTL context.
dwPropId
To get the first property, set dwPropId to 0. The ID of the first property is returned. To get the next property, set dwPropId to the ID returned by the last call. To enumerate all the properties, continue enumerating them until 0 is returned.

For any given dwPropId returned, an application may call CertGetCTLContextProperty to get that property's data.

Return Values

The return value is described under dwPropId above.

Call GetLastError to see the reason for any failures.

Example

See Example Code for Fundamental Certificate Store Operations.

QuickInfo

  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.