PFN_CRYPT_ENUM_KEYID_PROP callback function (wincrypt.h)

The CRYPT_ENUM_KEYID_PROP callback function is used with the CryptEnumKeyIdentifierProperties function.

Syntax

PFN_CRYPT_ENUM_KEYID_PROP PfnCryptEnumKeyidProp;

BOOL PfnCryptEnumKeyidProp(
  const CRYPT_HASH_BLOB *pKeyIdentifier,
  DWORD dwFlags,
  void *pvReserved,
  void *pvArg,
  DWORD cProp,
  DWORD *rgdwPropId,
  void **rgpvData,
  DWORD *rgcbData
)
{...}

Parameters

pKeyIdentifier

A pointer to a CRYPT_INTEGER_BLOB that contains the key identifier.

dwFlags

Reserved for future use and must be zero.

pvReserved

Reserved for future use. Must be NULL.

pvArg

A pointer to an argument that is passed back from the callback function.

cProp

Count of elements in the array of rgdwPropId

rgdwPropId

A pointer to an array of property identifiers. Each entry in the array will be one of the value types listed for in the table for dwPropId in the CryptSetKeyIdentifierProperty function.

rgpvData

A pointer to an array that contains pointers to pvData elements corresponding the rgdwPropId array elements.

For CERT_KEY_PROV_INFO_PROP_ID the rgpvData element points to a CRYPT_KEY_PROV_INFO structure. For all other properties, the rgpvData element points to an array of bytes.

rgcbData

Array of DWORDs that specify the size, in bytes, of corresponding elements in the rgpvData array.

Return value

Returns TRUE if the function succeeds, FALSE if it fails.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wincrypt.h

See also

CRYPT_INTEGER_BLOB

CRYPT_KEY_PROV_INFO

CryptEnumKeyIdentifierProperties

CryptSetKeyIdentifierProperty