Phone Volume Registry Changes not Showing (sort of) - Windows Mobile Development and Hacking General

I'm writing a program in VS C# to change the volume of the phone..
I've found the two registry entries which identify the phone volume
ControlPanel\SoundCategories\Ring\InitVol
ControlPanel\SoundCategories\RingPreview\InitVol
and when I use Total Commander, it does what I want/expect, however when I use RegistryKey class it does not seem to work.
what I have found, is that If I use total commander to "SEARCH" for InitVol, I find duplicate keys in the same directory
Eg. I see two
HKCU\ControlPanel\SoundCategories\Ring\InitVol
HKCU\ControlPanel\SoundCategories\Ring\InitVol
keys.. but when I go into the directory, I see only one (and when I change it , it changes the volume)
I've double checked the spelling and Caps, but no luck.
it would seem the problem is with the RegistryKey class.
here is a code snippet
--------------------------
RegistryKey registryKey = Registry.CurrentUser;
string SoundKey = @"ControlPanel\SoundCategories\Ring\";
registryKey.SetValue(SoundKey + "InitVol", volume);
registryKey.Flush();
registryKey.Close();
-------------------------
Any Ideas??????????

Try for this:
RegistryKey rKey = Registry.CurrentUser.CreateSubKey ("ControlPanel\\SoundCategories\\Ring");
rKey.SetValue("InitVol", volume);

Related

Changing speaking loudness on the telephone (with TAPI)

I've a question to change the telephone sound volume of the mda II for speaking. For this I found the function phoneSetVolume(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwVolume) of the TAPI.
Now I've the problem that I don't know how to get the handle to the phone (HPHONE).
Can anybody help me?
Thanks!
use phoneOpen
There is still a problem...
Okay, but the function phoneOpen requires also parameters which I don't know where I can get they. For instance the HPHONEAPP. Where can I get the phone application or the deviceID and then the LPPHONE.
I am very thankful to you when you could help me how to get the parameters.
Or is it possible to change the volume of the telephone speaker by changing a registry key? Do you know the key name?
Thanks a lot!
Re: There is still a problem...
phoneInitializeEx gives you PhoneApp and number of phone devices, phoneOpen gives you hPhone, deviceID is probably 0 (test all deviceIDs starting from 0 to the count returned by phoneInitializeEx). Read MSDN for more information.
I don't know the registry key, and modifying it would not change the device volume immediately.
Thanks for your reply!
When I use the function phoneInitializeEx() it returns a value that is negative but not an determined error. Here is my code. Can you say me whats wrong?!
HPHONEAPP lpHPhoneApp;
DWORD lpdwNumDevs;
DWORD lpdwAPIVersion;
PHONEINITIALIZEEXPARAMS lpPhoneInitializeExParams;
long result = phoneInitializeEx(&lpHPhoneApp, NULL, NULL, NULL, &lpdwNumDevs, &lpdwAPIVersion, &lpPhoneInitializeExParams);

Device Lock

Anyone know what this registry entry does?...Was actually looking for a similar today screen lock as on the HTC Wizard and a few other devices.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Today\Items\"Device Lock"
That's what controls the HTC Wizard one - it's in my reg as well (HTC Wizard::Qtek 9100). It looks for "shutil.dll" on here.. does your reg key have any such/further data?
Found the shutil.dll in the windows directory of my Exec and theres only a DWORD data value of 1 named Enabled...no other reference to the .dll file...I quite liked the device lock on the wizard that I had before getting the Exec...wonder if this regitry entry can be changed to get the similar effect on the universals.
One way to find out....
DLL = shutil.dll
Enabled = 1
Flags = 0
Options = 0
Order = 38
Selectability = 1
Type = 4
All the numerics are DWORD decimals
Tried it but nothing appears on the today screen...although after adding the registry entries it does show up in the today settings...once enabled it actually pushes my today screen down a little by a couple of millimeters as if its trying to display something...but nothing actually visible.
curses
what's the size of your shutil.dll looking like? it's 29k here (29,696 bytes)
mine is 5.96kb (6014 bytes) here,
poss down to rom builds.
me missus has a wizard and i want the device lock today aswell, now ive seen it.
In theory you could place the Wizard file in your windows dir, thereby 'overriding' the Universal's ROM one, no?
Also, it's not really all that, imho... it doesn't work happily with the device password function (auto-unlocks if the (accidental) buttonpress is the on/standby button) for example.
DLL = shutil.dll
and
DLL-Name = shutil.dll
it works for me

Restoring the 'Calendar' Today Screen Registry Entry

Hey guys, Ive ran into a little problem.
I was messing around with Memaid, and I accidently deleted the 'Calendar' registry entry for the today screen, which also removed the entry from the Settings>Today>Items menu.
I assume the actual entry is in: HKEY_LOCAL_MACHINE\Software\Microsoft\Today\Items
Would someone be kind enough to look up the entry for me so I could add it back to my registry.
Thanks!
Code:
HKLM\Software\Microsoft\Today\Items\"Calendar"\
HKLM\Software\Microsoft\Today\Items\"Calendar"\Enabled = 1
HKLM\Software\Microsoft\Today\Items\"Calendar"\Flags = 1
HKLM\Software\Microsoft\Today\Items\"Calendar"\Options = 1
HKLM\Software\Microsoft\Today\Items\"Calendar"\Order = 33
HKLM\Software\Microsoft\Today\Items\"Calendar"\Selectability = 1
HKLM\Software\Microsoft\Today\Items\"Calendar"\Type = 1
"Order" will change as you move it around.
Thanks!
I only have experience with PHM, TRE and Total Commander's registry editing, unfortunately. However, they all work more or less the same.
Somewhere in Resco's File Explorer should be a registry editor. See that you get that running first Then navigate to...
Code:
HKLM\Software\Microsoft\Today\Items\
You should have a menu option somewhere where you can choose 'Create' or 'New', followed by 'Key'. Pick that one and you'll probably be asked to give it a name. For the name, choose "Calendar" (with quotes here, though I don't think you need it with the quotes).
That should get you the...
Code:
HKLM\Software\Microsoft\Today\Items\"Calendar"\
key.
Now in the same menu where you could create a Key, you can probably choose to create a "DWORD" or "decimal" value. Pick that one for each of the items I had listed, and give it the appropriate name. E.g. "Enabled". It will likely also ask you for the value you want to give it - enter the numbers above (make sure that if you get an option to either edit in decimal, hexadecimal or binary, that you're using decimal. Doesn't matter for most of these, but for any future registry edits it'd be good to keep in mind to pick the correct one).
That's all there is to it
Alternatively, I believe that Resco can 'import' .reg files, and somebody could toss this in a .reg file for you to import - I don't know what type of .reg file Resco expects, or I'd attach one myself
It's good to know how to work those registry editing things anyway.
Equivalent entries for Mail?
I just installed and removed GoodLink (a corporate email client) on my Treo 700w. It modifies the Today screen and replaces Mail with it's own entry.
However after removing GoodLink I found that my old mail entry on the today screen was not restored. I used the phm registry editor to add this:
Code:
HKLM\Software\Microsoft\Today\Items\"Mail"\
HKLM\Software\Microsoft\Today\Items\"Mail"\Enabled = 1
HKLM\Software\Microsoft\Today\Items\"Mail"\Flags = 0
HKLM\Software\Microsoft\Today\Items\"\Mail"\Options = 0
HKLM\Software\Microsoft\Today\Items\"Mail"\Order = 9
HKLM\Software\Microsoft\Today\Items\"Mail"\Selectability = 1
HKLM\Software\Microsoft\Today\Items\"Mail"\Type = 2
which makes Mail appear in the list of available Today plugins. However if I enable it in the today options nothing appears on the Today screen.
Can someone supply the corect entries or tell me what I might be missing? Thanks.

How To Get A Caps Lock/capital Letter

When i write i wana some software or hack that puts a little icon on the screen to show im in caps lock/capital letter as apopsed to small letter. any one know how to do this?
use registry editor, preferably total commander, and here's the tweak
HKCU\ControlPanel\Keybd
Key: EnableIndicator (dWord)
Value: 1 = enabled
0 = disabled

[QUESTION] HTCColdBoot.exe

Can anyone tell me what "exactly" HTCColdBoot.exe does on a cold boot? Copies files? Runs provxml's? I'm trying to troubleshoot a homescreen layout issue that only occurs after HTCColdBoot.exe runs on my Cavalier.
Thanks in advance.
This is the best explanation I have seen floating around. It is here in one of the threads, but this excerpt is taken from Willem Jan Hengeveld aka Itsme.
this is a description of all the files which are relevant to coldbooting a windows ce device.
databases, filesystem, and registry are initialized by filesys.exe based on the following config files
default.fdf
this is the registry information, as generated by regcomp.exe from the platform builder.
struct header {
DWORD signature; // 0x1d8374b2
DWORD size; // size of entire file
struct entry entry[];
};
struct entry {
WORD entrysize;
WORD entrytype; // 1 = path, 2 = key,value pair
union {
struct pathentry;
struct keyvalentry;
};
};
struct pathentry {
WORD hive; // 0 = HKCR, 1 = HKCU, 2 = HKLM
WORD pathlen; // in nr of wchars
WORD zero; // always 0 !!! this field is not present in wince4.x
WCHAR path[];
};
struct keyvalentry {
WORD valuetype; // 1 = string, 2 = empty, 3 = binary, 4 = dword, 7 = wbinary
WORD keysize; // in nr of wchars
WORD valuesize; // in bytes
WCHAR key[];
BYTE value[];
};
key/path size is including terminating NUL
the key 'Default' is the '@' default key.
initdb.ini
this initializes all databases
initobj.dat
this initializes the filesystem
calibrate + cut-paste tutorial
the program that does this is 'welcome.exe'.
initobj.dat contains a line that links 'welcome.lnk' into the startup folder. causing it to run as soon as the shell starts up.
welcome.exe deletes this link when it is finished
welcome.lnk contains 'MSWELCOME', which refers to the 'HKLM\SOFTWARE\Microsoft\Shell\Rai\:MSWELCOME' key in the registry, which points to "\Windows\Welcome.exe"
other things that welcome.exe does:
ImmDisableIME(0)
InitRichInkDLL
RegisterWindowMessage("SHWMappNotify")
ShowWindow("Taskbar", 0)
make \My Documents\Templates\*.psi, *.psw, *.xlt, *.pxt ro_hidden
for all in Comm\DefaultConnections, set ras some params
do more stuff to device.
pass 'defaultconfig.xml' to configmanager.dll
call method that does something with 'voicemail.lnk'
SHSipPreference(6)
load imgdecmp.dll
fload, coredll:2043
SHSipPreference(2)
ShowWindow(?, 1)
TouchCalibrate
ClockDll ...
run 'clocknot.exe' at later time.
deletelink
oeminfo.xml
contains public keys for HTC, and microsoft
.rgu files
since pocketpc 2003, many registry settings have moved from default.fdf to .rgu files. these files are processed by regupdater.exe, but I have not yet researched how and when exactly.
AutoConfig.exe
AutoConfig is loaded via a 'startup' item set by initobj.dat.
it locates the operator rom data, and presents a list of supported configurations found in the customtab.dat file.
Click to expand...
Click to collapse
GSLEON3 said:
This is the best explanation I have seen floating around. It is here in one of the threads, but this excerpt is taken from Willem Jan Hengeveld aka Itsme.
Click to expand...
Click to collapse
It's too bad that information (while good!) doesn't help him at all as it has nothing to do with htccoldboot.exe.. Notice the HTC in the file name ?
Htccoldboot.exe processes all provxml's among other things. So you assumed right You could try trimming them one by one, until your issue goes away...
NRGZ28 said:
It's too bad that information (while goog!) doesn't help him at all as it has nothing to do with htccoldboot.exe.. Notice the HTC in the file name ?
Htccoldboot.exe processes all provxml's among other things. So you assumed right You could try trimming them one by one, until your issue goes away...
Click to expand...
Click to collapse
Thats what I figured. Thanks. The main issue is that after about 10 minutes of "idle", you go back to the home screen and it's white saying "The layout cannot be loaded". Sometimes the Start menu will work so I can get back into Settings\Home Screen and change it. When I do, it comes back.
Any idea what can be affecting that? Happens with HTC Sliding Panels, regular Sliding Panels, and both CPR's. Also, regardless of what color "scheme" I choose. It's like there is some background service that times it out!?
Any ideas?

Categories

Resources