GetPwrDiskSpindownRange function (powrprof.h)

[GetPwrDiskSpindownRange is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. See Remarks.]

Retrieves the disk spindown range.

Syntax

BOOLEAN GetPwrDiskSpindownRange(
  [out] PUINT puiMax,
  [out] PUINT puiMin
);

Parameters

[out] puiMax

The maximum disk spindown time, in seconds.

[out] puiMin

The minimum disk spindown time, in seconds.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

Starting with Windows Vista, power management configuration of the system's hard disk drives is controlled through the GUID_DISK_SUBGROUP power settings subgroup. Use the PowerEnumerate function to enumerate individual settings.

For more information on using PowrProf.h, see Power Schemes.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header powrprof.h
Library PowrProf.lib
DLL PowrProf.dll

See also

CallNtPowerInformation

Power Management Functions