CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  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.

    And Also please let me know how to apply security descriptors on a text file that only my exe and third party exe have access to that file. solution to this also serve my purpose.

    Thanks in advance.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,607

    Re: Restricting User to Access Text File

    You might make it piping instead of using a file.
    Best regards,
    Igor

  3. #3
    Join Date
    Mar 2003
    Location
    India {Mumbai};
    Posts
    3,871

    Re: Restricting User to Access Text File

    Other than pipes, you may also use one of these IPC Primitives
    My latest article: Explicating the new C++ standard (C++0x)

    Do rate the posts you find useful.

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