Re: [python-win32] Python-based Windows service: Subcommand works with "debug", but hangs under "start"

2012-02-20 Thread Mark Hammond
I guess it depends on what that child process does. Services run on a different desktop, so any UI (eg, message box or similar) or attempts to read from stdin etc will make it appear to have hung. Using a windows debugger (or even "process explorer" from the MS SysInternals team) might give y

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

2012-02-20 Thread Mark Hammond
On 21/02/2012 12:18 AM, Rafael Yengibaryan wrote: Hi all. I need some COM-interfaces for virtual disk service(VDS) that are not supported by standard win32com package. Which are the ways to be able to use these interfaces in python code? If they are interfaces not supported via IDispatch, then

Re: [python-win32] [ANN] pywin32 build 217 released.

2012-02-20 Thread Mark Hammond
On 21/02/2012 2:02 AM, etienne.laba...@free.fr wrote: For initial support (eg, to ask questions about the release etc), please contact this mailing-list (python-win32@python.org). If you want to report a bug, please do so at https://sf.net/projects/pywin32. Hello Mark, I don't know if this is

Re: [python-win32] [ANN] pywin32 build 217 released.

2012-02-20 Thread Mark Hammond
On 21/02/2012 9:05 AM, Luc Kesters wrote: Hello Mark, I installed the new pywin32. I don't have a problem with pywin32 itself. But when importing other packages (the ones I mentioned) I still have the problem (see below) When I read the issues (see first message) it seemed to me a python problem

Re: [python-win32] [ANN] pywin32 build 217 released.

2012-02-20 Thread Luc Kesters
Hello Mark, I installed the new pywin32. I don't have a problem with pywin32 itself. But when importing other packages (the ones I mentioned) I still have the problem (see below) When I read the issues (see first message) it seemed to me a python problem and not a pywin32 problem. If I underst

Re: [python-win32] Getting Remote Share User Group Names and Permissions

2012-02-20 Thread Rod Person
On Mon, 20 Feb 2012 11:53:46 + Tim Golden wrote: > > > import win32net > > def shares (system): >share_infos, total, hResume = win32net.NetShareEnum (system, 2, 0) >for share_info in share_infos: > if share_info['type'] == 0: >yield share_info >while hResume > 0: >

Re: [python-win32] Python-based Windows service: Subcommand works with "debug", but hangs under "start"

2012-02-20 Thread Jens Vagelpohl
Hi Preston, > Offhand it sounds like a authorization related issue. Have you tried > checking the current user identity / authorization from within the > child processes? Not yet. The service itself is run without specific credentials. > Is there a reason you're calling CreateProcess directly

[python-win32] Python-based Windows service: Subcommand works with "debug", but hangs under "start"

2012-02-20 Thread Jens Vagelpohl
Hi all, I've written a Windows service based on win32serviceutil.ServiceFramework. The service per se is running just fine. I am testing it on Windows Server 2003. When starting, the service uses the win32process.CreateProcess to start a process: win32process.CreateProcess(None, , None, None,

Re: [python-win32] [ANN] pywin32 build 217 released.

2012-02-20 Thread etienne . labaume
> For initial support (eg, to ask questions about the release etc), please > contact this mailing-list (python-win32@python.org). If you want to > report a bug, please do so at https://sf.net/projects/pywin32. Hello Mark, I don't know if this is the best way to let you know, but I have updated

[python-win32] COM-interfaces in python

2012-02-20 Thread Rafael Yengibaryan
Hi all. I need some COM-interfaces for virtual disk service(VDS) that are not supported by standard win32com package. Which are the ways to be able to use these interfaces in python code? ___ python-win32 mailing list python-win32@python.org http://mai

Re: [python-win32] Getting Remote Share User Group Names and Permissions

2012-02-20 Thread Rod Person
On Mon, 20 Feb 2012 11:53:46 + Tim Golden wrote: > > Let's see. I think where we're at is this: you have a number of shares > on server1 (sharea, shareb) which you wish to set up on server2 so > that, in effect, the same users can access them in the same way. (And, > if you DNS-rename the ser

Re: [python-win32] Getting Remote Share User Group Names and Permissions

2012-02-20 Thread Tim Golden
On 18/02/2012 23:22, Rod Person wrote: On Fri, 17 Feb 2012 20:20:09 + Tim Golden wrote: On 17/02/2012 18:26, Rod Person wrote: import win32security as win32s sd = win32s.GetFileSecurity(sh,win32security.GROUP_SECURITY_INFORMATION) Assuming that "sh" here is the name of of the share (eg

Re: [python-win32] How do I detect a 64 bit version of Windows?

2012-02-20 Thread Gelonida N
Thanks Mark, On 02/20/2012 03:28 AM, Marc Hankin wrote: > Dear Gelonida: > > The following is a vbscript that will return the info you want. You > might want to run it in a python subprocess. > > > > On Error Resume Next > > ' -- SCRIPT CONFIGURATION -- > strComputer = "." ' e.g.