[Lazarus] Shell notifications

Antonio Fortuny a.fortuny at sitasoftware.lu
Tue Aug 20 15:21:01 CEST 2013


Le 20/08/2013 14:56, Henry Vermaak a écrit :
> On Tue, Aug 20, 2013 at 02:22:02PM +0200, Antonio Fortuny wrote:
>> Hi Folks.
>>
>> Do you know any component / tool to allow an application to be
>> notified by the host OS when something changes in a disk directory ?
>> Both Windows & Linux.
> inotify on linux (together with select()).  I'm told
Couldn'f find any inotify.* unit into my FPC/Lazarus installation
Only an inotify.h
> FindFirstChangeNotification() is the thing to use on Windows, but I've
> never tried.
I did and it runs OK as it is part of the kernel32.dll. But I'll have to 
run into a loop as this shell function is not event driven. I'll maybe 
make a wrapper onto it using a separated thread.

Thanks.

Antonio.
>
> Henry
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>







More information about the Lazarus mailing list