Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I detect all current open files?

Status
Not open for further replies.

Grange

Programmer
Oct 22, 2000
3
0
0
GB

I need to detect all the files open on the system (win98 and NT). I'm sure something must exist that currently does this but unsure what and I have little knowledge about the internal workings of the file systems.

Any help appreciated

Thanks

Grange [sig][/sig]
 
Hi,
Have you tried EnumWindows(...)?
It's a little difficult with the call back and all.
If you have a problem, post again and I post some source.

Pappy
 
Pappy1942

Thanks for the reply, couple of further questions...

If I use EnumWindows to get the handle of all the open windows, can I retreive the file name from this?

Basically I need to find out what files the user is working on, regardless of the application (C files, word docs whatever). I also need to maintain this list quite regularly, and wondered if EnumWindows is the most efficient method

Thanks again and a code snippet wopuld be appreciated

Grange
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top