<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>A peek behind the beep</title><link>http://blogs.msdn.com/b/larryosterman/archive/2006/01/24/517183.aspx</link><description>Or rather, a peek behind system sounds.
 Windows 3.1 (I think - it might have been Win95) introduced the concept of "application events" to Windows (I prefer to call them system sounds). 
 But how do these events actually work? It turns out that documentation</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: A peek behind the beep</title><link>http://blogs.msdn.com/b/larryosterman/archive/2006/01/24/517183.aspx#544147</link><pubDate>Mon, 06 Mar 2006 01:39:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:544147</guid><dc:creator>dirk</dc:creator><description>I wanted to register a application event in my registry this weekend and I was wondered. The default value of the .current key has a REG_EXPAND_SZ type on all my systems. If I change a wav file association with the control panel applet the type of the default value was changed to REG_SZ. After that it was impossible for me to play this system sound via PlaySound. I tried this on my Windows XP SP2 32Bit and 64Bit Edition. It's very mystic.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=544147" width="1" height="1"&gt;</description></item><item><title>re: A peek behind the beep</title><link>http://blogs.msdn.com/b/larryosterman/archive/2006/01/24/517183.aspx#517524</link><pubDate>Wed, 25 Jan 2006 22:06:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517524</guid><dc:creator>PatriotB</dc:creator><description>Ah, so that's why the apps are all exe names: to enable PlaySound to look up the events itself.  I've always used GUIDs to identify my individual apps, and manually look up the file names to play myself.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=517524" width="1" height="1"&gt;</description></item><item><title>re: A peek behind the beep</title><link>http://blogs.msdn.com/b/larryosterman/archive/2006/01/24/517183.aspx#517421</link><pubDate>Wed, 25 Jan 2006 18:53:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517421</guid><dc:creator>Larry Osterman [MSFT]</dc:creator><description>Adrian,&lt;br&gt;  That's only a problem if it's a DLL trying to play the sound, it's not if it's an executable.  And for the vast majority of cases for Windows, it's the executable that's playing the sound.&lt;br&gt;&lt;br&gt;  I don't know about you, but I don't have that many collisions in executable names on my machine.&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=517421" width="1" height="1"&gt;</description></item><item><title>re: A peek behind the beep</title><link>http://blogs.msdn.com/b/larryosterman/archive/2006/01/24/517183.aspx#517416</link><pubDate>Wed, 25 Jan 2006 18:39:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517416</guid><dc:creator>Adrian</dc:creator><description>It seems unfortunate that these are keyed by executable name.  That makes collisions pretty likely.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=517416" width="1" height="1"&gt;</description></item><item><title>re: A peek behind the beep</title><link>http://blogs.msdn.com/b/larryosterman/archive/2006/01/24/517183.aspx#517386</link><pubDate>Wed, 25 Jan 2006 17:37:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517386</guid><dc:creator>Larry Osterman [MSFT]</dc:creator><description>Dean, yup.  In Vista, we're planning on adding the DispFileName to the events and deprecating the event labels entirely (it's only needed for MUI).&lt;br&gt;&lt;br&gt;Phylyp, this is why I'm documenting this here (and will be talking to the MSDN people about documenting it better).  Adding an API to manage this is installer-unfriendly, so we need to make the registry stuff clear.&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=517386" width="1" height="1"&gt;</description></item><item><title>re: A peek behind the beep</title><link>http://blogs.msdn.com/b/larryosterman/archive/2006/01/24/517183.aspx#517327</link><pubDate>Wed, 25 Jan 2006 12:56:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517327</guid><dc:creator>Phylyp</dc:creator><description>Larry, &lt;br&gt;It would be good if you guys (i.e. MSFT) could provide one (or more) .REG files that will insert comments into various registry keys.  The comments will have URLs to the appropriate MSDN/KB articles for the keys/values.  &lt;br&gt;&lt;br&gt;IMHO, this would be of use to developers/power users (like me!) who trawl through the registry (in express violation of Raymond Chen's advice).  Cases when there exists an appropriate API to modify the values could be indicated, with the URL to that API's MSDN documentation.  &lt;br&gt;&lt;br&gt;Do you think this encourage devs to use the registry in the right way, or will it merely provide a small safety-net against weird manipulations? &lt;br&gt;&lt;br&gt;~Phylyp &lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=517327" width="1" height="1"&gt;</description></item><item><title>re: A peek behind the beep</title><link>http://blogs.msdn.com/b/larryosterman/archive/2006/01/24/517183.aspx#517325</link><pubDate>Wed, 25 Jan 2006 12:52:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517325</guid><dc:creator>Phylyp</dc:creator><description>Larry, &lt;br&gt;It would be good if you guys (i.e. MS) could prepare a reg file that would automatically insert comments into various registry keys, where the comments provide URLs to MSDN/KB articles, for that developers/power users who trawl through the registry (like me!).  &lt;br&gt;&lt;br&gt;Raymond Chen also blogs a lot about users digging into the registry to read/change settings (instead of using the appropriate APIs): in these cases the comment could be on the lines of &amp;quot;Touch me not&amp;quot;, and a URL to the appropriate API to use.  &lt;br&gt;&lt;br&gt;~Phylyp &lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=517325" width="1" height="1"&gt;</description></item><item><title>re: A peek behind the beep</title><link>http://blogs.msdn.com/b/larryosterman/archive/2006/01/24/517183.aspx#517277</link><pubDate>Wed, 25 Jan 2006 09:17:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517277</guid><dc:creator>Dean Harding</dc:creator><description>So is the only difference between the EventLabels mapping and assigning a default value to the alias key the fact that EventLabels handles the DispFileName stuff?&lt;br&gt;&lt;br&gt;Why make a whole new key to handle that when you could have just as easily added the value to the alias key? Not to mention making it a flat list, meaning you've got to make sure your alias names are unique... just seems like an odd design to me.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=517277" width="1" height="1"&gt;</description></item><item><title>re: A peek behind the beep</title><link>http://blogs.msdn.com/b/larryosterman/archive/2006/01/24/517183.aspx#517270</link><pubDate>Wed, 25 Jan 2006 08:41:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517270</guid><dc:creator>Larry Osterman [MSFT]</dc:creator><description>Actually that was intentional to show an example of an app registration (MSN Messenger).&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=517270" width="1" height="1"&gt;</description></item><item><title>re: A peek behind the beep</title><link>http://blogs.msdn.com/b/larryosterman/archive/2006/01/24/517183.aspx#517205</link><pubDate>Wed, 25 Jan 2006 04:39:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517205</guid><dc:creator>jon</dc:creator><description>Should that MSNMSGR\ key be in there? That would just be sounds for messenger wouldn't it?&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=517205" width="1" height="1"&gt;</description></item></channel></rss>