Hi John, Have you looked at System.IO.FileSystemWatcher. From memory, it just wraps ReadDirectoryChangesW too, and is much more accessible than the ASP.NET stuff.
Nick ----- Original Message ----- From: "John Lam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 26, 2002 8:05 AM Subject: [DOTNET] Has anyone written some file / directory change notification code? I'm rather bummed that the stuff in System.Web.dll is all marked private. There's a bunch of nice classes that use unmanaged methods implemented inside of aspnet_isapi.dll to monitor changes in the file system. This is used by the code in the System.Web.Caching namespace. I tried hacking into this code, but there's lots of weird dependencies on being an ASP.NET application, so that was a dead end. The code in aspnet_isapi.dll appears to use nothing more than ReadDirectoryChangesW in kernel32.dll. But has someone written some code that will take callbacks from this API and fire some .NET events? I don't mind writing my own, but if someone has done this already it would save a bit of time. Thanks, -John http://www.iunknown.com You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.