def get_directory_handle(path):
 return CreateFileW(path, FILE_LIST_DIRECTORY, WATCHDOG_FILE_SHARE_FLAGS, None, OPEN_EXISTING, WATCHDOG_FILE_FLAGS, None)

def get_directory_handle ( path ) : return CreateFileW ( path , FILE_LIST_DIRECTORY , WATCHDOG_FILE_SHARE_FLAGS , None , OPEN_EXISTING , WATCHDOG_FILE_FLAGS , None )
returns a windows handle to the specified directory path .