[python-win32] win32api.FindFiles hangs (was COM registration hangs up: 32 bit Python 3.7 on 64 bit Win 7)
eryk sun
eryksun at gmail.com
Wed Dec 19 23:00:21 EST 2018
On 12/19/18, Boylan, Ross <Ross.Boylan at ucsf.edu> wrote:
> Eryk, thank you for that very detailed explanation. The directory is on a
> network share; is NtQueryDirectoryFile[Ex] still the call that would be made
> for it?
It's the only system call to scan a directory. It's implemented in the
I/O manager by sending an IRP_MJ_DIRECTORY_CONTROL:
IRP_MN_QUERY_DIRECTORY request to the device stack. In this case the
requested directory information is FileBothDirectoryInformation.
Locally, the filesystem for a network share is the MUP device
(multiple UNC provider), which proxies access to a redirector such as
SMB (mrxsmb). Since the same call works from other systems, it's
probably safe to assume the problem is in the local device stack and
not the server on the other end of the wire.
More information about the python-win32
mailing list