Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

RasEnumConnections not work with Windows Mobile 5.0

 
   PDA (Home) -> Pocket PC - DevNet RSS
Next:  PocketPC 2003 - Connect to Work versus Connect to..  
Author Message
S. Rajesh

External


Since: Jun 20, 2006
Posts: 3



(Msg. 1) Posted: Tue Jun 20, 2006 5:15 am
Post subject: RasEnumConnections not work with Windows Mobile 5.0
Archived from groups: microsoft>public>pocketpc>developer>networking (more info?)

Hi,

I am using VS2005 VC++ to detect the cradle USB connection, below is my code:

DWORD lpcb;
DWORD lpcConnections;
RASCONN rasconn;
bool _returnvalue = false;
rasconn.dwSize = sizeof(RASCONN);
lpcb = sizeof(RASCONN);
LPRASCONN lp = &rasconn;
DWORD ret = RasEnumConnections(lp, &lpcb, &lpcConnections );

CString _a;
_a.Format(L"ret=%i",ret);
AfxMessageBox(_a);
_a.Format(L" lpc=%i",lpcConnections);
AfxMessageBox(_a);

if ((ret == 0) && (lpcConnections > 0)){
for (int i = 0;i< (int)lpcConnections;i++){
CString _entryname;
_entryname.Format(_T("%s"),rasconn.szEntryName);
if((_entryname.CompareNoCase(_T("`USB"))) == 0)
_returnvalue = true;
lp++;
}
} else {
AfxMessageBox(L"no conn.");
}

This code work with PPC 2003 (ret=0 and lpconnections = 1) but not in WM5
(ret=0 and lpconnections = 0). Can anyone tell me how to detect the USB
cradle connection in WM5 ?

Thank you
Back to top
Login to vote
jwhan

External


Since: Aug 15, 2006
Posts: 1



(Msg. 2) Posted: Tue Aug 15, 2006 8:53 pm
Post subject: Re: RasEnumConnections not work with Windows Mobile 5. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi!

Help for you url....
http://teksoftco.com/forum/viewtopic.php?t=79
Back to top
Login to vote
Display posts from previous:   
Related Topics:
networking in windows mobile 6 - a few questions: can we share the entire hard disk of the windows mobile as we do in a normal windows PC. can we drag and drop files from our pc to mobile and vice versa. can we share a .pst of our desktop PC in Microsoft Office Outlook Mobile so we can....

LSP on Windows Mobile 5.0 Emulator - Hello All, I am working on LSP on Windows Mobile 5.0 Emulator. I have installed Visual Studio 2005 Beta, which has got emulator for Windows Mobile 5.0. I am using LSP sample from Windows CE 5.0 (PB). As per documentation LSP installation code is in..

Windows Mobile 5.0 network driver tools? - Hi, Microsoft has a Windows Mobile 5.0 Developer Evaluation Kit, is it possible to use it for NDIS miniport/IM/protocol driver development. I notice the Windows Mobile 5.0 SDK for Pocket PC only support "ARMV4I", and the "machine type&...

dial up connection on Windows Mobile 5.0 using RasDIal - We are developing a piece of code that can connect to internet using dial up. We are using the microsoft API RasDial to do this. We have deployed the same code on Pocket PC 2003 and it works without any issues. But the same piece of code when built an...

Is an NTP client built into Windows Mobile 5.0? - Is an NTP client built into Windows Mobile 5.0? If not, what is the most popular free NTP client? Is there a free one for commercial use?
       PDA (Home) -> Pocket PC - DevNet All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
 Mac Forums
  PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact