Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Vista - same file name, different file contents

Vista - same file name, different file contents

Vista - same file name, different file contents

Recently I was forced to switch to Windows Vista and am experiencing strange behavior of the file system. In some mystical way there are files, which contents are different when opening them from different programs or different user accounts. Even deleted files sometimes could be opened so far like they were still on the disk. It seems also like the system allows for restricted user to have a "virtual local copy" of protected system files, write them with different data, while admin sees the same file but with original contents. The same effect appeared also with HKEY_LOCAL_MACHINE registry keys - they could be written by restricted user (!!!), but the changes are invisible for administrator. What's the heck - errors, new sophisticated Windows features, viruses? Thank you.

RE: Vista - same file name, different file contents

Couldn't be there some additional Vista-related flags for CreateFile() API function? For instance, earlier versions of Total Commander have such fault, where the newest version 7.02a allready works correctly. I'm passing following flags to CreateFile():


my_file=CreateFile("my_file.txt", GENERIC_WRITE, FILE_SHARE_WRITE, 0, CREATE_ALWAYS, 0, 0);

RE: Vista - same file name, different file contents

Well, now I know it - it's a brand new MS invention - Virtual Storage. They proclaim they have some new API to swich the stuff off, or at least to enter desired files/keys to non-virtuable lists. I'm on the way now, but may be somebody has already heard something about it ant hint me where to start searching?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close