Question : How do i understand if the pda has connected with active sync in desktop

I m using from my pda application a socket connection to community with a desktop application server. I would like to know from  my PDA application when the pda has connect with active sync
to change the the ip address to 169.254.2.2.

I m trying to use WM_NETCONNECT message but while this is working in emulator in my pda does nt work

Answer : How do i understand if the pda has connected with active sync in desktop

I'd suggest to check [HKEY_LOCAL_MACHINE\System\State\Connections\Desktop] , it is set to 1 (Count = 1) when PDA is connected to the desktop

alretnatively, you might try to use gethostbyname() with "ppp_peer" as a host name
Random Solutions  
 
programming4us programming4us