[This is preliminary documentation and subject to change.]
The CertRemoveStoreFromCollection function removes a sibling certificate store from a collection store.
#include <wincrypt.h>
void WINAPI CertRemoveStoreFromCollection(
HCERTSTORE hCollectionStore, // in
HCERTSTORE hSiblingStore, // in
);
Nothing is returned by this function.
HCERTSTORE hCollectionStore;
HCERTSTORE hSiblingStore;
// See the example with CertAddStoreToCollection for code that
// opens a collection store and a store that is added to
// the collection store as a sibling store. Assume that code was
// used and that hSiblingStore is a member of the collection
// store hCollectionStore.
CertRemoveStoreFromCollection(
hCollectionStore, // Handle for the collection store.
hSiblingStore // Handle for the store to be
// removed from the collection store
);
// This function has no return value that can be checked.
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in wincrypt.h.
Import Library: Use crypt32.lib.
CertAddStoreToCollection, CertOpenStore