GetPwrDiskSpindownRange function
[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 WINAPI GetPwrDiskSpindownRange( _Out_ PUINT RangeMax, _Out_ PUINT RangeMin );
Parameters
- RangeMax [out]
-
The maximum disk spindown time, in seconds.
- RangeMin [out]
-
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
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also