Rediger

Del via


GetVersion method of the Win32_EncryptableVolume class

The GetVersion method of the Win32_EncryptableVolume class returns the FVE metadata version of the volume.

Syntax

uint32 GetVersion(
  [out] uint32 Version
);

Parameters

Version [out]

Type: uint32

An unsigned integer that indicates the metadata version of the volume.

Value Meaning
Unknown
0
The operating system is unknown.
Vista
1
Windows Vista format, meaning that the volume was protected with BitLocker on a computer running Windows Vista.
Win7
2
Windows 7 format, meaning that the volume was protected with BitLocker on a computer running Windows 7 or the metadata format was upgraded by using the UpgradeVolume method.

 

Return value

Type: uint32

This method returns one of the following codes or another error code if it fails.

If the volume is already unlocked and no other errors occur, this method returns zero.

Return code/value Description
S_OK
0 (0x0)
The method succeeded.
E_INVALIDARG
214794287 (0xCCD802F)
The value for the Version parameter is not valid.
ERROR_INVALID_DATA
13 (0xD)
The driver returned an unsupported data format.

 

Remarks

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Windows SDK. They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Requirement Value
Minimum supported client
Windows 7 Enterprise, Windows 7 Ultimate [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Namespace
Root\CIMV2\Security\MicrosoftVolumeEncryption
MOF
Win32_encryptablevolume.mof

See also

Win32_EncryptableVolume