hide outgoing call notifications

Hi experts,

How can I hide outgoing call notification? Let me explain it please, when we make a call, screen shows "Dialing..." <number>; I have to hide this screen when dialing call. I will really appreciate if any one can help me following C# or Vb.Net.

Regards,
mukesh39Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mukesh39Author Commented:
Waiting for reply!!!
0
pgnatyukCommented:
The SDK has an example - I posted the link in your previous question.
http://msdn.microsoft.com/en-us/library/bb158662.aspx

And to this CodeProject article:
http://www.codeproject.com/KB/IP/devangpro.aspx

0
mukesh39Author Commented:
No sir,

I need to hide screens that say when we dial number like "Dialing..." on phone and screen which say "Connected" when we are connected.

Please I need help, if u can paste piece of code that can intercept and hide screen.

Thanks
0
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

pgnatyukCommented:
Oh!
I'm afraid I can propose now something else but to look for that window with trivial FindWindow.
Something like:

HWND hwnd = FindWindow(L"Dialog", L"Phone");
ShowWindow(hwnd, SW_HIDE);

Sorry, it is C++ and I really don't know how it will work with the phone application. I've never tried it. It works for a standard application.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pgnatyukCommented:
Small question - if you will hide this window, how the user is supposed to cancel the call?
I do not like Microsoft but in this case I'm going to agree with them - firstly, it is the phone, so it has to function always.
Also you can bring to the top your application and it will cover the phone window - your application receives WM_ACTIVATE when this phone application starts up.

The links I posted allowed to initiate the call without the standard windows phone application.
0
mukesh39Author Commented:
Small question - if you will hide this window, how the user is supposed to cancel the call?
Using application, user can cancel call. I have put code to handle it via our application.

I tried
HWND hwnd = FindWindow(L"Dialog", L"Phone");
ShowWindow(hwnd, SW_HIDE);

and

HWND hwnd = FindWindow(L"Dialog", L"Dialing...");
ShowWindow(hwnd, SW_HIDE);

But itdid not work. I really need help on this issue. Please help me to hide Dialing and connected screen.

Thanks
0
pgnatyukCommented:
I thought that this windows is a dialog and, probably, has "Phone" name. You need to investigate it yourself. You can use Spy, if it will work. You can enumerate windows on your device. You can simply put NULL instead of the first parameter.
0
pgnatyukCommented:
I found an article about your subject:
How to manage incoming call with OpenNetCf TAPI (Windows Mobile C#)
http://programmaremobile.blogspot.com/2009/10/how-to-manage-incoming-call-with.html

Looks interesting.

About the question - you can test on your phone - if when you see this Dial screen you press the Home button on the phone, what happens? So you can emulate the keyboard events to hide this dial window too.

I hope that the ShowWindow(hPhoneWnd, SW_HIDE) will work. You simply need to find this window.

Here is MSDN: http://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.status.systemproperty.aspx

This is TAPI project on CodePlex: http://tapi.codeplex.com/

I attached the code that's supposed to make the phone call.

You can find yourself in MSDN about Microsoft.WindowsMobile.Telephony.
Here you will see how to make the phone call:
http://msdn.microsoft.com/en-us/library/aa446543.aspx




 
#include <phone.h>

void MakePhoneCall(const wchar_t* number)
{
    PHONEMAKECALLINFO call;
    memset(&call, 0x0, sizeof(PHONEMAKECALLINFO));
    call.cbSize = sizeof(PHONEMAKECALLINFO);
    call.dwFlags = PMCF_DEFAULT;
    call.pszDestAddress = number;
    PhoneMakeCall(&call);
}

Open in new window

0
mukesh39Author Commented:
Solution us partial, as I requested c# or vb.net but i is in c++
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Smartphone Programming

From novice to tech pro — start learning today.