Compartilhar via


CertEnumSystemStore (Compact 2013)

3/28/2014

This function retrieves the first or next system store available. Used in a loop, this function can retrieve in sequence all of the system stores available on a computer.

Syntax

BOOL WINAPI CertEnumSystemStore(
  DWORD dwFlags,
  void* pvSystemStoreLocationPara,
  void* pvArg,
  PFN_CERT_ENUM_SYSTEM_STORE pfnEnum
);

Parameters

  • dwFlags
    [in] Specifies the location of the system store. The following flag values are defined:

    CERT_SYSTEM_STORE_CURRENT_USER

    CERT_SYSTEM_STORE_LOCAL_MACHINE

    In addition, CERT_SYSTEM_STORE_RELOCATE_FLAG can be combined using a bitwise OR operation with any of the high-word location flags.

  • pvSystemStoreLocationPara
    [in] Optional. If CERT_SYSTEM_STORE_RELOCATE_FLAG is set in the dwFlags parameter, pvSystemStoreLocationPara points to a CERT_SYSTEM_STORE_RELOCATE_PARA structure that indicates both the name and the location of the system store. Otherwise, pvSystemStoreLocationPara is a pointer to a Unicode string that names the system store.
  • pvArg
    [in] Pointer to a void allowing the application to declare, define, and initialize a structure to hold any information to be passed to the callback enumeration function.
  • pfnEnum
    [in] Pointer to the application-defined callback function used to show the details for each system store. This callback function determines the content and format for the presentation of information on each system store. For details about the callback function, see PFN_CERT_ENUM_SYSTEM_STORE.

Remarks

The desktop operating system supports the following dwFlags that Windows Embedded Compact does not support:

CERT_SYSTEM_STORE_CURRENT_SERVICE

CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY

CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY

CERT_SYSTEM_STORE_SERVICES

CERT_SYSTEM_STORE_USERS

CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE

Requirements

Header

wincrypt.h

Library

crypt32.lib

See Also

Reference

Certificates Functions
CertEnumSystemStoreLocation
CERT_SYSTEM_STORE_RELOCATE_PARA