Unit DirMon

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Component: TDirMon Description: This component encapsulate the Win 32 API function FindFirstChangeNotification. The primary purpose of this component is to monitor changes in a given directory and fire an event when a change occurs (file creation, deletion, ...). Version: 1.00 Created: March 27, 1997 Author: François PIETTE Email: francois.piette@ping.be http://www.rtfm.be/fpiette francois.piette@f2202.n293.z2.fidonet.org 2:293/2202@fidonet.org, BBS +32-4-3651395 Support: Please ask your question in the following newsgroup: news://forums.borland.com/borland.public.delphi.vcl.components.using Legal issues: Copyright (C) 1997 by François PIETTE This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented, you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Modification History: Aug 07, 1997 V1.0 Added some comments * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Classes

TDirMon -

Functions

Register - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Types

TDirMonType
TDirMonValue

Constants

WM_DIRCHANGE

Variables


Functions


procedure Register;

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Types


TDirMonType = set of TDirMonValue

TDirMonValue = (dmcFileName,
                    dmcDirName,
                    dmcAttributes,
                    dmcSize,
                    dmcLastWrite,
                    dmcSecurity);

Constants

WM_DIRCHANGE = WM_USER + 1


Variables