SetPartitionDeviceElement method of the BcdObject class
Sets the specified partition device element. To specify additional flags, use the SetPartitionDeviceElementWithFlags method.
Syntax
boolean SetPartitionDeviceElement(
[in] uint32 Type,
[in] uint32 DeviceType,
[in] string AdditionalOptions,
[in] string Path
);
Parameters
-
Type [in]
-
The element type. This parameter is one of the Device element types from the following enumerations:
- BcdBootMgrElementTypes
- BcdDeviceObjectElementTypes
- BcdLibraryElementTypes
- BcdMemDiagElementTypes
- BcdOSLoaderElementTypes
It can also be a custom element type created for your own use.
-
DeviceType [in]
-
The device type. This parameter can be one of the following values.
Value Meaning - BootDevice
- 1
Device that initiated the boot. - FileDevice
- 3
File that contains file system metadata and is treated as a device. - PartitionDevice
- 2
Disk partition. - RamdiskDevice
- 4
Ramdisk. - UnknownDevice
- 5
Unknown. -
AdditionalOptions [in]
-
Either a GUID in string form with surrounding braces that represents another object in the store, or the empty string ("").
-
Path [in]
-
The partition path.
Requirements
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Namespace |
Root\WMI |
MOF |
|