Share via


GetElementWithFlags method of the BcdObject class

Gets the specified element. This method can be used to enumerate a qualified partition.

Syntax

boolean GetElementWithFlags(
  [in]  ULONG      Type,
  [in]  ULONG      Flags,
  [out] BcdElement Element
);

Parameters

Type [in]

The element type. This parameter is one of the values from the following enumerations:

It can also be a custom element type created for your own use.

Flags [in]

This parameter can be zero or the following value.

Value Meaning
Qualified
1
If this parameter is set and the element is on a partition, the method retrieves the specified element as a BcdDeviceQualifiedPartitionData element. If the element is not on a partition, this parameter is ignored.

If the Flags parameter is zero, this method retrieves the specified element as a BcdDevicePartitionData element or, if the disk is not present, as a BcdDeviceUnknownData element.

Element [out]

If the method succeeds, this parameter is set to the specified element.

Requirements

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

See also

BcdObject