Click here to Skip to main content
15,893,487 members
Home / Discussions / Mobile
   

Mobile

 
Questionhow to control flashlight under window mobile 5? Pin
fansy_fs27-Jun-08 6:47
fansy_fs27-Jun-08 6:47 
AnswerRe: how to control flashlight under window mobile 5? Pin
akirilov30-Jun-08 21:15
akirilov30-Jun-08 21:15 
GeneralRe: how to control flashlight under window mobile 5? Pin
fansy_fs1-Jul-08 5:03
fansy_fs1-Jul-08 5:03 
QuestionLocalization resources get corrupted when installed through the cab setup project Pin
kaushik_Manoj25-Jun-08 21:34
kaushik_Manoj25-Jun-08 21:34 
QuestionSetSystemTime Pin
Arun John25-Jun-08 20:57
Arun John25-Jun-08 20:57 
AnswerRe: SetSystemTime Pin
Iain Clarke, Warrior Programmer26-Jun-08 1:08
Iain Clarke, Warrior Programmer26-Jun-08 1:08 
QuestionVirtual Keyboard Entries Pin
RB@Emphasys25-Jun-08 10:50
RB@Emphasys25-Jun-08 10:50 
QuestionRasHangUp Pin
mauro.b25-Jun-08 4:20
mauro.b25-Jun-08 4:20 
Hi all,
I have developed a simple software for a WM5.0 device that makes the
following operations:
- creates a GPRS and VPN connections through the DMProcessConfigXML API.
- opens the VPN connection through the OpenNETCF ConnectionManager.
- launch the TelnetCE software using the System.Diagnostics.Process class e
using the WaitForExit method.
- when the TelnetCE is closed, my software closes all connections through
the ConnectionManager Disconnect method.

Since the connection manager doesn't close all the opened connections, the
software must use the RasHangUp API.

The problem is that the device becomes unusable when the first RasHangUp is
called on the first opened connection (got through the RasEnumConnections
API).
Switching off and switching on the device, the RasHangUp API seems to
continue its work but the system connections are unusable anyway.
Only after a softreset the connections become usable.

If my software launch another application instead of TelnetCE, the problem
doesn't occur.

Can TelnetCE lock the connection even if it is closed?
How can I solve this problem?

Thanks in advance
mauro

PS: My disconnect methods

private static void disconnect()
{
if (_connectionManager != null)
_connectionManager.Disconnect();

_connectionManager = null;

Thread.Sleep(5000);

hangUpExistingConnection();
}

private static void hangUpExistingConnection()
{
int conns = 0;

RASCONN[] ras = new RASCONN[256];

ras.Initialize();
ras[0].dwSize = Marshal.SizeOf(typeof(RASCONN));

int lr = ras[0].dwSize * ras.Length;

int ret = RasEnumConnections(ras, ref lr, ref conns);

for (int i = 0; i < conns; i++)
{
try
{
RasHangUp(ras[i].hrasconn); // Execution stops here.

Thread.Sleep(3000);
}
catch (Exception ex)
{
showErrorMessage(ex); // No errors occured
}
}
}
AnswerRe: RasHangUp Pin
Member 357629418-Dec-08 17:18
Member 357629418-Dec-08 17:18 
QuestionC++: error LNK2001: unresolved external symbol __GSHandlerCheck [modified] Pin
akirilov25-Jun-08 3:50
akirilov25-Jun-08 3:50 
AnswerRe: C++: error LNK2001: unresolved external symbol __GSHandlerCheck Pin
Cedric Moonen25-Jun-08 20:52
Cedric Moonen25-Jun-08 20:52 
GeneralRe: C++: error LNK2001: unresolved external symbol __GSHandlerCheck Pin
akirilov29-Jun-08 20:53
akirilov29-Jun-08 20:53 
Questionfind a resource type Pin
Jim Crafton24-Jun-08 8:54
Jim Crafton24-Jun-08 8:54 
QuestionChecking if a application works with CE Pin
Michael Bookatz23-Jun-08 8:02
Michael Bookatz23-Jun-08 8:02 
AnswerRe: Checking if a application works with CE Pin
Spacix One24-Jun-08 8:43
Spacix One24-Jun-08 8:43 
GeneralRe: Checking if a application works with CE Pin
Michael Bookatz24-Jun-08 23:28
Michael Bookatz24-Jun-08 23:28 
Questionfind the size of download data... Pin
PavanPareta23-Jun-08 2:26
PavanPareta23-Jun-08 2:26 
AnswerRe: find the size of download data... Pin
Arjun Marwaha23-Jun-08 19:26
Arjun Marwaha23-Jun-08 19:26 
Questionfind out Network Connetion Pin
PavanPareta23-Jun-08 1:51
PavanPareta23-Jun-08 1:51 
QuestionBuilding a System.Uri with a query string Pin
Spacix One19-Jun-08 13:04
Spacix One19-Jun-08 13:04 
AnswerRe: Building a System.Uri with a query string Pin
Spacix One23-Jun-08 7:20
Spacix One23-Jun-08 7:20 
Questionauto internet connection Pin
trubarr19-Jun-08 11:05
trubarr19-Jun-08 11:05 
QuestionWinCE Database Pin
iayd19-Jun-08 4:21
iayd19-Jun-08 4:21 
Questionhow to generate a call in PBX Manager & Console Asterisk in windows Pin
waseemakhtar18-Jun-08 23:55
waseemakhtar18-Jun-08 23:55 
Questionwindows mobile 5 with auto keypad program Pin
Newbie_Toy18-Jun-08 18:25
Newbie_Toy18-Jun-08 18:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.