C Programming for Tcl Extension to Monitor Directory
Liu Shenyuan · Computer Programming Skills & Maintenance · 2010
ReadDirectoryChangesW is the Windows API t o trace the changes of a certain directory monitored.A Tcl extension of the same functionality is implemented in both ways of the synchronous and asynchronous use of the Windows API.Finally,an event loop mechanism is integrated to this extension to provide the non-blocking monitoring operation in one thread.