[This is preliminary documentation and subject to change.]
The CertEnumPhysicalStore function enumerates the physical stores for a specified system store.
#include <wincrypt.h>
BOOL WINAPI CertEnumPhysicalStore(
const void pvSystemStore, // in
DWORD dwFlags, // in
void *pvArg, // in
PFN_CERT_ENUM_PHYSICAL_STORE pfnEnum // in
);
In addition CERT_SYSTEM_STORE_RELOCATE_FLAG may be ORed with any of the HIWORD location flags.
BOOL WINAPI CertEnumPhysicalStoreCallback(
const void *pvSystemStore, // in
DWORD dwFlags, // in
PCERT_SYSTEM_STORE_INFO pStoreInfo, // in
void *pvReserved, // in, optional
void *pvArg // in, optional
);
The pvArg passed to the callback function is the pvArg pointer passed to CertEnumPhysicalStore.
The function returns TRUE if another physical store was found. If another physical store was not found, it returns FALSE.
If the system store location only supports system stores and does not support physical stores, the function returns FALSE and GetLastError returns ERROR_NOT_SUPPORTED.
To use CertEnumPhysicalStore, an application must declare and define the ENUM_ARG data structure and an enumeration callback function.
To access a remote store, the Security Permissions in the registry keys on that remote computer must be set to allow access. For more information on setting Security Permissions in an NT registry, see MDSN Article ID Q155363. For information on what to do to enable remote administration on a Win95 registry.
See Example Code for Listing System and Physical Stores.
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in wincrypt.h.
Import Library: Use crypt32.lib.
CertRegisterSystemStore, CertRegisterPhysicalStore, CertUnregisterSystemStore, CertUnregisterPhysicalStore, CertEnumSystemStoreLocation, CertEnumSystemStore