[python-win32] Re: Python-win32 Digest, Vol 53, Issue 6

2007-08-07 Thread Roger Upole
Huang Guan wrote: I need your help on question 3 still: import pythoncom from win32com.server import util f=open('somepage.html','r') fs=util.FileStream(f) istream=util.wrap(fs, pythoncom.IID_IStream ) p=ie.Document._oleobj_.QueryInterface (pythoncom.IID_IPersistStreamInit)

[python-win32] problem with UNICODE network paths and WNetAddConnection2

2007-08-07 Thread Shailesh Kumar
Hi, I am facing a problem with network paths which contain non-ascii characters when trying to map them. More precisely, the location contains Korean characters. location = ur'\\baton1\TestStreams\shailesh\게댜ㅕㅔ걷;어니;ㅓ' WNetAddConnection2 function expects string type as remoteName argument. A

[python-win32] Getting file security access info on network

2007-08-07 Thread Thibault Ketterer
it works for me with this code import win32security,pywintypes try: filo = win32security.GetFileSecurity(path, win32security.OWNER_SECURITY_INFORMATION) sid = filo.GetSecurityDescriptorOwner() account, domain,

Re: [python-win32] PythonWin won't start the second time

2007-08-07 Thread Zeev B
I've uninstalled and reinstalled Pythonwin and indeed after installation the pyc is present and when Pythonwin runs the first time it overrides it. I've saved the original intpyapp.pyc and when I use it Pythonwin runs without a problem. I've compared the working pyc with the non-working one and

Re: [python-win32] win32com does not recognise an Interface for events

2007-08-07 Thread Thomas Heller
OLE Viewer finds a second interface IS7ProSimEvents that is made the default source makepy does not recognise IS7ProSimEvents as an interface at all. It would appear that makepy is excluding non-dual interfaces, and that the integration with the 'universal' support for vtable interfaces

[python-win32] comtypes mailing list

2007-08-07 Thread Thomas Heller
Since the number of comtypes users seems to be growing slowly, I have created a comtypes mailing list. The mailing list interface is here: http://lists.sourceforge.net/lists/listinfo/comtypes-users comtypes homepage: http://cheeseshop.python.org/pypi/comtypes Thomas

[python-win32] Two perfmon objects for two services running on single machine.

2007-08-07 Thread Chatchai Neanudorn
Hi, I have two python services running on single machine. Each service has performance object. The problem is, when I apply user to own service and try to start a service. A service that start first can be started successfully but for a subsequence service, it cannot start because a