Classic Shell http://classicshell.net/forum/ |
|
Logon & SystemExit Sound http://classicshell.net/forum/viewtopic.php?f=13&t=1127 |
Page 1 of 1 |
Author: | AL90 [ Mon Aug 19, 2013 12:26 pm ] |
Post subject: | Logon & SystemExit Sound |
Hello, Please do you can add the SystemStart & SystemExit sounds from configured Windows-Theme in Windows 8.x ? Regs: HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\WindowsLogon\.Current HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemExit\.Current Ciao AL90 |
Author: | Gaurav [ Fri Aug 23, 2013 9:53 am ] |
Post subject: | Re: Logon & SystemExit Sound |
The problem is that Microsoft didn't just remove the sounds in Windows 8, they completely removed the sound event themselves for which the sounds play. What I did to get back the sounds was I went to Event Viewer and located the various events that get logged to the System Log such as: Microsoft-Windows-Power-Troubleshooter (Event ID 1) - The event for resume from sleep Microsoft-Windows-WinLogon-Event ID 7001 (Logon) Microsoft-Windows-WinLogon-Event ID 7002 (Logoff) System_User_32 (Event ID 1074) (Exit Windows) Right click them and choose "Attach Task to This Event" and then assign some application in Task Scheduler to play those sounds from %windir%\Media. The events are triggers and the actions is that the sounds are played by some audio app. I also created scheduled tasks this way for User Connect, User Disconnect and User Unlock events in Task Scheduler. Now when my Windows 8 resumes from sleep/hibernation or when it exits, sounds play just like Windows 7. Classic Shell can use the same idea to automate this whole process of creating a scheduled task to play sounds upon these events. Windows has a Task Scheduler API now to create tasks programmatically. |
Author: | AL90 [ Sat Aug 24, 2013 8:01 am ] |
Post subject: | Re: Logon & SystemExit Sound |
GauravK wrote: The problem is that Microsoft didn't just remove the sounds in Windows 8, they completely removed the sound event themselves for which the sounds play. Yes is correct but when I start a *.theme file (from win7 or earlier versions created) the entrys will be apply in the registry. my idea is that classic shell will play these sounds internal. If the sounds are exist the shell can be play the sounds otherwise not. That is it what I mean. ![]() |
Author: | Gaurav [ Sat Aug 24, 2013 10:17 am ] |
Post subject: | Re: Logon & SystemExit Sound |
But if the event themselves which notify the Windows audio service to play the sound are deleted from the process code, nothing can play. I contacted Microsoft regarding this and they replied as follows: "As part of speeding up logon, logoff, shutdown, we experiment a lot with what process is in control of the startup and shutdown sounds. In an interim build of Windows 8 we were able to speed things up considerably by moving the shutdown sound from Explorer.exe (which is running while you’re still logged on) to logonui.exe (which is the thing that shows the “Shutting down” circle.) However moving the shutdown sound this late started running into other problems. The code we use to play the sound (PlaySound) needs to read from the registry (to see what the preferences for this sound were) and from the disk (to read the .wav file), and we ran into issues where the sound was unable to play (or got cutoff halfway) because we had shut down the registry or the disk already! We could have spent time rewriting the API but we decided the safest and most performant thing to do was to eliminate the sound altogether." |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |