[Q] DeviceNames in Windows Mobile

Search This thread

fs007

Member
May 20, 2009
5
1
Hello guys,

for hours i'm searching for an answer of the following question:

How can i find out the WindowsMobile DeviceName for hardwarespecific devices ?
For example, G-Sensor in an HTC phone usually has the devicename ESC1:
On other phones, the name might be anotherone - how to find out the name ??? (which i need for powermanagement)

Hope of some help !
 

stephj

Inactive Recognized Developer
May 2, 2007
721
101
Lancashire
Iterate through the registry key(s):

\HKEY_LOCAL_MACHINE\Drivers\Active\nn\Name

where nn starts at 01.

Increment nn until you run out of keys.

If the Name subkey is present, (it doesn't have to exist), it contains the device name in the usual XXXn: format.