Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Development
System Services
Power Management
 GetPwrDiskSpindownRange function
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.]

Applies to: desktop apps only

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

Minimum supported server

Windows Server 2003

Header

PowrProf.h

Library

PowrProf.lib

DLL

PowrProf.dll

See also

Power Management Functions
CallNtPowerInformation

 

 

Send comments about this topic to Microsoft

Build date: 2/7/2012

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker