Take an incomming call on a smartphone
Hi,
I'm trying to make a program in VB using SmartPhone functions.
For instance, I succed to dial a call with PhoneMakeCall function :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_phone_phonemakecall.asp
I'd like to know if it's possible to take an incomming call, I can't find anything about that on MSDN..
Does someone could say me if it's posible, and how do that.
thanks
[712 byte] By [
jjm] at [2008-1-21]
All you can do is call the raw TAPI API, (lineanswer), but we do not recommend this, because it doesn't play well with the Windows Mobile phone application.
Alternatively, if you know the phone is ringing, you could fake a press of the talk button via keybd_event(VK_TTALK).
- Larry Lieberman [Microsoft]
Mobile Developer Experience Team
I'd like try your solution, but I don't know whitch value to give to "VK_TTALK" constant.
So I've try to use this method to shut the smartphone for example, here is my code :
Declare Sub keybd_event Lib "coredll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlag As Long, ByVal dwExtraInfo As Long)
Const VK_OFF = &HDF
Call keybd_event(VK_OFF, 0, 0, 0)
-
and the program stop because of a "System.NotSupportedException", I think, it would be the same thing with VK_TTALK constant...
Could you please explain me witch value to give to VK_TTALK, and why there is this exception.
Thanks in advance.
regards
jjm at 2007-8-21 >
