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

NDISUIO ReadFile fails with unknown error code

 
   PDA (Home) -> Pocket PC - DevNet RSS
Next:  HOW TO : multiple PDA's on wireless LAN?  
Author Message
tmeese

External


Since: Oct 10, 2005
Posts: 1



(Msg. 1) Posted: Mon Oct 10, 2005 7:31 pm
Post subject: NDISUIO ReadFile fails with unknown error code
Archived from groups: microsoft>public>pocketpc>developer>networking (more info?)

Hello all,


I've got an NDISUIO application running under CE 5.0. I've gotten most
of the preliminaries straightened out, including disabling WZC, so that
I can bind a device to NDISUIO, which I believe is the pre-requisite
for reading and writing. I'm able to get/set OIDs just fine. I've
followed the advice of an earlier poster and setup the
OID_GEN_CURRENT_PACKET_FILTER to (NDIS_PACKET_TYPE_DIRECTED |
NDIS_PACKET_TYPE_BROADCAST). This succeeds. None of the NDISUIO related
calls return an error.


I've spun off a separate thread because I believe ReadFile is a
blocking operation if no data is available. Here is the ReadFile()
invocation...

result = ReadFile(hNdisuio,
(LPVOID)rxBuf,(DWORD)sizeof(rxBuf),(LPDWORD)&bytesRead, NULL);
if (result == (BOOL)0)
error = GetLastError();
else {
// do something useful...


It returns 0 with an error code of 0x48f (1167), which I can't seen to
find in the Microsoft CE 4.2 documentation:

1157 One of the library files needed to run this application cannot be
found. ERROR_DLL_NOT_FOUND
[???]
1200 The specified device name is invalid. ERROR_BAD_DEVICE

Could someone who has gotten ReadFile to work with NDISUIO please give
me a hand with this?

Thanks very much,

Tim Meese
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to get other bss information from ndisuio? - I meet a tricky problem to get the multiple AP's information detected by local 802.11 NIC. When I prase the data which is returned from kernel, only the information of first AP is correct. I miss the address of other AP. The data sturctures defined in...

RasDial fails after incoming call - Hello, I've developped a small DLL which allow to connect (RasDial) and disconnect (RasHangUp) a GPRS connection on Pocket PC. It works fine except when a incoming phone call happens. The RasDial and RasHangUp functions doesn't work anymore. When I try....

HTTPD Web Server Fails to start - Hi, I installed the webserver from the Windows Mobile 5.0 Developer Resource Kit on my Verizon XV6700 pda/phone, and it installed, everything looks right both in the registry and the filesystem, but the webserver will not start. I did a soft-reset and..

Error in GPRS Modem - Hi, I am deloping on Windows CE 4.2 (on Logic-instrument tPad) using AudioVox RTM 8000 CF GPRS Modem. >From time to time (average 10 minutes) I get HW errors from the modem (the RasGetLinkStatistics returns dwHardwareOverrunErr > 0) and after tha...

win socket error 10050 - Hi, Sir I have tested bluetooth sample(\Windows CE Tools\wce420\POCKET PC 2003\Samples\Win32\Bluetooth\btsearch) on my iPAQ6300 series device. When application call WSALookupServiceNext() It gives me 10050 error everytime. I have checked the error,....
       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