?
Solved

map network drive via dll

Posted on 2006-10-19
1
Medium Priority
?
330 Views
Last Modified: 2008-02-01
Hi all,

I'm working on a dll and I need to map a network drive.
The problem is that the dll runs under an accout that seems not to have the permissions to map a network disk.

How can I change the dll credentials?
Help pls.
0
Comment
Question by:system_down
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
whatsit2002 earned 2000 total points
ID: 17768592
Perhaps this article will help:
http://www.codeproject.com/useritems/User_Impersonation_in_Ne.asp

You need to impersonate another user to create the map. So, if you use his class to do the impersonation, you would do something like:

ImpersonateUser.Impersonate(..);
...
Do the mapping here
...
ImpersonateUser.Undo()

Thanks.

Jason
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question