Re: [python-win32] Calling random Windows function?

2010-02-15 Thread Randy Syring
Roger Upole wrote: If you decide to use Volume Shadow Copy, I've wrapped some of the IVss* interfaces for Python, enough to be able to backup selected files from a volume. Bear in mind that if an application has a file open for writing and is not VSS-aware, you may get the file in an inconsiste

Re: [python-win32] Calling random Windows function?

2009-10-25 Thread Aahz
On Sun, Oct 25, 2009, Roger Upole wrote: > Aahz wrote: >> On Fri, Oct 23, 2009, Tim Roberts wrote: >>> Aahz wrote: Perhaps it would be better to think more strategically. I don't actually care about the list of open files. What I care about is a list of files that I wan

[python-win32] Calling random Windows function?

2009-10-25 Thread Roger Upole
Aahz wrote: On Fri, Oct 23, 2009, Tim Roberts wrote: Aahz wrote: Perhaps it would be better to think more strategically. I don't actually care about the list of open files. What I care about is a list of files that I want to process and checking whether any of them are open. What would be

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Aahz
On Fri, Oct 23, 2009, Tim Roberts wrote: > Aahz wrote: >> >> Perhaps it would be better to think more strategically. I don't actually >> care about the list of open files. What I care about is a list of files >> that I want to process and checking whether any of them are open. What >> would be t

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Tim Roberts
Aahz wrote: > Perhaps it would be better to think more strategically. I don't actually > care about the list of open files. What I care about is a list of files > that I want to process and checking whether any of them are open. What > would be the canonical way of doing that on Windows? It doe

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Aahz
On Fri, Oct 23, 2009, Tim Golden wrote: > Aahz wrote: >> >> Wow! Thanks! Now that I know more what to look for, I did some >> searching and found this post that had no response: >> >> http://mail.python.org/pipermail/python-win32/2009-June/009268.html >> >> Assuming that I only care about monito

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Aahz
On Fri, Oct 23, 2009, Tim Roberts wrote: > Aahz wrote: >> On Fri, Oct 23, 2009, Christopher Nilsson wrote: >>> >>> But, wow... Just starting with windows programming, and jumping right >>> into the semi-documented territory. Brave. :) >> >> Well, I have three things going for me: >> >> * I've b

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Tim Golden
Aahz wrote: On Fri, Oct 23, 2009, Tim Golden wrote: Aahz wrote: I'm just getting into Windows programming for the first time, and I need to list all open files. Windows has a convenient function for that (NtQuerySystemInformation), but I can't figure out how I am supposed to call it. I bought

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Tim Roberts
Aahz wrote: > On Fri, Oct 23, 2009, Christopher Nilsson wrote: > >> But, wow... Just starting with windows programming, and jumping right >> into the semi-documented territory. Brave. :) >> > > Well, I have three things going for me: > > * I've been programming in Python for more than a de

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Aahz
On Fri, Oct 23, 2009, Tim Golden wrote: > Aahz wrote: >> >> I'm just getting into Windows programming for the first time, and I need >> to list all open files. Windows has a convenient function for that >> (NtQuerySystemInformation), but I can't figure out how I am supposed to >> call it. I bough

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Tim Golden
Aahz wrote: I'm just getting into Windows programming for the first time, and I need to list all open files. Windows has a convenient function for that (NtQuerySystemInformation), but I can't figure out how I am supposed to call it. I bought of copy of the Win32 book and I can't find anything a

Re: [python-win32] Calling random Windows function?

2009-10-22 Thread Aahz
On Fri, Oct 23, 2009, Christopher Nilsson wrote: > > But that's only to get you partway there. Next you'll need to > implement the SYSTEM_INFORMATION_CLASS structures, to provide as > parameters. Ayup. > But, wow... Just starting with windows programming, and jumping right > into the semi-docume

Re: [python-win32] Calling random Windows function? [SEC=PERSONAL]

2009-10-22 Thread Aahz
On Fri, Oct 23, 2009, Andrew MacIntyre wrote: > Aahz wrote: >> >> I'm just getting into Windows programming for the first time, >> and I need to list all open files. Windows has a convenient >> function for that (NtQuerySystemInformation), but I can't figure >> out how I am supposed to call it. I

Re: [python-win32] Calling random Windows function?

2009-10-22 Thread Christopher Nilsson
Yep, that will give you an AttributeError... You want to be looking in "ntdll", not kernel32. eg. ctypes.windll.ntdll.NtQuerySystemInformation But that's only to get you partway there. Next you'll need to implement the SYSTEM_INFORMATION_CLASS structures, to provide as parameters. MSDN has som

Re: [python-win32] Calling random Windows function? [SEC=PERSONAL]

2009-10-22 Thread Andrew MacIntyre
Aahz wrote: > I'm just getting into Windows programming for the first time, > and I need > to list all open files. Windows has a convenient function for that > (NtQuerySystemInformation), but I can't figure out how I am > supposed to > call it. I bought of copy of the Win32 book and I can't fin

[python-win32] Calling random Windows function?

2009-10-22 Thread Aahz
I'm just getting into Windows programming for the first time, and I need to list all open files. Windows has a convenient function for that (NtQuerySystemInformation), but I can't figure out how I am supposed to call it. I bought of copy of the Win32 book and I can't find anything about accessing