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] IRTD Interface differences in Excel 2003 and Excel 2007

2009-11-16 Thread Christopher Nilsson
2009/11/17 Jack Cowden : > I set up Excel and the COM Interfaces > > EXCEL_TLB_GUID = '{00020813---C000- > 0046}' > EXCEL_TLB_LCID = 0 > EXCEL_TLB_MAJOR = 1 > #EXCEL_TLB_MINOR = 4 #Excel 2003 > EXCEL_TLB_MINOR = 6 #Excel 2007 via registry??? Is this correct? > > # Import the

Re: [python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-11 Thread Christopher Nilsson
Hi all, On 12 March 2010 02:31, Tim Golden wrote: > > The advantage of mutex's over semaphores would be that applications that >> terminate abnormally would have their mutex released, while applications >> using semaphors that terminated abnormally would leave their semaphore >> with an incorre

Re: [python-win32] Casting to IRTDUpdateEvent object

2012-04-07 Thread Christopher Nilsson
Hello, I sent a reply privately, but for the list's benefit, I'll send a copy here too. With luck, everything I say is wrong and somebody will have a solution. :) I fear that things with IRTDUpdateEvent have changed with recent versions of excel (since Excel 2007? I guess that's not so 'recent'

Re: [python-win32] equivalent selenium findElement(By.xpath...) with win32com

2016-03-07 Thread Christopher Nilsson
Not really via the win32 api, but if you're looking for the python equivalent of this selenium use-case, you should check out Splinter ( http://splinter.readthedocs.org/en/latest/). You'll need phantomjs, or any other compatible web "driver" installed as well though for this to work. I imagine ac

Re: [python-win32] excelRTDServer demo not working

2008-03-13 Thread Christopher Nilsson
It's been ages since I looked at this, but you need to make sure the constants at the top of the module match your version of excel. The ones that are currently there are for Excel XP (which is the one before the version you're using, I believe): EXCEL_TLB_GUID = '{00020813---C000-

Re: [python-win32] excelRTDServer demo not working

2008-03-16 Thread Christopher Nilsson
On 14/03/2008, Kevin O'Connor <[EMAIL PROTECTED]> wrote: > On Fri, Mar 14, 2008 at 01:46:16PM +1100, Christopher Nilsson wrote: > > It's been ages since I looked at this, but you need to make sure the > > constants at the top of the module match your version o

Re: [python-win32] File access entries are incorrectly set

2016-09-19 Thread Christopher Nilsson
Hi Goku, That doesn't seem like a bug to me. GENERIC_WRITE represents several permissions mashed together, including FILE_WRITE and read control. Perhaps try with just FILE_WRITE on its own? On Tue, 20 Sep 2016, 8:03 AM Goku Balu wrote: > If I deny GENERIC_WRITE it denies Rc as well (Rc - Read

Re: [python-win32] File access entries are incorrectly set

2016-09-20 Thread Christopher Nilsson
#x27;m using Python 3.2 with Pywin32 ver 219. > > Thanks, > Jeba > > On Tue, Sep 20, 2016 at 3:51 AM, Christopher Nilsson > wrote: > >> Hi Goku, >> >> That doesn't seem like a bug to me. GENERIC_WRITE represents several >> permissions mashed together,

Re: [python-win32] File access entries are incorrectly set

2016-09-20 Thread Christopher Nilsson
Awesome detail. Thanks eryk. On Tue, 20 Sep 2016, 6:13 PM eryk sun wrote: > On Mon, Sep 19, 2016 at 10:21 PM, Christopher Nilsson > wrote: > > > > That doesn't seem like a bug to me. GENERIC_WRITE represents several > > permissions mashed together, includin