Classic Shell development was stopped in December 2017. For now the forum remains online as reference, but is read-only. Registration of new users is disabled.
It is currently Fri Sep 12, 2025 7:20 am

All times are UTC - 8 hours [ DST ]


Forum rules


Before posting a bug report or a feature request, search the forum for an older post on the same topic.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Logon & SystemExit Sound
PostPosted: Mon Aug 19, 2013 12:26 pm 
Offline

Joined: Mon Aug 19, 2013 12:11 pm
Posts: 2
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


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 23, 2013 9:53 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5374
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.

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and helped a little with Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Sat Aug 24, 2013 8:01 am 
Offline

Joined: Mon Aug 19, 2013 12:11 pm
Posts: 2
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. ;)


Top
 Profile  
Reply with quote  
PostPosted: Sat Aug 24, 2013 10:17 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5374
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."

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and helped a little with Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 91 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.