> After doing some research I found that it seems to be impossible to
> use CreateFile for a file that doesn't have SHARE_READ. I played with
> different combinations and with FLAG_BACKUP_SEMANTICS and nothing
> helped. However on Windows there's still a possibility to read
> attributes: use FindFirstFile. _WIN32_FIND_DATA structure seems to
> have all the necessary fields (attributes, file times, size and
> full/short filename), and FindFirstFile doesn't care about sharing at
> all...

So what about GetFileAttributesEx? What are the conditions under which
I can successfully invoke it?

Regards,
Martin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to