Re: [python-win32] large buffer with GetOpenFileNameW

2018-06-03 Thread Andrew Ziem
Yes, that worked to increase the buffer. Thank you, Tim. :) Andrew On Thu, May 24, 2018 at 12:10 PM, Tim Roberts wrote: > Andrew Ziem wrote: >> When I select a few files, the dialog works, but when I select many >> files, I get the following error. Do you have any advice? >

[python-win32] large buffer with GetOpenFileNameW

2018-05-22 Thread Andrew Ziem
When I select a few files, the dialog works, but when I select many files, I get the following error. Do you have any advice? error: (12291, 'GetOpenFileNameW', 'No error message is available') Error 12291 is FNERR_BUFFERTOOSMALL The full code is below import win32con import win32gui ret = wi

[python-win32] SHEmptyRecycleBin error on Vista/7

2009-11-21 Thread Andrew Ziem
Using Python 2.5.4 on Vista and Windows 7, I get a catastrophic failure with the same code that works on XP SP3 from win32com.shell import shell shell.SHEmptyRecycleBin(None, None, 0) com_error: (-2147418113, 'Catastrophic failure', None, None) In hex, this error is 8000. I tried drive="c:\\

[python-win32] Finding the PID of open files

2009-06-25 Thread Andrew Ziem
I'm looking for a painless way to find the process ID that locks a file in Python for my open source project with these specs: * Runs as non-administrator * Covers processes/files owned by the current user (I don't care about service accounts, etc.) * Installs as administrator or not (I don't care