def get_directory_handle(path, file_flags):
    handle = CreateFileW(path,
                         FILE_LIST_DIRECTORY,
                         WATCHDOG_FILE_SHARE_FLAGS,
                         None,
                         OPEN_EXISTING,
                         file_flags,
                         None)
    return handle
Returns a Windows handle to the specified directory path.
dataset/ETHPy150Open austinwagner/sublime-sourcepawn/watchdog/observers/winapi_common.py/get_directory_handle