#NEWLINE# def _parse_buffer( buff ) : #NEWLINE# #INDENT# 'Parses a FileNotifyInformation out of a ctypes array of c_char.' #NEWLINE# response = set ( ) #NEWLINE# offset = 0 #NEWLINE# while True : #NEWLINE# #INDENT# notify_information = _parse_file_notification_information ( buff , notify_information ) #NEWLINE# response . add ( notify_information . FileName ) #NEWLINE# if ( notify_information . NextEntryOffset == 0 ) : #NEWLINE# #INDENT# return response #NEWLINE# #UNINDENT# offset += notify_information . NextEntryOffset