Getting a file handle without opening a file.
Hi everyone
I was wondering if anyone knows a way to get the handle to a file without actually opening the file. Basically I need to modify a file without changing the "LastWriteTime" and "LastAccessTime" fields of the Win32_Find_Data structure.
What I'd like to do is save these values, but of course this requires the handle to the file. There's probably a better way to do this without using the Windows API...Does anyone have any ideas?
[472 byte] By [
axle] at [2007-11-20 10:02:12]

# 1 Re: Getting a file handle without opening a file.
The ONLY reason for attempting this type of operation is to write some type of "subterfuge" program (e.g. virus, trojan, etc).
It is the policy of most of us here on dev-archive to not answer such questions unless a legitimate reason can be reasonably demonstrated.
Even then, many will not post on the open forums, since (even if your intentions are honorable) others could mis-use the information.
# 2 Re: Getting a file handle without opening a file.
Well my "legitimate reason", is the intellectual challenge...But I guess everyone here is too close-minded. But it doesn't matter, I got the answer anyways without your help.
axle at 2007-11-10 3:56:15 >
