View Full Version : get authority over cprog.exe
ambush276
11th October 2009, 12:00 AM
ok i need some help getting authority over the Cprog.exe...
i have an app and i was wondering basically it looks at an inocming call..
basically "SystemState(SystemProperty.PhoneCallTalking)" it reads that and if it says yes it preforms commands. The commands are to pickup the handset etc... The problem i have is that cprog.exe kicks in and the phone rings, vibrates, and gives a popup of the incoming call when i jsut want the call to automatically be answered if its incoming state. So basically im looking for a reg edit so that when that state is satified it poitns to my app first before cprog.exe so that when people are running my app they dont have to hear a ringer or popup message, the active call gets directly answered?
i dont know how to program in TAPI, so is there a tapi code i can copy and paste maybe in my public partial class or public namespace a tapi code that wil satisify this. Basically allowing this program to be above cprog.exe. Or... ot have cprog.exe killed when my program is running..
Thanks!
anyway thanks!
ambush276
11th October 2009, 01:38 AM
is there a reg edit i can do on my install or something i can put in my code???
thanks!
ambush276
11th October 2009, 04:48 AM
bump? it up
dharvey4651
11th October 2009, 06:13 AM
If all you want is for the phone to be automatically answered, then it is actually a lot easier than you might think, even without a 3rd party application.
Just open the phone canvas, click the menu soft-key and click options. Move over to the "More" tab and just adjust the settings however you like.
If this does not satisfy what you were looking to do then I have no other suggestions.
In any case, good luck!! :)
ambush276
11th October 2009, 07:24 AM
lol... no no.. that is not what im talking about ...
i have a program i have created.. i want when its running that if an incoming call comes in for it to intercept that data (incoming call) before cprog.exe so that it will not ring or notifiy of the call and instead just auto answer it.. (When my program is running)
its a TAPI thing or reg edit.. im not sure>????
dwizzy130
11th October 2009, 07:54 AM
If you want your program to run instead of cprog, name your program's exe cprog.exe, make it into a cab and have the cab install it to the Windows directory.
You can see a demonstration with the cab I just made. It installs a text file renamed to cprog.exe that runs it instead of the real one. Install it, soft reset. Test it and then uninstall it and then all will be normal again.
The only problem with this method is that your app would be there in place of cprog all the time and so it would always run..
dwizzy130
ambush276
11th October 2009, 08:11 AM
hmm... that is interesting..
i wonder if there is a way to make cprog.exe a text file. So basically it will point to cprog.exe (the real one in some other directory) as normal, and then when my app is run, it poitns to mine..
so basically point to my app 1 (only if active)
and then point to cprog.exe if not?
is that possible?
thanks!
ambush276
11th October 2009, 08:16 AM
i tried to run your cab and it says i do not have the permissions?
dwizzy130
11th October 2009, 08:19 AM
hmm... that is interesting..
i wonder if there is a way to make cprog.exe a text file. So basically it will point to cprog.exe (the real one in some other directory) as normal, and then when my app is run, it poitns to mine..
so basically point to my app 1 (only if active)
and then point to cprog.exe if not?
is that possible?
thanks!
I believe that actually might be possible (or something close) using Mortscript. Now I have no idea how to use mortscript but it's easy to learn and use. And it can do most anything you can think of.
About my cab, you may have to install SDKcerts first. What ROM are you running?
dwizzy130
ambush276
11th October 2009, 05:30 PM
some htc touch sprint gsp rom?
DCD rom i think..;.
but beyond that just in general i want to implement this into my program.. so that it will install this cab with that file etc..... the question is how.. because i iwll be giving this cab and program to the forum as well as friends... aka it has to be workable and certified etc... easy to use basically.
dwizzy130
11th October 2009, 08:15 PM
some htc touch sprint gsp rom?
DCD rom i think..;.
but beyond that just in general i want to implement this into my program.. so that it will install this cab with that file etc..... the question is how.. because i iwll be giving this cab and program to the forum as well as friends... aka it has to be workable and certified etc... easy to use basically.
If you send me your exe, I can see about signing it so it won't need anything else...
dwizzy130
ambush276
11th October 2009, 11:39 PM
yea but the problem is... basically... i dont have a cab or instructions for that part yet. I hvae hte first part down.. What i now need is to basically use phone functions without cprog.exe...
(tapi)...
but here is the issue.... i dont know how to make a file so that in HKLM/System/State/Phone ActiveCallCount =1, so that it points to my program before cprog.exe (so that it does not ring etc...) how do i edit that ???? so that it points to my device before...?
ramdroid77
14th October 2009, 09:29 AM
I doubt it's so easy with a simple registry key so I guess you have to try and load a hooking DLL into the cprog.exe process (or probably hook into some DLL which is loaded by cprog.exe) and intercept the needed functions... This is tough shit. Happy hard reseting times! ;)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.