PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Network folders mapping (hey not games, but cool!)

Hi, I'm a newbie here :)
I've seen main interests in this community are porting and games, which is great!
But my question is not related. Uh, please listen, it's somewhat cool anyway:
-You have a Ethernet/802.11b CF, you have a LAN, and you plan to use your PDA to watch DivX movies or listen MP3 from your PC. Yeah!
-Oh, sorry, it is not possible. You have PPC2000.
-Hey, I have upgraded to PPC2002! It's a new feature!!
-LOL. Poor guy. PPC2002 can browse remote folders, but it cannot map them to local folders. So if you want to listen MP3, you actually have to copy the file to your PDA's memory. Sorry, it's not a lucky day for you!

So what?
This is incredible. I mean, the API is there. It has been there since WinCE 2.0 and people have always been interested in this matter!
Oh yes, the networking part was removed from PocketPC 2000. But it's only 2 DLL's, and theoretically they can be copied to the windows folder and done! (I haven't tried)
And the coding part is eaasy, really eaaaaasy.
Well, I'm a newbie anyway, and I think I've missed something. But right now I have coded it and I'm mapping units and listening my PC MP3 with my ipaq, PPC2002 upgraded.
I haven't tried it in PPC2000 but I will soon.
So I think that after this rather long post (not so good way to debut) the question that remains is:
Why hasn't anyone done it before????

PepeGG
i thought they already had. isnt there that range of explorers like ftp explorer and file explorer which can view remote folders?
spanish, eh? hmm....

*explodes*
You have come to the right place with your question. Here at PM, we do things that haven't been done before. Dan did Quake, Carp is doing an RTS (well at least when he started it hadn't been done before:) ), TechMage is doing a PalmEmu and last but not least, Paul responded to a newbie post without bashing the newbie! INCREDIBLE! Way to go Paul! We love you! :)
Paul you bastard. You actually posted that second thing WHILE I WAS TYPING MINE. :) I take my words back.
*explodes*
haha

Phantom, btw PDAFantast is doing the Palm emu
O I'm sorry. TechMage is doing the Spectrum emu.
LoL, you all completely forgot about the topic XD
I am 99.9% sure you will be able to have that functionality by some third party app, immediatly or eventually...I dunno which.
Well I don't have a wireless LAN thingy, but if I would have had one, I would be quite interested in this guys stuff.
Pepe, are you willing to share some code, or are you going to sell your stuff?
BTW, sorry for going off-topic, but Paul not bashing a newbie was so... funny. :)
Hey Matt, you don't have this functionality anywhere. This is what surprises me. Vieka Net Explorer and PocketLanCe won't map any units for you :(
The Networking API was removed in PPC2000 as I said, and reintroduced in PPC2002. But even so the default Net Explorer in PPC2002 won't map the units for you, and anyone has written the software, yet.
Jacco, I have a beta version working which I can send you if you want, even the code cause I'm not going to sell it.
Also I'm trying to find a way of installing the Networking API in PPC2000 units, in order to provide this functionality to those users too.
I need some help now. I have the binary working, but it needs these dlls:
-network.dll
-redir.dll

These together are the Network API implementation, and are bundled with PPC2002. I need them because they're not bundled with PPC2000 devices and must be installed. But I cannot extract them from my windows directory (they're in ROM and the OS doesn't allow me to). And even if I managed to do it, I would have only ARM binaries.
These dll form part of the standard release of Windows CE 3.0, and I guess they can be obtained from Microsoft in some way. Maybe Platform Manager.
Does anyone know?

Thanks!
maybe that's what you're looking for:

http://support.microsoft.com/support/kb/articles/Q182/7/65.ASP

regards
Stefan
Those are for Windows CE 2.0, that's why there isn't even an ARM version available.  We used those years ago with our HP 320/360s for netbios type access.
Just an indication of how MS has taken some steps in the wrong direction with CE, or at least in the stripping out of functionality for Pocket PC. Just because it doesn't have a keyboard doesn't mean the functionality is not needed.

Dan East
Pepe Iborra · 22 Oct 2001, 13:57 UTC
Hi all!

Thank you all for the help! I have MIPS and SH3 builds ready too and have published it all in a web. This is the link to the english version of the web:
http://www1.pcdemano.com/sections.php?op=viewarticle&artid=51

Please check it! I have included a short explanation on what the applet does, tell me what you think.
I'm finding this hard to believe...i'd be awesme if it really works

Pepe Iborra, did you really get PocketDivx avis to play?

Anyway, on your page you forgot to link the MIPS and SH3 versions. I thought I'd try to download the file netrunner01.mips.CAB from the same location the .arm. file was and all it's there, so you might want to link to it.

Also, more importantly, the CAB file is corrupt. The mips version I d/l would not execute on my E125 and I checked it with WinRAR and it said the archive was corrupt. People at PocketPCThoughts say that the PPC2002 cab is also corrupt.
Pepe, I'm pretty sure I see how you're doing that. At least the API calls you are using. Are you experiencing problems with Pocket PC 2000 devices? Just wondered why only a 2002 version is available.

Dan East
I'm really sorry about the corrupt cab files :(
I only have my ipaq to surf the net, and uploaded the cabs with vxFtp...what a SHIT of a software!
The MIPS and SH3 versions should work, but since I didn't get anyone to test them, I won't put the link until then. It would be totally irresponsible :)
if u want them just ask me, one betatester will be nice :)
Dan, as yon can think, the programming part is way easy. I'm not a skilled programmer at all, in fact this my first Win32 program :)
I do not care sending the sources to anyone who asks.

salu2
Okay, I need the StrongARM version of netbios.dll and redir.dll. Any suggestions?

Dan East
the rom of someone's PocketPC2002 device is probably the only place it is. I've tried different ways to copy a file out of the rom but it won't work. Can you maybe copy it programically, without using any windows functions? for example reading in the file from the rom and then dumping it to another file?

BTW, Pepe sent me the MIPS binary so I can try it on my E125 but it don't work :(  He told me he is going to try and see if there's a bug that might be the cause (It does work on the newer OS though, people have confirmed this).

No, Windows CE implements that security at a very low level. It is not possible to access it from within the Pocket PC OS. You can only use a few API functions to access those ROM components (like LoadLibrary). Perhaps it could be extracted from a binary image, like the one contained in the iPaq ROM uprade...

I wouldn't put it past Microsoft, but I would be very surprised that these dlls are available for every CE platform / version except ARM.

Dan East
Okay, I've obtained the dlls. Pepe, when I attempt to open net it still fails with the no network error. The DLLs are fine - I've tried loading them manually on the device and they are for the ARM platform, and Dependancy Viewer shows the correct exported functions. Which of the Redir registry values do you have to set (besides the default value to 1)? All of them?

Dan East
How did you !
Anyways, Nick and Dan, it's not going to be as easy as I thought.
Dan, you say that when you press connect the dialog pops up? Nick told me that he tried in his MIPS and no dialog popped. Right now I'm lost, as this dialog is produced by a Network API function, not by miself. If it pops up it means the API(the dlls) is there and working.
However, look at what this guy called Dinesh said at PCThoughts forum:
"A mips version will not be possible. Although there is a redirector available for mips based units. The original Pocket PC OS does not support that redirector. It will work with Windows CE 2.0. A CE 2.1 version was created by Foliage Software, the creaters of the iBrowser. Apparently, Microsoft removed all the OS hooks to the redirector in Pocket PC. This was a huge limitation which they fixed in 2002"

Dinesh is the guy who programmed Network MP3 Player, maybe you know. He knows more about this than myself for sure, and this problem probably surpasses my abilities. Even more, I cannot try any of this cause my only Pocket is my iPaq 2002.  
I have contacted Pedro Mateu, from PocketDivX, but we'll probably need more help.
Dan, if you agree, I can send you and Nick the sources, maybe you can do something more. We can keep using this forum as work place, and I'll tell Pedro about it.
What do you think ?

About the redir registry settings, none of them is needed. They're all optional, my app doesn't set them. Only the one which enables the network folder, RegisterFSRoot=1
Check that your PocketPC has a valid network name, it is set in the "about" icon at control panel. I wish we could bring this to work that easily :)
When I say I get a "no network" error, that is as returned from a test application I have written. I have also tried your app, and except for its main window, I get no dialogs or messages (except when checking / unchecking the check box).
This is from the topic entitled "Accessing Remote File Systems" in MSDN:

[sup]Accessing Remote File Systems
Windows CE supports the CIFS redirector for accessing remote file systems and remote printers. The CIFS Protocol is also referred to as the Server Message Block (SMB) Protocol. The redirector’s purpose is twofold: to reestablish a disrupted connection and to handle remote file system requests by packaging them and sending them to the target host for processing. The target host returns results to the computer making the request.

The Windows CE redirector supports connections to Windows–based desktop platforms, or servers compliant with the Windows NT LM 0.12 dialect of the Common Internet File System (CIFS) Specification. Applications access network drives either by way of WNet or a standard file system API with UNC paths.

To use the WNet functions under Windows CE, the redirector DLL, known as Redir.dll, and the NetBIOS DLL, known as Netbios.dll, must be installed in the Windows directory. If these DLLs are not installed, WNet functions return ERROR_NO_NETWORK.

Note   The NetBIOS DLL contains only what is necessary to support the CIFS redirector. Windows CE does not support the NetBIOS interface.[/sup]


Now, I am getting the ERROR_NO_NETWORK error on attempting to enumerate the network, even with the DLLs in place. So either another component is missing, or as has been said, the hook is missing from another library. When I have time I may try rolling out my own redir.dll and netbios.dll, just to have them display a diagnostic message when (if) their functions are called.

Dan East
I emailed Inaki about that OS hook thing that guy said on PPCThoughts and here is his reply:


Nick,
networking has nothing  to do with API hooking.
The way a shared resource is accessed across the network, in Microsoft networks,
is by means of a mechanism called a redirector, which is like a file system but that
actually redirects opens,reads,writes operations to the network. A network redirector
does not hook the system but installs itself as an installable file system, which in place
does not require hooking because it is a standard procedure.
On the other hand, a  network redirector for Microsoft networks, such as to
access shared resources on Windows machines, needs two components to work: a Netbios layer
and a SMB protocol manager. Microsoft did the Netbios part for Pocket PC, there are two DLLs that come with certain models and can be downloaded from MS site, but these pieces are not
integrated with a SMB manager and a redirector, so you cannot see shared resources across the network.

So to achieve what you want you need the Netbios MS DLL, an SMB manager that should write yourself and a file redirector. It is not a trivial task but it is not impossible to do.

However, because PPC2002 comes already with these components I cant see the interest
in working on a project like this.

Regards.
Inaki.
No way to go then. Is it so?
I just think, maybe if we could identify the missing component, we would be able to take it from WinCE 2.0 or 3.0 and insert it in the PocketPC OS.
Maybe someone with Platform Builder can investigate further.
Perhaps Pedro can give it a look.
What a pity! Poor Casio users :(