CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2008
    Posts
    18

    Restricting User to Access Text File

    Hello all,
    I am having third party exe for which i don,t have source code which is taking one text file as input. i want create one more win32 application which creates this input file. for third party exe

    My question is how to prevent the user from seeing the contents of the input file. i want my newly created win32 app and third party exe only have full access to the input file. i want to prevent the user from viewing the contents of the file.

    please let me know. how to go about it.

    Thanks in advance.

  2. #2
    Join Date
    Nov 2008
    Location
    England
    Posts
    748

    Re: Restricting User to Access Text File

    Only way I can think of to lock down the file is encryption, however this leaves the problem that the 3rd party app wont understand the encrypted file. Its possible you can use dll injection to allow the 3rd party app to decrypt the file. I'm not sure if it will work as i haven't much experience of dll injection but it might be worth looking into.
    Get Microsoft Visual C++ Express here or CodeBlocks here.
    Get STLFilt here to radically improve error messages when using the STL.
    Get these two can't live without C++ libraries, BOOST here and Loki here.
    Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
    Always use [code] code tags [/code] to make code legible and preserve indentation.
    Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.

  3. #3
    Join Date
    Aug 2008
    Posts
    18

    Re: Restricting User to Access Text File

    do u have any idea on applying security descriptors on text file. so that permission can only be given to the third party exe and my exe to access the file

  4. #4
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: Restricting User to Access Text File

    What does this have to do with multithreading?

  5. #5
    Join Date
    Aug 2008
    Posts
    18

    Re: Restricting User to Access Text File

    ok i will post under vc++ programming....

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured