GetSuspendCount method of the Win32_EncryptableVolume class

The GetSuspendCount method of the Win32_EncryptableVolume class retrieves the number of reboots before protection will automatically be resumed.

Syntax

uint32 GetSuspendCount(
   uint32 SuspendCount
);

Parameters

SuspendCount

An integer value from 0 to 15.

Return value

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

Return code Description
S_OK
The method was successful.
ERROR_NOT_SUPPORTED
Returned if the volume is not suspended or is not an OS volume.

 

Remarks

This method only applies to the OS volume, and only if it is actually suspended at the time. If the volume is not suspended or is not an OS volume, ERROR_NOT_SUPPORTED will be returned.

Requirements

Requirement Value
Minimum supported client
Windows 8 Enterprise, Windows 8 Pro [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Namespace
Root\CIMV2\Security\MicrosoftVolumeEncryption
Header
Activdbg.h
MOF
Win32_encryptablevolume.mof

See also

Win32_EncryptableVolume