mapping network drive
WinXPTalk.com Forum Index WinXPTalk.com
Forums for Windows XP users.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winxptalk.com
mapping network drive

 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Embedded System
Author Message
Guest






Posted: Tue Jan 04, 2005 3:45 am    Post subject: mapping network drive Reply with quote

Hi there,

I am using minlogon, with a custom application as the shell. In my app
code, I use an API call to WNetAddConnection2 to map a network drive.
This works fine under XP, but obviously fails under XPe. The host is
pingable.

In addition to minlogon, I am using the Basic TCP/IP Networking macro.
All my other networking code runs fine.

I know that the WNetAddConnection2 routine is in the mpr.dll, which IS
included in my build.

Does anyone know what I could be missing from my build that would keep
this type of functionality from working correctly?
Thanks ahead of time,
~Dylan
Back to top
KM
Guest





Posted: Tue Jan 04, 2005 4:06 am    Post subject: Re: mapping network drive Reply with quote

Dylan,

How about testing the sharing with "net share" command first?

Also, you can add these macro components:
"File Sharing"
"TCP/IP Networking with File Sharing and Client for MS Networks"

and,
"Map Network Drives/Network Places Wizard"
"Primitive:MPRUI"
which you don't necessarily need but they will bring in the necessary dependencies.

Btw, to have some network drives pre-populated you can set up the reg keys under [HKEY_CURRENT_USER\Network] in your build.

--
Regards,
KM, BSquare Corp.


Quote:
Hi there,

I am using minlogon, with a custom application as the shell. In my app
code, I use an API call to WNetAddConnection2 to map a network drive.
This works fine under XP, but obviously fails under XPe. The host is
pingable.

In addition to minlogon, I am using the Basic TCP/IP Networking macro.
All my other networking code runs fine.

I know that the WNetAddConnection2 routine is in the mpr.dll, which IS
included in my build.

Does anyone know what I could be missing from my build that would keep
this type of functionality from working correctly?
Thanks ahead of time,
~Dylan
Back to top
Slobodan Brcin (eMVP)
Guest





Posted: Tue Jan 04, 2005 4:57 am    Post subject: Re: mapping network drive Reply with quote

Dylan,

If you want to skip few steps you can use API function "NetUseAdd"
WNetAddConnection2 is much higher in food chain and at the end it uses NetUseAdd for actual access to redirector driver.

Regards,
Slobodan

"KM" <konstmor@nospam_yahoo.com> wrote in message news:egEY4ge8EHA.3708@TK2MSFTNGP14.phx.gbl...
Quote:
Dylan,

How about testing the sharing with "net share" command first?

Also, you can add these macro components:
"File Sharing"
"TCP/IP Networking with File Sharing and Client for MS Networks"

and,
"Map Network Drives/Network Places Wizard"
"Primitive:MPRUI"
which you don't necessarily need but they will bring in the necessary dependencies.

Btw, to have some network drives pre-populated you can set up the reg keys under [HKEY_CURRENT_USER\Network] in your build.

--
Regards,
KM, BSquare Corp.


Hi there,

I am using minlogon, with a custom application as the shell. In my app
code, I use an API call to WNetAddConnection2 to map a network drive.
This works fine under XP, but obviously fails under XPe. The host is
pingable.

In addition to minlogon, I am using the Basic TCP/IP Networking macro.
All my other networking code runs fine.

I know that the WNetAddConnection2 routine is in the mpr.dll, which IS
included in my build.

Does anyone know what I could be missing from my build that would keep
this type of functionality from working correctly?
Thanks ahead of time,
~Dylan

Back to top
KM
Guest





Posted: Tue Jan 04, 2005 5:18 am    Post subject: Re: mapping network drive Reply with quote

Oh, you are right. NetAPI is the way to go rather than redirecting a local drive to a network resource :-)

--
Regards,
KM, BSquare Corp.


Quote:
Dylan,

If you want to skip few steps you can use API function "NetUseAdd"
WNetAddConnection2 is much higher in food chain and at the end it uses NetUseAdd for actual access to redirector driver.

Regards,
Slobodan

"KM" <konstmor@nospam_yahoo.com> wrote in message news:egEY4ge8EHA.3708@TK2MSFTNGP14.phx.gbl...
Dylan,

How about testing the sharing with "net share" command first?

Also, you can add these macro components:
"File Sharing"
"TCP/IP Networking with File Sharing and Client for MS Networks"

and,
"Map Network Drives/Network Places Wizard"
"Primitive:MPRUI"
which you don't necessarily need but they will bring in the necessary dependencies.

Btw, to have some network drives pre-populated you can set up the reg keys under [HKEY_CURRENT_USER\Network] in your build.

--
Regards,
KM, BSquare Corp.


Hi there,

I am using minlogon, with a custom application as the shell. In my app
code, I use an API call to WNetAddConnection2 to map a network drive.
This works fine under XP, but obviously fails under XPe. The host is
pingable.

In addition to minlogon, I am using the Basic TCP/IP Networking macro.
All my other networking code runs fine.

I know that the WNetAddConnection2 routine is in the mpr.dll, which IS
included in my build.

Does anyone know what I could be missing from my build that would keep
this type of functionality from working correctly?
Thanks ahead of time,
~Dylan
Back to top
Guest






Posted: Tue Jan 04, 2005 5:19 am    Post subject: Re: mapping network drive Reply with quote

Thanks for your help guys. You've saved me a bunch of time.

It works using the first suggested method, but if I can save a little
overhead and bloat by using the NetUseAdd, I will.
Thanks again,
~Dylan
Back to top
 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Office Forums Access Forums Windows Server Exchange Server Help
New Topics Powered by phpBB