Prev Previous Post   Next Post Next

WNetAddConnection2W() fails on XPE when netbios is disabled

Posted: 01-19-2009, 05:08 PM
Hello,

I need an answer to this question

Context:
Using windows XP Embedded SP2 Feature Pack 2007.
The XPE Image contains almost all the needed Network components:
"File Sharing"
"TCP/IP Networking with File Sharing and Client for MS Networks"
"Map Network Drives/Network Places Wizard"
"Primitive:MPRUI"

From the XPE installed target, we need to map a network share.

Problem description:
When Netbios is disabled, calling WNetAddConnection2W() from an XPE SP2
machine fails into an error 1231 (ERROR_NETWORK_UNREACHABLE).


Notes:
- The targeted remote share is shared on an XP PRO with netbios enabled
- However, during the call, no network traffic is out going our XPE machine.

Remarks:
- when Netbios is enabled on the XPE system, the call then works correctly
- the same call running on an XP pro machine works good whether Netbios
enabled or not.
- using alternate functions such as "NetUseAdd()" or "NPAddConnection()"
gives the same error

Thanks in advance

Regards,
SNOUSSI Taha


Reply With Quote

Responses to "WNetAddConnection2W() fails on XPE when netbios is disabled"

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
NetBIOS and TCP/IP Will Fleenor Windows XP Configuration & Management 8 06-29-2006 06:30 AM
Cannot browing AD shared folder (NetBios disabled) Eve Windows XP Configuration & Management 0 10-26-2004 05:21 PM
Disabled NetBIOS over TCP/IP Dj Windows XP New Users 2 02-01-2004 02:38 AM
NetBIOS name resolution fails Ondrej Sevecek Windows XP Network & Web 12 11-15-2003 09:42 AM
netbios Jeff Hall Windows XP Embedded 1 08-11-2003 05:49 AM