Is there a way to get a list of files recently saved by the user using any programs in Windows?
A list of files recently saved by the user
Started by kakarukeys, May 27 2009 05:52 AM
11 replies to this topic
#1
Posted 27 May 2009 - 05:52 AM
|
|
|
#2
Posted 28 May 2009 - 06:41 PM
In the registry, look under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs.
#3
Posted 29 May 2009 - 03:34 AM
that is a list of documents recently opened, not documents recently saved.
#4
Guest_Jordan_*
Posted 29 May 2009 - 04:13 AM
Guest_Jordan_*
I don't know of any pre-made list but you could scan the computer and look at each files modified date. This wouldn't be a short process.
#5
Posted 29 May 2009 - 04:37 AM
It does not work too.
Some files could be created/modified by windows, especially during installation of new programs, etc.
Thank you for the replies so far.
This problem is hard, I see no windows API could provide the function.
Some files could be created/modified by windows, especially during installation of new programs, etc.
Thank you for the replies so far.
This problem is hard, I see no windows API could provide the function.
#6
Posted 29 May 2009 - 09:43 PM
So what kinds of files are you mainly looking for, exactly? System files, or user files?
#7
Posted 30 May 2009 - 01:05 AM
user files, all files saved by the user in any programs in the last 3 days.
#8
Posted 30 May 2009 - 01:33 AM
I think you'd have to do a search for that, like Jordan suggested, but limit it to places where users typically save files like in C:\Documents and Settings (or C:\Users on Vista)
#9
Posted 30 May 2009 - 08:04 AM
thinking the same thing, it is an "approximation" to the real solution.
if the real solution could not be found, I am prepared to use the "approximation".
I am thinking, when a user is saving a file, there should be a file handle being used.
win32 api does provide a function to extract info from a file handle, the question is,
how do I get the list of file handles?
if the real solution could not be found, I am prepared to use the "approximation".
I am thinking, when a user is saving a file, there should be a file handle being used.
win32 api does provide a function to extract info from a file handle, the question is,
how do I get the list of file handles?
#10
Posted 30 May 2009 - 01:55 PM
That wouldn't work. Handles aren't global - handle 0x00000004 on Process A could point to something else on Process B, or be invalid. I think there's a handle duplication API function, but I can't remember at the moment.
#11
Posted 30 May 2009 - 02:05 PM
Once again, I've proven myself wrong.
Enumerating process handles
There's an undocumented command ID you can pass to this function called SystemHandleInformation. There's nothing about it on MSDN, but someone figured it out. You do have to elevate your privilege levels to execute the function, though. This'll probably set off Vista's UAC, but it should be okay on previous versions of Windows.
EDIT:
Source code for doing almost exactly what you wanted to do: OSR's ntfsd List: ObQueryNameString doesn't return
Enumerating process handles
There's an undocumented command ID you can pass to this function called SystemHandleInformation. There's nothing about it on MSDN, but someone figured it out. You do have to elevate your privilege levels to execute the function, though. This'll probably set off Vista's UAC, but it should be okay on previous versions of Windows.
EDIT:
Source code for doing almost exactly what you wanted to do: OSR's ntfsd List: ObQueryNameString doesn't return
#12
Posted 04 June 2009 - 03:34 AM
Thank you. That helps.


Sign In
Create Account


Back to top









