S
steve Sweales
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.
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.