How to open a text file only through my application but not others?

  • Thread starter Thread starter Cylix
  • Start date Start date
C

Cylix

In my case, I have a file placed on a file server,
I can set the permission about the folder/file.

How can I let the user can read the file in the application I create
but they cannot direct access the file out of my application?
 
¤ In my case, I have a file placed on a file server,
¤ I can set the permission about the folder/file.
¤
¤ How can I let the user can read the file in the application I create
¤ but they cannot direct access the file out of my application?

See the "Impersonate a Specific User in Code" section located in the following article:

http://support.microsoft.com/kb/306158/


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Cylix said:
In my case, I have a file placed on a file server,
I can set the permission about the folder/file.

How can I let the user can read the file in the application I create
but they cannot direct access the file out of my application?

If you don't want to use access this file as another user from your
program, you could concider crypting the contents. So when the user does
open the file it's rather useless.
 
Back
Top