Delen via


BcdObject class

Represents a BCD object that contains a collection of BCD elements. Each BCD object is identified by a GUID.

Syntax

class BcdObject
{
  string StoreFilePath;
  string Id;
  uint32 Type;
};

Members

The BcdObject class has these types of members:

Methods

The BcdObject class has these methods.

Method Description
DeleteElement Deletes the specified element.
EnumerateElements Enumerates the elements in the object.
EnumerateElementTypes Enumerates the types of elements in the object.
GetElement Gets the specified element.
GetElementWithFlags Enumerates a qualified boot partition.
SetBooleanElement Sets the specified Boolean element.
SetDeviceElement Sets the specified device element.
SetFileDeviceElement Sets the specified file device element.
SetIntegerElement Sets the specified integer element.
SetIntegerListElement Sets the specified integer list element.
SetObjectElement Sets the specified object element.
SetObjectListElement Sets the specified object list element.
SetPartitionDeviceElement Sets the specified partition device element.
SetPartitionDeviceElementWithFlags Sets the specified partition device element with additional flags.
SetQualifiedPartitionDeviceElement Sets the specified qualified partition device element.
SetStringElement Sets the specified string element.
SetVhdDeviceElement Sets the specified virtual hard disk (VHD) device element.

Properties

The BcdObject class has these properties.

Id

Data type: string

Access type: Read-only

Qualifiers: Key

The GUID of this object, unique to this store, in string form.

StoreFilePath

Data type: string

Access type: Read-only

Qualifiers: Key

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

Type

Data type: uint32

Access type: Read-only

The object type. The upper 4 bits represent the object type. The meaning of the lower 28 bits varies with object type.

  • BCD_OBJECT_TYPE_APPLICATION (0x1rtaaaaa) is an object type for a boot environment application, functional usage of the application and the image type. The next four bits (24-27) are reserved, and the following four bits (20-23) specify the type of image (0x1=Firmware, 0x2=Boot, 0x3=Legacy Loader, 0x4=Real Mode code). The lowest 20 bits define the application type (0x1=Firmware boot manager, 0x2=Windows boot manager, 0x3=Windows boot loader, 0x4=Windows resume application, 0x5=Memory tester, 0x6=Legacy NtLdr, 0x7=Legacy SetupLdr, 0x8=Boot sector, 0x9=Startup module, 0xa=Generic application.)
  • BCD_OBJECT_TYPE_INHERITED (0x2nnnnnnn) describes a set of data elements which can be inherited from a BCD object for a boot application or from another inheritable object.

Remarks

To retrieve an object instance, use one of the following static methods of the BcdStore class: CreateStore, OpenStore, or ImportStore.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Namespace
Root\WMI
MOF
Bcd.mof