Re: [python-win32] Setting Focus Assist Mode via COM

2023-06-01 Thread Bill Tutt
This IDL snippet from the GIST contains the GUID you're looking for: [uuid(f53321fa-34f8-4b7f-b9a3-361877cb94cf)] coclass QuietHoursSettings { [default] interface IQuietHoursSettings; } coclass's are the COM object. The interface guid you mentioned is that you need to supply to

Re: [python-win32] Passing string[] parameters to c# .NET function

2013-07-23 Thread Bill Tutt
What does myFunc (both the params string[] and params object[] version) look like in the generated .tlb (from regasm.exe /tlb) when viewed using OleView.exe? That ought to provide us with the biggest hint I would think. Bill On Tue, Jul 23, 2013 at 9:44 AM, Aishwarya Sivakumar

Re: [python-win32] windows firewall woes?

2012-03-06 Thread Bill Tutt
This sounds more like a problem with your approach to servicing your product, and not necessarily a python windows specific problem. I can point you in the direction to create the firewall exception, but you would still need to figure out how to arrange to have the code actually execute. Windows

Re: [python-win32] Running a Windows Python service without pythonservice.exe?

2012-02-23 Thread Bill Tutt
Well, I know this isn't a solution per say, but the usual cause of this error message is that you failed to call the Win32 API SetServiceStatus() with a 'ask me again in x time' or 'i've finished starting successfully' call in a fairly quick manner. See

Re: [python-win32] Python Windows Service and registering for preshutdown?

2012-02-23 Thread Bill Tutt
You'd simply need to override GetAcceptedControls() in your ServiceFramework subclass to OR in SERVICE_ACCEPT_PRESHUTDOWN and override SvcOtherEx to process SERVICE_CONTROL_PRESHUTDOWN. Other interesting service control notifications appear to be PowerEvent and TimeChange. I'd guess PowerEvent is

Re: [python-win32] COM-interfaces in python

2012-02-21 Thread bill . tutt
Ctypes doesn't add any breadth in this area? (I don't have a clue since ctype com stuff didn't exist when I last cared.) Bill Sent from my Verizon Wireless BlackBerry -Original Message- From: Mark Hammond skippy.hamm...@gmail.com Sender: python-win32-bounces+bill=tutts@python.org

Re: [python-win32] Running Python + pywin32 portably

2012-02-03 Thread Bill Tutt
Hrm. Is it just embedding via COM servers and services or something else? i.e. If I wrote a C++ WTL based UI to drive some embedded Python COM client logic or SQL queries do you think I'd need to do anything extra special? For various scary reasons I need to write a log collection tool to run on

Re: [python-win32] Running Python + pywin32 portably

2012-02-03 Thread Bill Tutt
backup. Bill On Fri, Feb 3, 2012 at 6:44 PM, Tim Roberts t...@probo.com wrote: Bill Tutt wrote: Installing .net 2.0 would. It would require doing the requisite security updates for .net 2.0 for Win2k, etc Why do you need .NET 2.0 to install a Python app? -- Tim Roberts, t