I have named the device (device ID) as "kdss_d1".
In the database the device ID is saved as :
"006F0050-0063-006B-0065-4850495041513231305F323433333700".
How to get it back as "kdss_d1". I read the help but could not (might have missed) find exact function to do the same. Using Asc(hw.GetDeviceID) returns the device ID as "48".
The last segment of that string is the hex for "HPIPAQ210_24337". See the attached program. If you use this watch out for the zero character (00) at the end of the returned string which may be there as a string terminator.
Since the same application will be used for more than 10 PDAs, so different device name will be there. How to pick out the different “REG_SZ” values ?
Like:
path="HKEY_LOCAL_MACHINE\Ident\Name"
device_ID = reg.GetValue(PATH, REG_SZ)
or like :
device_ID = reg.GetValue(PATH, ®_SZ)
off course I have to initialize like:
Sub App_Start
reg.New1
reg.RootKey(reg.rtLocalMachine)
End sub
The last segment of that string is the hex for "HPIPAQ210_24337". See the attached program. If you use this watch out for the zero character (00) at the end of the returned string which may be there as a string terminator.
If you named the device in "About" that name is in the Registry under HKEY_LOCAL_MACHINE\Ident\Name