CertRemoveStoreFromCollection

[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
);
 

Parameters

hCollectionStore
Handle to the collection certificate store.
hSiblingStore
Handle to the sibling certificate store to be removed from the collection store.

Return Values

Nothing is returned by this function.

Example

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.
 

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in wincrypt.h.
  Import Library: Use crypt32.lib.

See Also

CertAddStoreToCollection, CertOpenStore