English 中文(简体)
Spin Down Hard Disk Programmatically onWindows?
原标题:Spin Down Hard Disk Programmatically on Windows?

你们要求怎样做 视窗在方案上铺设硬磁盘? 我是否可以呼吁任何用户使用现场功能(或掩体-mode功能要求或IRP发送),以便做到这一点?

I ve试图实施一项方案,发送。 缩略语ATA ashDBY 直接到硬盘上,但问题是,这种方法没有向系统提供信息,因此,只要系统需要冲动海滩,就会再次打开硬盘。 我怎么告诉我:system? (如果系统确实如此,它就会在数据过于庞大时节省海滩和“充电”数据,而不是用小数量书写。)

(此处的整点是:通过将全系统的平流时间改为第1段,并等待磁盘上下,来做到这一点。) 我需要一个职能,在我使用我的手提电脑时,我可以在某个具体时刻叫我,而不是一个适合95%情况的通用工具。


至今为止:

我有以下感受:PoCallainrIRP_MJ_POWER。 这样做可能是有益的,但我对地圈-地方案拟订经验十分有限(而且几乎是零动力经验),因此我确实没有想法。


Please read:

<>上>

人们似乎一再提到我已经提到的解决办法不起作用。 同我前面说过一样,我已尝试了的“hacky”解决办法,这些解决办法改变时间价值或直接发布指挥权;entireêt<>em>。 我在此问这个问题,这就是说,我所需要的是而不是entire 问题(特别是第2和第3段)之前,请在您的回答中重复我已经说过的话:entire


更多信息:

I ve found this document about Disk Idle Detection to be useful, but my answer isn t in there. It states that the Power Manager sends an IRP to the disk driver (hence why I suspect IRP_MJ_POWER to be useful), but I have no idea how to use the information.

问题回答

我希望这有助于:

http://msdn.microsoft.com/en-us/library/a394173%28VS.85%29.aspx”rel=“noreferer”http://msdn.microsoft.com/en-us/library/a39417328VS.85%29.aspx

Leads to this: http://msdn.microsoft.com/en-us/library/aa394132%28VS.85%29.aspx#properties

Then, you can browse to this: http://msdn.microsoft.com/en-us/library/aa393485(v=VS.85).aspx

这些文件似乎概述了你对我的看法。

P.S. Justtries to help, una t fire the messanger.

While there is no apparent way to do what you re asking for (i.e. tell power management "act as if the timer for spinning down the disk has expired"), there may be a couple ways to simulate it:

  1. FlushFileBuffers(需要提升到开放的/C),然后向驾驶员发出ashDBY指令。

  2. 要求将光盘封顶时间排到第二位,然后在第二版后将其重新提高到原来的数值。 请注意,你可能需要追随以前的价值,而不是立即跳跃。





相关问题
How to read exact number of bytes from a stream (tcp) socket?

In winsock, both the sync recv and the async WSARecv complete as soon as there is data available in a stream socket, regardless of the size specified (which is only the upper limit). This means that ...

AcquireCredentialsHandle returns SEC_E_NO_CREDENTIALS

I created a self-signed certificate (created using OpenSSL) and installed it into the Certificate Store using the Certificates MMC snap-in (CertMgr.msc) on Windows Vista Ultimate. I have managed to ...

Calling Win32 EnumThreadWindows() in C#

I m trying to get a call to EnumThreadWindows working, but I always get a Wrong Parameter-Error, although my code is nearly the same as this example on pinvoke.net. I don t know why this doesn t work: ...

COM Basic links

folks can you provide me the tutorial link or .pdf for learning basic COM?. i do google it.. still i recommend answers of stackoverflow so please pass me.. Thanks

Handling multiple windows WIN32 API

HI I m trying to create an application in the Win32 environment containing more than one window. How do i do that? all the Win32 Tutorials on web i found only showed how to manage one window. How do i ...

Creating a thread in DllMain?

It seems that when a thread is created from within DllMain upon DLL_PROCESS_ATTACH it won t begin until all dll s have been loaded. Since I need to make sure the thread runs before I continue, I get a ...

热门标签