CertUnregisterPhysicalStore function (wincrypt.h)
The CertUnregisterPhysicalStore function removes a physical store from a specified system store collection. CertUnregisterPhysicalStore can also be used to delete the physical store.
BOOL CertUnregisterPhysicalStore( [in] const void *pvSystemStore, [in] DWORD dwFlags, [in] LPCWSTR pwszStoreName );
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.
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.
||The system store is not in its default registry location and pvSystemStore must be a pointer to a CERT_SYSTEM_STORE_RELOCATE_PARA structure.|
||The physical store is first removed from the system store collection and is then deleted.|
Null-terminated Unicode string that contains the name of the physical store.
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|