[This is preliminary documentation and subject to change.]
The CertUnregisterSystemStore function unregisters a specified system store.
#include <wincrypt.h>
BOOL WINAPI CertUnregisterSystemStore(
const void *pvSystemStore, // in
DWORD dwFlags // in
);
The following LOWORD dwFlags are also defined and may be ORed with HIWORD flags.
TRUE if the function succeeded. FALSE if the function failed.
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.
LPCWSTR pwszSystemName=L"TempSystemStore";
DWORD dwFlags=CERT_SYSTEM_STORE_CURRENT_USER;
//
if(CertUnregisterSystemStore(
pwszSystemName,
dwFlags
))
printf("System store %S has been unregistered.\n",pwszSystemName);
else
printf("The system store was not unregistered.\n");
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, CertUnregisterPhysicalStore, CertEnumSystemStoreLocation, CertEnumSystemStore, CertEnumPhysicalStore