#NEWLINE# def read_directory_changes( handle , event_buffer , recursive ) : #NEWLINE# #INDENT# 'Read changes to the directory using the specified directory handle.\n\n    http://timgolden.me.uk/pywin32-docs/win32file__ReadDirectoryChangesW_meth.html\n    ' #NEWLINE# nbytes = ctypes . wintypes . DWORD ( ) #NEWLINE# try : #NEWLINE# #INDENT# ReadDirectoryChangesW ( handle , ctypes . byref ( event_buffer ) , len ( event_buffer ) , recursive , WATCHDOG_FILE_NOTIFY_FLAGS , ctypes . byref ( nbytes ) , None , None ) #NEWLINE# #UNINDENT# except WindowsError : #NEWLINE# #INDENT# return ( [ ] , 0 ) #NEWLINE# #UNINDENT# return ( event_buffer . raw , long ( event_buffer . value ) )