CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2001
    Location
    Victoria, BC, Canada
    Posts
    363

    Looking for directories in Vista

    Hi,

    Our testing team uncovered a small problem with a service we've developed when running it under Vista.

    The service runs in the system account or whatever it's called, the super user account. Anyhow, it's installed in C:\Program Files\... and in its installation directory is a sub-dir that contains some user-modifiable data. The data is managed using a custom app.

    So the problem as it turns out is anything written to C:\Program Files\... is actually stored in some kind of virtual directory structure and not the real Program Files directory. So when the service starts up, there are no files for it to access!

    How do I make the config app get to the actual C:\Program Files\... instead of the virtual directories?

    Thanks!

  2. #2
    Join Date
    Sep 2001
    Location
    Victoria, BC, Canada
    Posts
    363

    Re: Looking for directories in Vista

    Oh, and I'm just using CreateFile(...) to open the files to read/write the data in the sub-directories, nothing special there.

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