Expand Minimize

CertUnregisterPhysicalStore function

The CertUnregisterPhysicalStore function removes a physical store from a specified system store collection. CertUnregisterPhysicalStore can also be used to delete the physical store.

Syntax


BOOL WINAPI CertUnregisterPhysicalStore(
  _In_  const void *pvSystemStore,
  _In_  DWORD dwFlags,
  _In_  LPCWSTR pwszStoreName
);

Parameters

pvSystemStore [in]

A pointer to an identifier of the system store collection from which the physical store is to be removed. It is 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 [in]

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. They can be combined using bitwise-OR operations with high-word values.

ValueMeaning
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 physical store is first removed from the system store collection and is then deleted.

 

pwszStoreName [in]

Null-terminated Unicode string that contains the name of the physical store.

Return value

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE.

Examples

See Example C Program: Listing System and Physical Stores.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wincrypt.h

Library

Crypt32.lib

DLL

Crypt32.dll

See also

CERT_SYSTEM_STORE_RELOCATE_PARA
CertEnumPhysicalStore
CertEnumSystemStore
CertEnumSystemStoreLocation
Certificate Store Functions
CertRegisterPhysicalStore
CertRegisterSystemStore

 

 

Community Additions

ADD
Show:
© 2014 Microsoft