[python-win32] Wanted to know how we can overwrite the win32serviceutil.ServiceFramework SvcDoRun method.

2012-03-29 Thread pavi ena
Hello, I am new to Python Window services development. I have small code below. from datetime import datetime import time import sys import os import win32service import win32serviceutil import win32api import win32con class DemoService(win32serviceutil.ServiceFramework): _svc_name_ = "Demo

Re: [python-win32] Wanted to know how we can overwrite the win32serviceutil.ServiceFramework SvcDoRun method.

2012-03-29 Thread Tim Roberts
pavi ena wrote: > > I am new to Python Window services development. I have small code below. > ... > Generally i run this script as batch file which takes parameters like > user_id > and password > > python demo_svcs.py install > python demo_svcs.py start %user_id% %password% > > At present in my c

Re: [python-win32] How to write a COM Server implementing interfaces from type lib?

2012-03-29 Thread Mark Hammond
It seems I *can* make this work with the pythoncom test object. I created a structure with no GUID in a TLB with a name StructWithoutUUID. Then, I used the code at the end of this message as a quick hack to try out the SetGuid and the output is: """ as expected, failed to create the record no