Compact Framework

Developers that are using Visual Basic or C# can open new topics here.
[CF development]

Moderator: Teksoft

Compact Framework

Postby gabureiru » Sat Nov 22, 2008 2:49 am

Hi

Has anyone knows how to terminate a call when X amount of minutes have passed?


thanks
gabureiru
TEK-Newbie
TEK-Newbie
 
Posts: 1
Joined: Sat Nov 22, 2008 12:31 am

Postby radhoo » Sat Nov 22, 2008 7:57 pm

Have a look at DynTAPI you can easily use it for your task.
radhoo
TEK-Insider
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am

Re: Compact Framework

Postby m_drunk » Sat May 02, 2009 4:13 pm

gabureiru wrote:Hi

Has anyone knows how to terminate a call when X amount of minutes have passed?


thanks


this should do it....just set your timer tick for a second and on 60 ticks:

Edit Note: This is the sig for the dynril library, but I think the sig is the same for DynTAPI

Code: Select all
// #define NETWORK_FLAGS_DROP_ALL         0x0f
        public const int NETWORK_FLAGS_DROP_ALL = 0x0f;
// DWORD NetworkDropCall(DWORD dwFlags);
        [DllImport("DynRILDll.dll")]
        public static extern uint NetworkDropCall(uint dwFlags);
//usage:
NetworkDropCall(NETWORK_FLAGS_DROP_ALL);
m_drunk
TEK-Newbie
TEK-Newbie
 
Posts: 6
Joined: Fri May 01, 2009 3:00 am

Postby Teksoft » Thu Jun 11, 2009 9:33 pm

Indeed, DynTAPI can be used in an identical way.
Best regards,
Teksoft
www.teksoftco.com
Teksoft
Editors
 
Posts: 416
Joined: Wed Dec 10, 2008 10:26 am

Postby m_drunk » Thu Aug 06, 2009 6:40 pm

you know, when I posted this, I didn't know that I'd be using it, and now that I'm trying, with both RIL and TAPI, I'm finding that it only works on some phones, some of the time! Same with the NetworkGetCallState for the offering and outgoing flags. Can anyone offer any help here?
m_drunk
TEK-Newbie
TEK-Newbie
 
Posts: 6
Joined: Fri May 01, 2009 3:00 am


Return to .NET Compact Framework

Who is online

Users browsing this forum: No registered users and 1 guest


cron