How to: Simulate the Presence of a Headset, Speakerphone, or Car Kit
The device emulator can simulate speakerphone, headset, and car kit hardware.
Note
For this operation to work, the emulator operating system (OS) image must support device emulator's headset, speakerphone, or car kit hardware emulation. OS image support for these features was introduced in Windows Mobile 6.
Simulating hardware is useful when you are testing applications that receive notification when a headset, speakerphone, or car kit is plugged in or unplugged. For example, an application might automatically silence the onboard microphone and speaker when a headset is plugged in. Your applications can detect the presence of speakerphone, headset, or car kit hardware by using the State and Notifications Broker. For more information, see The State and Notifications Broker Part I.
To plug in or unplug a headset, speakerphone, or car kit
Start the Device Emulator.
For more information, see How to: Start the Device Emulator.
On the Device Emulator File menu, click Configure.
On the Peripherals tab, check or clear Speakerphone, Headset, or Carkit.
Click OK.
If your emulator operating system image supports speakerphone, headset, and/or car kit hardware, the value one or more of the following registry keys will change:
HKEY_LOCAL_MACHINE\System\State\Hardware\Headset
HKEY_LOCAL_MACHINE\System\State\Hardware\Car Kit
HKEY_LOCAL_MACHINE\System\State\Hardware\Speaker
Use the Remote Registry Editor or another registry tool to view the changes.