By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,680 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,680 IT Pros & Developers. It's quick & easy.

Accessing All Users\Application Data While Under ImpersonateLoggedOnUser

P: n/a
Hello,

In VB.NET, I'm using LogonUser and ImpersonateLoggedOnUser to establish
access to network resources. However, if while logged on I try to write to
access and write to All Users\Application Data (i.e.
CommonApplicationData), access is denied. The special folder path is
acquired using the following:

Environment.GetFolderPath(Environment.SpecialFolde r.CommonApplicationData)

How can I enable my program to work in the CommonApplicationData area while
impersonating a logged on user? Thanks.
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.