CertUnregisterSystemStore function

The CertUnregisterSystemStore function unregisters a specified system store.

Syntax

BOOL CertUnregisterSystemStore(
  const void *pvSystemStore,
  DWORD      dwFlags
);

Parameters

pvSystemStore

Identifies the system store to be unregistered. It points either to a null-terminated Unicode string or to a CERT_SYSTEM_STORE_RELOCATE_PARA structure. For information about using the structure and on appending a ServiceName or ComputerName to the end of the system store name string, see CertRegisterSystemStore.

dwFlags

The high word of the dwFlags parameter specifies the location of the system store. For information about defined high-word flags and on appending ServiceName, UserNames, and ComputerNames to the end of the system store name, see CertRegisterSystemStore.

The following low-word values are also defined and can be combined with high-word values using a bitwise-OR operation.

Value Meaning
CERT_SYSTEM_STORE_RELOCATE_FLAG
The system store is not in its default registry location and pvSystemStore must be a pointer to a CERT_SYSTEM_STORE_RELOCATE_PARA structure.
CERT_STORE_DELETE_FLAG
The system store is deleted after it has been unregistered.

Return Value

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE.

Requirements

   
Windows version Windows XP [desktop apps only] Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wincrypt.h
Library Crypt32.lib
DLL Crypt32.dll

See Also

CERT_SYSTEM_STORE_RELOCATE_PARA

CertEnumPhysicalStore

CertEnumSystemStore

CertEnumSystemStoreLocation

CertRegisterPhysicalStore

CertRegisterSystemStore

CertUnregisterPhysicalStore

Certificate Store Functions