I am looking for an API hook (Win95/98 or compatible) that will allow am event to be fired within a VB application when a given file is modified or closed. If you are familar with WinZIP: When you open a file in a WinZIP archive, a temp file is created and this file is opened using the associated application. (easy). However, WinZIP can detect when you have made changes to the file, and will prompt you to update the archive. Otherwise, it will detect a file being still closed without modification and won't prompt you. I'm looking for the API calls (and explainations would be nice! :-)) to do this from VB.
Just a few lines of text! The API calls and a preferably detailed explaination of how to do it. I am an experianced VB programmer, I just find the API to be a bit like a mine-field.
Win95/98 API calls, Visual Basic 6.0 (not .NET preferably, unless calls are backward compatible).