[Lazarus] Shell notifications
Sven Barth
pascaldragon at googlemail.com
Thu Aug 22 13:49:28 CEST 2013
Am 22.08.2013 13:33, schrieb Antonio Fortuny:
> See the code in attachment
>
> I changed the code a little bit adding the OVERLAP parameter and
> events to use the async method.
> Now the same function returns error code 6
Error code 6 is ERROR_INVALID_HANDLE (would be nice if you'd mention the
error message as well next time when you're already using
SysErrorMessage). FindFirstChangeNotification returns a notification
handle, but ReadDirectoryChanges requires a directory handle (with
FILE_LIST_DIRECTORY priviledge), so you need to open the directory yourself.
Regards,
Sven
More information about the Lazarus
mailing list