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