#NEWLINE# def get_directory_handle( path , file_flags ) : #NEWLINE# #INDENT# 'Returns a Windows handle to the specified directory path.' #NEWLINE# handle = CreateFileW ( path , FILE_LIST_DIRECTORY , WATCHDOG_FILE_SHARE_FLAGS , None , OPEN_EXISTING , handle , None ) #NEWLINE# return handle