Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hope someone can help me because i don't know what to do anymore.
We have a little Box running Windows CE 5. Only connections are 2x LAN and 4 Serial -Ports. No screen, no Keyboard.
I need to connect to a network share which contains a file. The content of the file has to be read (no problem with this). To get to the file, i have to supply Network Credentials.
And here is where i'm stuck. I don't know how to provide these.
A simple file copy seems to work, but you have to provide credential. But with no screen, who can check if the dialog popped up. So i need a way to connect to the network share (using .Net Compact Framework 2.0).
I tried WNetAddConnection2 in a normal .net-project, without success(i'm wondering if the appropriate dll is present on this thing). As far as i remember i got the error-code 478.
Also tried the project "Connect to a UNC Path with Credentials" from here but with no luck(already connected and the function doesn't seem to like it).
Any suggestions in the right direction would be appreciated.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900