xxxxx@gmail.com wrote:
I made some tests with my driver and other drivers like realtek.
If i install my driver on windows and i schedule a hibernate task, the system hibernate with no problem, but if i attach my application(in user mode) to the input device, the windows don?t hibernate. My application attached to the input device with waveInOpen, or Kernel Streaming, or Direct Sound or Direct Show, in all cases the windows don?t hibernate by the fact that my application is connected on the input. There is no need to send a stream to the input for the problem occurs, the mere fact of open the input cause the problem.
The same problem occurs with realtek when my application attach to the realtek microphone.
The same problem occurs with Sound Recorder from Microsoft accessories too.
Did you face a similar problem?
Any ideia how can i solve this problem?
In the registry, go to
HKEY_LOCAL_MACHINE\
SYSTEM\
CurrentControlSet\
Control\
Class\
{4D36E96C-E325-11CE-BFC1-08002BE10318}
That’s the MEDIA class key. One of the subkeys (probably greater than
0023) will be your device. Add a new binary value to that key. Call it
“OkToHibernate”. Set the value to 01. See if that changes anything.
You’ll have to restart your device, or reboot.
If that works, you can put this in your INF file by adding an AddReg
section:
[MyHardware.NT]
…
AddReg = Hibernate.AddReg
[Hibernate.AddReg]
HKR,OkToHibernate,3,01
I would have pointed this out earlier, but I thought this applied only
to Windows 98. However, a quick hex edit on stream.sys shows that the
string “OkToHibernate” is still present in XP.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.