TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
steve.sweales
NA
1
0
Impersonation - Is this possible
Jan 4 2005 1:27 PM
I am trying to design a windows forms application (not asp.net) in C#, and need to know if the following scenario is possible : Once my application is running I need to be able to impersonate another user account which will have access to a network drive that the current user account does not have access to. Is it possible to impersonate the required user account and map to the drive in code, enabling the current user to view the required files? I need to do this so that users can only view/alter files from my application. All the files will only be accessible via a user account (which only the admin will know), thus stopping tampering with the files except via the application. Can anybody can tell me if this is possible, and if it is possible some example code would be much appreciated.
Reply
Answers (
2
)
How to get all windows account?
Include System.Data in aspx file