Self-checkout Machines, Portable EKG devices and Windows Audio
So I was about to start using a self-checkout machine in a grocery store when service tech asked me to use the next one over, so he could service the one I was about to use. I obliged and he proceeded to work his magic. After he was done, he rebooted the machine and to my surprise and I saw the familiar Windows XP boot screen. The boot sequence was quiet with no fanfare and no other sounds.
Two days later, I was waiting for test results in the lab at my primary care clinic and noticed a laptop on a cart. The laptop had a USB device plugged into it, with what seemed like a ton of electrodes connected to the other end of the USB device. I went over to investigate and noticed that the laptop was running (you guessed it) Windows XP and the USB device had a label that indicated that it was an EKG device.
These two close encounters with Windows XP showed the versatility of this operating system. I was also left with a new appreciation for one of the topics that I just completed to describe a new feature that that has been added to Widows 7.
A new registry key, PKEY_AudioDevice_NeverSetAsDefaultEndpoint, has been added to Windows 7 to allow you to configure certain devices (like the portable EKG device, for example) so that they can never be selected as default audio devices. Say for example, that a service tech forgets to reverse audio settings he made while servicing the portable EKG device. It would be very unprofessional to boot up this EKG device later on in a hospital room and have to wait a few minutes while Windows XP initialized Media Player and then proceeded to apply the latest skins, in preparation to play music through the beeper in the EKG device!
In Windows 7 and later versions of Windows, this would be a non-issue because if the laptop were running Windows 7, as soon as you rebooted the laptop, it would apply the default settings and undo the previous selection of the EKG device as the default audio device.
The topic with more information about PKEY_AudioDevice_NeverSetAsDefaultEndpoint will be available on MSDN in the next month.
- Eric Doku [MSFT], WDK Programming Writer