CopyObjects method of the BcdStore class

Copies the objects of the specified type from another store.

Syntax


boolean CopyObjects(
  [in] string SourceStoreFile,
  [in] uint32 Type,
  [in] uint32 Flags
);

Parameters

SourceStoreFile [in]

The full path to the source store. If this parameter is an empty string (""), the method uses the system store.

Type [in]

The type of object to copy. For more information, see the Type property of the BCDObject class.

Flags [in]

This parameter can be set with neither, one, or both of the following values.

ValueMeaning
CreateNewId

Creates a new object identifier. If CreateNewId is not set, the object identifier from the source store is used.

DeleteExistingObject

Deletes the existing object from the target store before copying the object from the source store. If DeleteExistingObject is not set, the existing object is not deleted from the target store.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Namespace

Root\WMI

MOF

Bcd.mof

See also

BcdStore

 

 

Community Additions

ADD
Show: