Determine what caused dir change
Posted: Fri Feb 14, 2020 5:23 am
Hi all, using the code below, how can I tell if #FILE_NOTIFY_CHANGE_SIZE was triggered instead of #FILE_NOTIFY_CHANGE_FILE_NAME? Thanks.
Code: Select all
Debug #FILE_NOTIFY_CHANGE_SIZE ; 8
Repeat
Sleep_(250)
dir=FindFirstChangeNotification_("D:\Temp\",0,#FILE_NOTIFY_CHANGE_FILE_NAME|#FILE_NOTIFY_CHANGE_SIZE)
Repeat
why=WaitForSingleObject_(dir,#INFINITE)
a+1
Until a=3
a=0
Debug why ; 0 (I was hoping 8)
FindCloseChangeNotification_(dir)
ForEver